Class StrictWFS_2_0_Strategy
Object
Specification
WFSStrategy
AbstractWFSStrategy
StrictWFS_2_0_Strategy
- Direct Known Subclasses:
ArcGisStrategy_2_0
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildDescribeFeatureTypeParametersForGET
(Map<String, String> kvp, QName typeName) boolean
Indicates whether the server supports adjusting the starting position of the result set.protected AbstractTransactionActionType
createDelete
(Wfs20Factory factory, TransactionRequest.Delete elem) protected EObject
Creates the EMF object to be encoded with theWFS configuration
when a DescribeFeatureType POST request is to be made.protected EObject
protected EObject
Creates the EMF object to be encoded with theWFS configuration
when a GetFeature POST request is to be made.protected AbstractTransactionActionType
createInsert
(Wfs20Factory factory, TransactionRequest.Insert elem) protected EObject
protected EObject
Creates the EMF object to be encoded with theWFS configuration
when a Transaction request is to be made.protected AbstractTransactionActionType
createUpdate
(Wfs20Factory factory, TransactionRequest.Update elem) findParameters
(OperationType operationMetadata, String parameterName) getClientSupportedOutputFormats
(WFSOperationType operation) getFeatureTypeInfo
(QName typeName) Returns the feature type metadata object parsed from the capabilities document for the giventypeName
Returns the set of type names as extracted from the capabilities document, including the namespace and prefix.Returns the parsed version of the FilterCapabilities section in the capabilities documentReturns the xml configuration used to encode a filter atAbstractWFSStrategy.encodeGetFeatureGetFilter(Filter)
protected OperationType
getOperationMetadata
(WFSOperationType operation) protected QName
getOperationName
(WFSOperationType operation) Used byAbstractWFSStrategy.getPostContents(WFSRequest)
to get the qualified operation name to encode; different WFS versions may use different operation names (specially namespaces).protected String
getOperationURI
(WFSOperationType operation, HttpMethod method) getServerSupportedOutputFormats
(QName typeName, WFSOperationType operation) getServerSupportedOutputFormats
(WFSOperationType operation) Returns the WFS protocol version this facade talks to the WFS instance.getSupportedCRSIdentifiers
(QName 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, as well as any globally supported CRS identifier declared as a parameter of the GetFeature oepration in the capabilities document.Returns the xml configuration used to encode all POST requests.void
setCapabilities
(WFSGetCapabilities capabilities) boolean
supports
(GetFeatureRequest.ResultType resultType) boolean
supportsTransaction
(QName typeName) Methods inherited from class AbstractWFSStrategy
buildDescribeFeatureTypeParametersForGET, buildDescribeStoredQueriesParametersForGET, buildListStoredQueriesParametersForGET, buildUrlGET, createGetCapabilitiesRequest, dispose, encodeGetFeatureGetFilter, encodePropertyName, getConfig, getDefaultOutputFormat, getFieldTypeMappings, getOperationURL, getPostContents, getPostContentType, getPrefixedTypeName, getVersion, prepareEncoder, setConfig, simplify, splitFilters, supportsOperation, updatePropertyNames
Methods inherited from class WFSStrategy
canLimit, newRequestHandle
-
Constructor Details
-
StrictWFS_2_0_Strategy
public StrictWFS_2_0_Strategy()
-
-
Method Details
-
getFilterConfiguration
Description copied from class:AbstractWFSStrategy
Returns the xml configuration used to encode a filter atAbstractWFSStrategy.encodeGetFeatureGetFilter(Filter)
- Specified by:
getFilterConfiguration
in classAbstractWFSStrategy
-
getWfsConfiguration
Description copied from class:AbstractWFSStrategy
Returns the xml configuration used to encode all POST requests.- Specified by:
getWfsConfiguration
in classAbstractWFSStrategy
- See Also:
-
getOperationName
Description copied from class:AbstractWFSStrategy
Used byAbstractWFSStrategy.getPostContents(WFSRequest)
to get the qualified operation name to encode; different WFS versions may use different operation names (specially namespaces).- Specified by:
getOperationName
in classAbstractWFSStrategy
-
setCapabilities
- Specified by:
setCapabilities
in classWFSStrategy
-
getServiceInfo
- Specified by:
getServiceInfo
in classWFSStrategy
-
supports
- Specified by:
supports
in classWFSStrategy
-
getServiceVersion
Description copied from class:WFSStrategy
Returns the WFS protocol version this facade talks to the WFS instance.- Specified by:
getServiceVersion
in classAbstractWFSStrategy
- Returns:
- the protocol version in use by this facade
- See Also:
-
getFeatureTypeNames
Description copied from class:WFSStrategy
Returns the set of type names as extracted from the capabilities document, including the namespace and prefix.- Specified by:
getFeatureTypeNames
in classWFSStrategy
- Returns:
- the set of feature type names as extracted from the capabilities document
- See Also:
-
getFeatureTypeInfo
Description copied from class:WFSStrategy
Returns the feature type metadata object parsed from the capabilities document for the giventypeName
- Specified by:
getFeatureTypeInfo
in classWFSStrategy
- Parameters:
typeName
- the typeName as stated in the capabilitiesFeatureTypeList
to get the info for- Returns:
- the WFS capabilities metadata for
typeName
- See Also:
-
getFilterCapabilities
Description copied from class:WFSStrategy
Returns the parsed version of the FilterCapabilities section in the capabilities document- Specified by:
getFilterCapabilities
in classWFSStrategy
- Returns:
- a
FilterCapabilities
out of the FilterCapabilities section in the getcapabilities document
-
buildGetFeatureParametersForGET
- Overrides:
buildGetFeatureParametersForGET
in classAbstractWFSStrategy
-
buildDescribeFeatureTypeParametersForGET
protected Map<String,String> buildDescribeFeatureTypeParametersForGET(Map<String, String> kvp, QName typeName) - Overrides:
buildDescribeFeatureTypeParametersForGET
in classAbstractWFSStrategy
-
createDescribeFeatureTypeRequestPost
Description copied from class:AbstractWFSStrategy
Creates the EMF object to be encoded with theWFS configuration
when a DescribeFeatureType POST request is to be made.- Specified by:
createDescribeFeatureTypeRequestPost
in classAbstractWFSStrategy
-
createGetFeatureRequestPost
Description copied from class:AbstractWFSStrategy
Creates the EMF object to be encoded with theWFS configuration
when a GetFeature POST request is to be made.- Specified by:
createGetFeatureRequestPost
in classAbstractWFSStrategy
-
createListStoredQueriesRequestPost
protected EObject createListStoredQueriesRequestPost(ListStoredQueriesRequest request) throws IOException - Specified by:
createListStoredQueriesRequestPost
in classAbstractWFSStrategy
- Throws:
IOException
-
createDescribeStoredQueriesRequestPost
protected EObject createDescribeStoredQueriesRequestPost(DescribeStoredQueriesRequest request) throws IOException - Specified by:
createDescribeStoredQueriesRequestPost
in classAbstractWFSStrategy
- Throws:
IOException
-
createTransactionRequest
Description copied from class:AbstractWFSStrategy
Creates the EMF object to be encoded with theWFS configuration
when a Transaction request is to be made.- Specified by:
createTransactionRequest
in classAbstractWFSStrategy
- Throws:
IOException
-
getOperationURI
- Specified by:
getOperationURI
in classAbstractWFSStrategy
-
getServerSupportedOutputFormats
- Specified by:
getServerSupportedOutputFormats
in classWFSStrategy
- Returns:
- the output formats the server advertises for the given operation;
-
getServerSupportedOutputFormats
- Specified by:
getServerSupportedOutputFormats
in classWFSStrategy
- Parameters:
typeName
- the feature type name for which to return the supported output formats- Returns:
- the output formats the server supports for the given type name and operation
-
getClientSupportedOutputFormats
- Specified by:
getClientSupportedOutputFormats
in classWFSStrategy
- Returns:
- the list of output formats supported by the client for the given operation, in preferred order.
-
supportsTransaction
- Specified by:
supportsTransaction
in classWFSStrategy
-
getOperationMetadata
- Returns:
- the operation metadata advertised in the capabilities for the given operation
- See Also:
-
getSupportedCRSIdentifiers
Description copied from class:WFSStrategy
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, as well as any globally supported CRS identifier declared as a parameter of the GetFeature oepration in the capabilities document.- Specified by:
getSupportedCRSIdentifiers
in classWFSStrategy
- Parameters:
typeName
- the featuretype name as declared in the FeatureType/Name element of the WFS capabilities- Returns:
- the list of supported CRS identifiers for the given feature type
-
findParameters
-
createInsert
protected AbstractTransactionActionType createInsert(Wfs20Factory factory, TransactionRequest.Insert elem) throws Exception - Throws:
Exception
-
createUpdate
protected AbstractTransactionActionType createUpdate(Wfs20Factory factory, TransactionRequest.Update elem) throws Exception - Throws:
Exception
-
createDelete
protected AbstractTransactionActionType createDelete(Wfs20Factory factory, TransactionRequest.Delete elem) throws Exception - Throws:
Exception
-
canOffset
public boolean canOffset()Description copied from class:WFSStrategy
Indicates whether the server supports adjusting the starting position of the result set. Defaults to false, as not all servers provide support for paging.- Overrides:
canOffset
in classWFSStrategy
- Returns:
- true if the server supports setting an offset for the results, otherwise false
-