public abstract class WFSProtocolHandler extends OGCProtocolHandler
Modifier and Type | Field and Description |
---|---|
protected String |
currentFeature |
protected Hashtable |
features |
protected WFSServiceInformation |
serviceInfo
WFS metadata
|
protected 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 String |
buildCapabilitiesSuitableVersionRequest(String _host,
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) |
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
|
String |
getCurrentFeature() |
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
|
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(File f,
String nameSpace)
parses the data retrieved by the GetFeature XML document.
|
protected abstract boolean |
parseLockFeature(File f,
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(File f,
WFSStatus status)
parses the data retrieved by the transaction operation
|
void |
setCurrentFeature(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 Hashtable features
protected String currentFeature
protected 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 String buildCapabilitiesSuitableVersionRequest(String _host, String _version)
public 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 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(File f, 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(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(File f, String nameSpace, WFSStatus status) throws WFSException
WFSException
public Hashtable getFeatures()
public String getCurrentFeature()
public void setCurrentFeature(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()