public class WFSClient extends RemoteClient
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAXFEATURES |
hostName, port, serviceName
Constructor and Description |
---|
WFSClient(java.lang.String host,
boolean ignoreCache)
Constructor.
|
WFSClient(java.lang.String host,
java.lang.String version,
boolean ignoreCache) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Does ...
|
boolean |
connect(boolean override,
ICancellable cancel)
Checks the connection to de remote WFS and requests its
capabilities.
|
boolean |
connect(ICancellable cancel) |
java.io.File |
describeFeatureType(WFSStatus status,
boolean override,
ICancellable cancel)
The function of the DescribeFeatureType operation is to
generate a schema description of feature types serviced
by a WFS implementation.
|
java.lang.String |
findNameSpace(java.lang.String localName) |
void |
getCapabilities(WFSStatus status,
boolean override,
ICancellable cancel)
Every OGC Web Service (OWS), including a Web Feature Service,
must have the ability to describe its capabilities by returning
service metadata in response to a GetCapabilities request.
|
WFSFeature |
getFeature(java.lang.String nameSpace,
java.lang.String localName) |
java.io.File |
getFeature(WFSStatus status,
boolean override,
ICancellable cancel)
The GetFeature operation allows retrieval of features from a
web feature service.
|
java.util.Hashtable |
getFeatures()
Returns the features list
|
WFSRequestInformation |
getLastWfsRequestInformation() |
WFSServiceInformation |
getServiceInformation()
Gets the Service information included in the Capabilities
|
java.lang.String |
getVersion() |
WFSRequestInformation |
getWFSRequestInformationAt(int index)
Return the information of a request
|
int |
getWFSRequestInformationCount() |
void |
lockFeature(WFSStatus status,
boolean override,
ICancellable cancel)
Web connections are inherently stateless.
|
void |
transaction(WFSStatus status,
boolean override,
ICancellable cancel)
The Transaction operation is used to describe data transformation
operations that are to be applied to web accessible feature
instances.
|
getHost, getPort, getServiceName, getSubtype, getType, setHost, setPort, setServiceName, setSubtype, setType
public static final int DEFAULT_MAXFEATURES
public WFSClient(java.lang.String host, boolean ignoreCache) throws java.net.ConnectException, java.io.IOException
ConnectException,IOException
java.net.ConnectException
java.io.IOException
public WFSClient(java.lang.String host, java.lang.String version, boolean ignoreCache) throws java.io.IOException
java.io.IOException
public void getCapabilities(WFSStatus status, boolean override, ICancellable cancel) throws WFSException
status
- WFS client status. Contains all the information to create
the queryWFSException
public java.io.File describeFeatureType(WFSStatus status, boolean override, ICancellable cancel) throws WFSException
status
- WFS client status. Contains all the information to create
the queryWFSException
public java.io.File getFeature(WFSStatus status, boolean override, ICancellable cancel) throws WFSException
status
- WFS client status. Contains all the information to create
the queryWFSException
public void transaction(WFSStatus status, boolean override, ICancellable cancel) throws WFSException
status
- WFS client status. Contains all the information to create
the queryWFSException
public void lockFeature(WFSStatus status, boolean override, ICancellable cancel) throws WFSException
status
- WFSException
public boolean connect(boolean override, ICancellable cancel)
Checks the connection to de remote WFS and requests its capabilities.
connect
in class RemoteClient
public boolean connect(ICancellable cancel)
public void close()
RemoteClient
Does ...
close
in class RemoteClient
public java.lang.String getVersion()
public WFSServiceInformation getServiceInformation()
public java.util.Hashtable getFeatures()
public WFSFeature getFeature(java.lang.String nameSpace, java.lang.String localName)
public java.lang.String findNameSpace(java.lang.String localName)
public WFSRequestInformation getLastWfsRequestInformation()
public int getWFSRequestInformationCount()
public WFSRequestInformation getWFSRequestInformationAt(int index)
index
- The position of the request