|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.remoteclient.ogc.OGCProtocolHandler
org.gvsig.remoteclient.wfs.WFSProtocolHandler
public abstract class WFSProtocolHandler
| Field Summary | |
|---|---|
protected java.lang.String |
currentFeature
|
protected java.util.Hashtable |
features
|
protected WFSServiceInformation |
serviceInfo
WFS metadata |
protected java.util.ArrayList |
wfsRequestInformations
This class contains all the data that the library is able to retrieve of the server for all the requests. |
| Fields inherited from class org.gvsig.remoteclient.ogc.OGCProtocolHandler |
|---|
downloader, host, name, port, version |
| Constructor Summary | |
|---|---|
WFSProtocolHandler()
|
|
| Method Summary | |
|---|---|
void |
addLastWfsRequestInformation(WFSRequestInformation wfsRequestInformation)
Adds a new WFSRequestInformation |
static java.lang.String |
buildCapabilitiesSuitableVersionRequest(java.lang.String _host,
java.lang.String _version)
Builds the GetCapabilitiesRequest according to the OGC WFS Specifications without a VERSION, to get the highest version than a WFS supports. |
protected abstract WFSDescribeFeatureTypeRequest |
createDescribeFeatureTypeRequest(WFSStatus status)
|
protected abstract WFSGetFeatureRequest |
createGetFeatureRequest(WFSStatus status)
|
protected abstract WFSTLockFeatureRequest |
createLockFeatureRequest(WFSStatus status)
|
protected abstract WFSTransactionRequest |
createTransactionRequest(WFSStatus status)
|
java.io.File |
describeFeatureType(WFSStatus status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
Builds a describeFeatureType request that is sent to the WFS the response will be parse to extract the data needed by the WFS client |
void |
getCapabilities(WFSStatus status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
Builds a GetCapabilities request that is sent to the WFS the response will be parse to extract the data needed by the WFS client |
java.lang.String |
getCurrentFeature()
|
java.io.File |
getFeature(WFSStatus status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
Builds a getFeature request that is sent to the WFS the response will be parse to extract the data needed by the WFS client |
java.util.Hashtable |
getFeatures()
|
WFSRequestInformation |
getLastWfsRequestInformation()
|
OGCServiceInformation |
getServiceInformation()
|
void |
lockFeature(WFSStatus status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
Builds a lockFeature request that is sent to the WFS the response will be parse to extract the data needed by the WFS client |
protected abstract boolean |
parseGetFeature(java.io.File f,
java.lang.String nameSpace)
parses the data retrieved by the GetFeature XML document. |
protected abstract boolean |
parseLockFeature(java.io.File f,
java.lang.String nameSpace,
WFSStatus status)
parses the data retrieved by the LockFeature operation |
protected void |
parseNamespaces(org.kxml2.io.KXmlParser parser)
It parses the attributes of the current KXMLParser and add the new namespaces to the service information |
protected abstract boolean |
parseTransaction(java.io.File f,
WFSStatus status)
parses the data retrieved by the transaction operation |
void |
setCurrentFeature(java.lang.String currentFeature)
|
void |
transaction(WFSStatus status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
Builds a transaction request that is sent to the WFS the response will be parse to extract the data needed by the WFS client |
| Methods inherited from class org.gvsig.remoteclient.ogc.OGCProtocolHandler |
|---|
addOperationByAttribute, fileToBytes, getHost, getName, getPort, getSymbol, getVersion, parseCapabilities, parseHTTPTag, parserDcpType, setHost, setName, setPort, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected WFSServiceInformation serviceInfo
protected java.util.Hashtable features
protected java.lang.String currentFeature
protected java.util.ArrayList wfsRequestInformations
| Constructor Detail |
|---|
public WFSProtocolHandler()
| Method Detail |
|---|
public void getCapabilities(WFSStatus status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
throws WFSException
Builds a GetCapabilities request that is sent to the WFS the response will be parse to extract the data needed by the WFS client
WFSException
public static java.lang.String buildCapabilitiesSuitableVersionRequest(java.lang.String _host,
java.lang.String _version)
public java.io.File describeFeatureType(WFSStatus status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
throws WFSException
Builds a describeFeatureType request that is sent to the WFS the response will be parse to extract the data needed by the WFS client
status - WFS client status. Contains all the information to create
the query. In this case, the only the feature name is needed.
WFSException
public java.io.File getFeature(WFSStatus status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
throws WFSException
Builds a getFeature request that is sent to the WFS the response will be parse to extract the data needed by the WFS client
status - WFS client status. Contains all the information to create
the query.
WFSException
protected abstract boolean parseGetFeature(java.io.File f,
java.lang.String nameSpace)
throws WFSException
WFSException
public void transaction(WFSStatus status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
throws WFSException
Builds a transaction request that is sent to the WFS the response will be parse to extract the data needed by the WFS client
status - WFS client status. Contains all the information to create
the query.
WFSException
protected abstract boolean parseTransaction(java.io.File f,
WFSStatus status)
throws WFSException
f - The retrieved filenameSpace - The namespace
WFSException
public void lockFeature(WFSStatus status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
throws WFSException
Builds a lockFeature request that is sent to the WFS the response will be parse to extract the data needed by the WFS client
status - WFS client status. Contains all the information to create
the query.
WFSException
protected abstract boolean parseLockFeature(java.io.File f,
java.lang.String nameSpace,
WFSStatus status)
throws WFSException
WFSExceptionpublic java.util.Hashtable getFeatures()
public java.lang.String getCurrentFeature()
public void setCurrentFeature(java.lang.String currentFeature)
currentFeature - The currentFeature to set.protected void parseNamespaces(org.kxml2.io.KXmlParser parser)
parser - The KXML parserpublic OGCServiceInformation getServiceInformation()
getServiceInformation in class OGCProtocolHandlerprotected abstract WFSDescribeFeatureTypeRequest createDescribeFeatureTypeRequest(WFSStatus status)
status - The WFS statusprotocolHandler - The handler to parse the requests
protected abstract WFSGetFeatureRequest createGetFeatureRequest(WFSStatus status)
status - The WFS statusprotocolHandler - The handler to parse the requests
protected abstract WFSTLockFeatureRequest createLockFeatureRequest(WFSStatus status)
status - The WFS statusprotocolHandler - The handler to parse the requests
protected abstract WFSTransactionRequest createTransactionRequest(WFSStatus status)
status - The WFS statusprotocolHandler - The handler to parse the requests
public void addLastWfsRequestInformation(WFSRequestInformation wfsRequestInformation)
wfsRequestInformation - public WFSRequestInformation getLastWfsRequestInformation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||