Revision 33738 branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wfs/wfs_1_0_0/WFSProtocolHandler1_0_0.java

View differences:

WFSProtocolHandler1_0_0.java
5 5
import java.io.IOException;
6 6
import java.util.Vector;
7 7

  
8
import org.gvsig.compat.CompatLocator;
9
import org.gvsig.compat.lang.StringUtils;
8 10
import org.gvsig.remoteclient.utils.CapabilitiesTags;
9 11
import org.gvsig.remoteclient.wfs.WFSProtocolHandler;
10 12
import org.gvsig.remoteclient.wfs.WFSStatus;
......
108 110
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
109 111
 */
110 112
public class WFSProtocolHandler1_0_0 extends WFSProtocolHandler{
111
	public WFSProtocolHandler1_0_0(){
113
    
114
    private static final StringUtils stringUtils = CompatLocator.getStringUtils();
115
    
116
    public WFSProtocolHandler1_0_0(){
112 117
		this.version = "1.0.0";
113 118
		this.name = "WFS1.0.0";		
114 119
	}	
......
357 362
		}
358 363

  
359 364
		String layerName = getCurrentFeature();
360
		if (getCurrentFeature().split(":").length>1){
361
			layerName = getCurrentFeature().split(":")[1];
365
		if (stringUtils.split(getCurrentFeature(), ":").length>1){
366
			layerName = stringUtils.split(getCurrentFeature(), ":")[1];
362 367
		}
363 368
		XMLElement entity = XMLElementsFactory.getElement(layerName);
364 369
		if (entity != null){

Also available in: Unified diff