public abstract class WFSProtocolHandler extends OGCProtocolHandler
Modifier and Type | Field and Description |
---|---|
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.
|
downloader, host, name, port, version
Constructor and Description |
---|
WFSProtocolHandler() |
Modifier and Type | Method and Description |
---|---|
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,
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,
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,
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,
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(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,
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
|
addOperationByAttribute, fileToBytes, getHost, getName, getPort, getSymbol, getVersion, parseCapabilities, parseHTTPTag, parserDcpType, setHost, setName, setPort, setVersion
protected WFSServiceInformation serviceInfo
protected java.util.Hashtable features
protected java.lang.String currentFeature
protected java.util.ArrayList wfsRequestInformations
public void getCapabilities(WFSStatus status, boolean override, 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, 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, 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, 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 namespaceWFSException
public void lockFeature(WFSStatus status, boolean override, 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
WFSException
public java.util.Hashtable getFeatures()
public java.lang.String getCurrentFeature()
public void setCurrentFeature(java.lang.String currentFeature)
currentFeature
- The currentFeature to set.protected void parseNamespaces(KXmlParser parser)
parser
- The KXML parserpublic OGCServiceInformation getServiceInformation()
getServiceInformation
in class OGCProtocolHandler
protected abstract WFSDescribeFeatureTypeRequest createDescribeFeatureTypeRequest(WFSStatus status)
status
- The WFS statusprotocolHandler
- The handler to parse the requestsprotected abstract WFSGetFeatureRequest createGetFeatureRequest(WFSStatus status)
status
- The WFS statusprotocolHandler
- The handler to parse the requestsprotected abstract WFSTLockFeatureRequest createLockFeatureRequest(WFSStatus status)
status
- The WFS statusprotocolHandler
- The handler to parse the requestsprotected abstract WFSTransactionRequest createTransactionRequest(WFSStatus status)
status
- The WFS statusprotocolHandler
- The handler to parse the requestspublic void addLastWfsRequestInformation(WFSRequestInformation wfsRequestInformation)
wfsRequestInformation
- public WFSRequestInformation getLastWfsRequestInformation()