|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.wfs.v1_1_0.WFS_1_1_0_Protocol
public class WFS_1_1_0_Protocol
WFSProtocol
implementation to talk to a WFS 1.1.0 server leveraging the GeoTools xml-xsd
subsystem for schema assisted parsing and encoding of WFS requests and responses.
Constructor Summary | |
---|---|
WFS_1_1_0_Protocol(java.io.InputStream capabilitiesReader,
HTTPProtocol http)
|
Method Summary | |
---|---|
WFSResponse |
describeFeatureTypeGET(java.lang.String typeName,
java.lang.String outputFormat)
Issues a DescribeFeatureType request for the given type name and output format using the HTTP GET method |
WFSResponse |
describeFeatureTypePOST(java.lang.String typeName,
java.lang.String outputFormat)
Issues a DescribeFeatureType request for the given type name and output format using the HTTP POST method |
void |
dispose()
Allows to free any resource held. |
static void |
encode(org.eclipse.emf.ecore.EObject request,
Configuration configuration,
java.io.OutputStream out,
java.nio.charset.Charset charset)
Encodes a WFS request into out |
java.lang.String |
getDefaultCRS(java.lang.String typeName)
Returns the CRS identifier of the default CRS for the given feature type as declared in the corresponding FeatureType element in the capabilities document. |
java.lang.String |
getDefaultOutputFormat(WFSOperationType operation)
|
java.net.URL |
getDescribeFeatureTypeURLGet(java.lang.String typeName)
Returns the http GET request to get the gml schema for the given type name |
java.lang.String |
getFeatureTypeAbstract(java.lang.String typeName)
Returns the abstract of the given feature type as declared in the corresponding FeatureType element in the capabilities document. |
java.util.Set<java.lang.String> |
getFeatureTypeKeywords(java.lang.String typeName)
Returns the list of keywords of the given feature type as declared in the corresponding FeatureType element in the capabilities document. |
javax.xml.namespace.QName |
getFeatureTypeName(java.lang.String typeName)
Returns the full feature type name for the typeName as declared in the FeatureTypeList/FeatureType/Name element of the capabilities document. |
java.util.Set<javax.xml.namespace.QName> |
getFeatureTypeNames()
Returns the set of type names as extracted from the capabilities document, including the namespace and prefix. |
java.lang.String |
getFeatureTypeTitle(java.lang.String typeName)
Returns the title of the given feature type as declared in the corresponding FeatureType element in the capabilities document. |
ReferencedEnvelope |
getFeatureTypeWGS84Bounds(java.lang.String typeName)
Returns the lat lon envelope of the given feature type as declared in the corresponding FeatureType element in the capabilities document. |
org.opengis.filter.capability.FilterCapabilities |
getFilterCapabilities()
Returns the parsed version of the FilterCapabilities section in the capabilities document |
java.net.URL |
getOperationURL(WFSOperationType operation,
boolean post)
Returns the URL for the given operation name and HTTP protocol as stated in the WFS capabilities. |
java.lang.String |
getServiceAbstract()
Returns service abstract as stated in the capabilities document |
java.util.Set<java.lang.String> |
getServiceKeywords()
Returns service keywords as stated in the capabilities document |
java.net.URI |
getServiceProviderUri()
Returns service provider URI as stated in the capabilities document |
java.lang.String |
getServiceTitle()
Returns service title as stated in the capabilities document |
Version |
getServiceVersion()
Returns the WFS protocol version this facade talks to the WFS instance. |
java.util.Set<java.lang.String> |
getSupportedCRSIdentifiers(java.lang.String typeName)
Returns the union of the default CRS and the other supported CRS's of the given feature type as declared in the corresponding FeatureType element in the capabilities document. |
java.util.Set<java.lang.String> |
getSupportedGetFeatureOutputFormats()
Returns the output format names declared in the GetFeature operation metadata section of the WFS capabilities document |
java.util.Set<java.lang.String> |
getSupportedOutputFormats(java.lang.String typeName)
Returns the union of WFSProtocol.getSupportedGetFeatureOutputFormats() and the output formats
declared for the feature type specifically in the FeatureTypeList section of the capabilities
document for the given feature type |
WFSResponse |
issueGetFeatureGET(GetFeature request)
Issues a GetFeature request for the given request, using GET HTTP method |
WFSResponse |
issueGetFeaturePOST(GetFeature request)
Issues a GetFeature request for the given request, using POST HTTP method |
void |
setStrategy(WFSStrategy strategy)
|
org.opengis.filter.Filter[] |
splitFilters(org.opengis.filter.Filter filter)
|
boolean |
supportsOperation(WFSOperationType operation,
boolean post)
Returns whether the service supports the given operation for the given HTTP method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WFS_1_1_0_Protocol(java.io.InputStream capabilitiesReader, HTTPProtocol http) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void setStrategy(WFSStrategy strategy)
public Version getServiceVersion()
WFSProtocol
getServiceVersion
in interface WFSProtocol
Version.v1_1_0
WFSProtocol.getServiceVersion()
public java.lang.String getServiceTitle()
WFSProtocol
getServiceTitle
in interface WFSProtocol
WFSProtocol.getServiceTitle()
public java.lang.String getServiceAbstract()
WFSProtocol
getServiceAbstract
in interface WFSProtocol
null
WFSProtocol.getServiceAbstract()
public java.util.Set<java.lang.String> getServiceKeywords()
WFSProtocol
getServiceKeywords
in interface WFSProtocol
WFSProtocol.getServiceKeywords()
public java.net.URI getServiceProviderUri()
WFSProtocol
getServiceProviderUri
in interface WFSProtocol
WFSProtocol.getServiceProviderUri()
public java.util.Set<java.lang.String> getSupportedGetFeatureOutputFormats()
WFSProtocol
getSupportedGetFeatureOutputFormats
in interface WFSProtocol
WFSProtocol.getSupportedGetFeatureOutputFormats()
public java.util.Set<java.lang.String> getSupportedOutputFormats(java.lang.String typeName)
WFSProtocol
WFSProtocol.getSupportedGetFeatureOutputFormats()
and the output formats
declared for the feature type specifically in the FeatureTypeList section of the capabilities
document for the given feature type
getSupportedOutputFormats
in interface WFSProtocol
typeName
- the feature type name for which to return the supported output formats
typeName
WFSProtocol.getSupportedOutputFormats(String)
public java.util.Set<javax.xml.namespace.QName> getFeatureTypeNames()
WFSProtocol
getFeatureTypeNames
in interface WFSProtocol
WFSProtocol.getFeatureTypeNames()
public javax.xml.namespace.QName getFeatureTypeName(java.lang.String typeName)
WFSProtocol
typeName
as declared in the FeatureTypeList/FeatureType/Name
element of the capabilities document.
The returned QName contains the namespace, localname as well as the prefix. typeName
is known to be prefix:localName
.
getFeatureTypeName
in interface WFSProtocol
typeName
- the prefixed type name to get the full name for
WFSProtocol.getFeatureTypeName(String)
public org.opengis.filter.capability.FilterCapabilities getFilterCapabilities()
WFSProtocol
getFilterCapabilities
in interface WFSProtocol
FilterCapabilities
out of the FilterCapabilities section in the
getcapabilities documentWFSProtocol.getFilterCapabilities()
public boolean supportsOperation(WFSOperationType operation, boolean post)
WFSProtocol
supportsOperation
in interface WFSProtocol
operation
- the operation to check if the server supports
true
if the operation/method is supported as stated in the WFS capabilitiesWFSProtocol.supportsOperation(WFSOperationType, boolean)
public java.net.URL getOperationURL(WFSOperationType operation, boolean post)
WFSProtocol
getOperationURL
in interface WFSProtocol
operation
- the name of the WFS operation
null
if the
capabilities does not declare an access point for the operation/method combinationWFSProtocol.getOperationURL(WFSOperationType, boolean)
public java.lang.String getFeatureTypeTitle(java.lang.String typeName)
WFSProtocol
getFeatureTypeTitle
in interface WFSProtocol
typeName
- the featuretype name as declared in the FeatureType/Name element of the WFS
capabilities
WFSProtocol.getFeatureTypeTitle(String)
public java.lang.String getFeatureTypeAbstract(java.lang.String typeName)
WFSProtocol
getFeatureTypeAbstract
in interface WFSProtocol
typeName
- the featuretype name as declared in the FeatureType/Name element of the WFS
capabilities
WFSProtocol.getFeatureTypeAbstract(String)
public ReferencedEnvelope getFeatureTypeWGS84Bounds(java.lang.String typeName)
WFSProtocol
getFeatureTypeWGS84Bounds
in interface WFSProtocol
typeName
- the featuretype name as declared in the FeatureType/Name element of the WFS
capabilities
WFSProtocol.getFeatureTypeWGS84Bounds(String)
public java.lang.String getDefaultCRS(java.lang.String typeName)
WFSProtocol
getDefaultCRS
in interface WFSProtocol
typeName
- the featuretype name as declared in the FeatureType/Name element of the WFS
capabilities
WFSProtocol.getDefaultCRS(String)
public java.util.Set<java.lang.String> getSupportedCRSIdentifiers(java.lang.String typeName)
WFSProtocol
getSupportedCRSIdentifiers
in interface WFSProtocol
typeName
- the featuretype name as declared in the FeatureType/Name element of the WFS
capabilities
WFSProtocol.getSupportedCRSIdentifiers(String)
public java.util.Set<java.lang.String> getFeatureTypeKeywords(java.lang.String typeName)
WFSProtocol
getFeatureTypeKeywords
in interface WFSProtocol
typeName
- the featuretype name as declared in the FeatureType/Name element of the WFS
capabilities
WFSProtocol.getFeatureTypeKeywords(String)
public java.net.URL getDescribeFeatureTypeURLGet(java.lang.String typeName)
WFSProtocol
getDescribeFeatureTypeURLGet
in interface WFSProtocol
WFSProtocol.getDescribeFeatureTypeURLGet(String)
public WFSResponse describeFeatureTypeGET(java.lang.String typeName, java.lang.String outputFormat) throws java.io.IOException
WFSProtocol
describeFeatureTypeGET
in interface WFSProtocol
java.io.IOException
WFSProtocol.describeFeatureTypeGET(String, String)
public WFSResponse describeFeatureTypePOST(java.lang.String typeName, java.lang.String outputFormat) throws java.io.IOException
WFSProtocol
describeFeatureTypePOST
in interface WFSProtocol
java.io.IOException
WFSProtocol.describeFeatureTypePOST(String, String)
public WFSResponse issueGetFeatureGET(GetFeature request) throws java.io.IOException
WFSProtocol
The request
shall already be adapted to what the server supports in terms of filter
capabilities and CRS reprojection. The WFSProtocol
implementation is not required to
check if the query filter is fully supported nor if the CRS is supported for the feature
type.
issueGetFeatureGET
in interface WFSProtocol
request
- the request to send to the WFS, as is.
java.io.IOException
WFSProtocol#issueGetFeatureGET(GetFeatureType, Map)
public WFSResponse issueGetFeaturePOST(GetFeature request) throws java.io.IOException
WFSProtocol
The query to WFS request parameter translation is the same than for
WFSProtocol.issueGetFeatureGET(GetFeature)
issueGetFeaturePOST
in interface WFSProtocol
java.io.IOException
WFSProtocol#getFeaturePOST(Query, String)
public void dispose()
WFSProtocol
Successive calls to this method should not result in any exception, but the instance is meant to not be usable after the first invocation.
dispose
in interface WFSProtocol
WFSProtocol.dispose()
public static void encode(org.eclipse.emf.ecore.EObject request, Configuration configuration, java.io.OutputStream out, java.nio.charset.Charset charset) throws java.io.IOException
out
request
- one of GetCapabilitiesType
, GetFeatureType
, etcconfiguration
- the wfs configuration to use for encoding the request into the output streamout
- the output stream where to encode the request intocharset
- the charset to use to encode the request in
java.io.IOException
public java.lang.String getDefaultOutputFormat(WFSOperationType operation)
getDefaultOutputFormat
in interface WFSProtocol
public org.opengis.filter.Filter[] splitFilters(org.opengis.filter.Filter filter)
splitFilters
in interface WFSProtocol
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |