Class StrictWFS_1_x_Strategy
- Object
-
- Specification
-
- WFSStrategy
-
- AbstractWFSStrategy
-
- StrictWFS_1_x_Strategy
-
- Direct Known Subclasses:
ArcGisStrategy_1_X
,CubeWerxStrategy
,GeoServerPre200Strategy
,IonicStrategy
,MapServerWFSStrategy
public class StrictWFS_1_x_Strategy extends AbstractWFSStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected WFSCapabilitiesType
capabilities
The WFS GetCapabilities document.
-
Constructor Summary
Constructors Constructor Description StrictWFS_1_x_Strategy()
StrictWFS_1_x_Strategy(Version defaultVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DeleteElementType
createDelete(WfsFactory factory, TransactionRequest.Delete elem)
protected DescribeFeatureTypeType
createDescribeFeatureTypeRequestPost(DescribeFeatureTypeRequest request)
Creates the EMF object to be encoded with theWFS configuration
when a DescribeFeatureType POST request is to be made.protected EObject
createDescribeStoredQueriesRequestPost(DescribeStoredQueriesRequest request)
protected GetFeatureType
createGetFeatureRequestPost(GetFeatureRequest query)
Creates the EMF object to be encoded with theWFS configuration
when a GetFeature POST request is to be made.protected InsertElementType
createInsert(WfsFactory factory, TransactionRequest.Insert elem)
protected EObject
createListStoredQueriesRequestPost(ListStoredQueriesRequest request)
protected EObject
createTransactionRequest(TransactionRequest request)
Creates the EMF object to be encoded with theWFS configuration
when a Transaction request is to be made.protected UpdateElementType
createUpdate(WfsFactory factory, TransactionRequest.Update elem)
protected Set<String>
findParameters(OperationType operationMetadata, String parameterName)
List<String>
getClientSupportedOutputFormats(WFSOperationType operation)
FeatureTypeInfo
getFeatureTypeInfo(QName typeName)
Returns the feature type metadata object parsed from the capabilities document for the giventypeName
Set<QName>
getFeatureTypeNames()
Returns the set of type names as extracted from the capabilities document, including the namespace and prefix.FilterCapabilities
getFilterCapabilities()
Returns the parsed version of the FilterCapabilities section in the capabilities documentConfiguration
getFilterConfiguration()
Returns 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)
Set<String>
getServerSupportedOutputFormats(QName typeName, WFSOperationType operation)
Set<String>
getServerSupportedOutputFormats(WFSOperationType operation)
WFSServiceInfo
getServiceInfo()
Version
getServiceVersion()
Returns the WFS protocol version this facade talks to the WFS instance.Set<String>
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.Configuration
getWfsConfiguration()
Returns the xml configuration used to encode all POST requests.void
setCapabilities(WFSGetCapabilities capabilities)
boolean
supports(GetFeatureRequest.ResultType resultType)
boolean
supportsIdGenerator()
boolean
supportsTransaction(QName typeName)
protected FeatureTypeType
translateTypeInfo(FeatureTypeType typeInfo)
Any server specific translation of type information such as setting correct namespace-
Methods inherited from class AbstractWFSStrategy
buildDescribeFeatureTypeParametersForGET, buildDescribeFeatureTypeParametersForGET, buildDescribeStoredQueriesParametersForGET, buildGetFeatureParametersForGET, 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, canOffset, newRequestHandle
-
-
-
-
Field Detail
-
capabilities
protected WFSCapabilitiesType capabilities
The WFS GetCapabilities document. Final by now, as we're not handling updatesequence, so will not ask the server for an updated capabilities during the life-time of this datastore.
-
-
Constructor Detail
-
StrictWFS_1_x_Strategy
public StrictWFS_1_x_Strategy()
-
StrictWFS_1_x_Strategy
public StrictWFS_1_x_Strategy(Version defaultVersion)
-
-
Method Detail
-
getOperationName
protected QName getOperationName(WFSOperationType operation)
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
-
createGetFeatureRequestPost
protected GetFeatureType createGetFeatureRequestPost(GetFeatureRequest query) throws IOException
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
- Throws:
IOException
- See Also:
AbstractWFSStrategy.createGetFeatureRequestPost(org.geotools.data.wfs.internal.GetFeatureRequest)
-
createDescribeFeatureTypeRequestPost
protected DescribeFeatureTypeType createDescribeFeatureTypeRequestPost(DescribeFeatureTypeRequest request)
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
-
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
protected EObject createTransactionRequest(TransactionRequest request) throws IOException
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
-
createInsert
protected InsertElementType createInsert(WfsFactory factory, TransactionRequest.Insert elem) throws Exception
- Throws:
Exception
-
createUpdate
protected UpdateElementType createUpdate(WfsFactory factory, TransactionRequest.Update elem) throws Exception
- Throws:
Exception
-
createDelete
protected DeleteElementType createDelete(WfsFactory factory, TransactionRequest.Delete elem) throws Exception
- Throws:
Exception
-
supportsTransaction
public boolean supportsTransaction(QName typeName)
- Specified by:
supportsTransaction
in classWFSStrategy
-
getFilterConfiguration
public Configuration getFilterConfiguration()
Description copied from class:AbstractWFSStrategy
Returns the xml configuration used to encode a filter atAbstractWFSStrategy.encodeGetFeatureGetFilter(Filter)
- Specified by:
getFilterConfiguration
in classAbstractWFSStrategy
-
getWfsConfiguration
public Configuration getWfsConfiguration()
Description copied from class:AbstractWFSStrategy
Returns the xml configuration used to encode all POST requests.- Specified by:
getWfsConfiguration
in classAbstractWFSStrategy
- See Also:
AbstractWFSStrategy.getPostContents(WFSRequest)
-
setCapabilities
public void setCapabilities(WFSGetCapabilities capabilities)
- Specified by:
setCapabilities
in classWFSStrategy
-
translateTypeInfo
protected FeatureTypeType translateTypeInfo(FeatureTypeType typeInfo)
Any server specific translation of type information such as setting correct namespace- Parameters:
typeInfo
- type info- Returns:
- translated type info
-
getServiceInfo
public WFSServiceInfo getServiceInfo()
- Specified by:
getServiceInfo
in classWFSStrategy
-
supports
public boolean supports(GetFeatureRequest.ResultType resultType)
- Specified by:
supports
in classWFSStrategy
-
getServiceVersion
public Version 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:
WFSStrategy.getServiceVersion()
-
getFeatureTypeNames
public Set<QName> 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:
WFSStrategy.getFeatureTypeNames()
-
getFeatureTypeInfo
public FeatureTypeInfo getFeatureTypeInfo(QName typeName)
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:
WFSStrategy.getFeatureTypeInfo(javax.xml.namespace.QName)
-
getFilterCapabilities
public FilterCapabilities 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 - See Also:
WFSStrategy.getFilterCapabilities()
-
supportsIdGenerator
public boolean supportsIdGenerator()
- See Also:
WFSClient.isUseProvidedFIDSupported()
-
getOperationURI
protected String getOperationURI(WFSOperationType operation, HttpMethod method)
- Specified by:
getOperationURI
in classAbstractWFSStrategy
-
getServerSupportedOutputFormats
public Set<String> getServerSupportedOutputFormats(QName typeName, WFSOperationType operation)
- 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
- See Also:
WFSStrategy.getServerSupportedOutputFormats(QName, WFSOperationType)
-
getServerSupportedOutputFormats
public Set<String> getServerSupportedOutputFormats(WFSOperationType operation)
- Specified by:
getServerSupportedOutputFormats
in classWFSStrategy
- Returns:
- the output formats the server advertises for the given operation;
- See Also:
AbstractWFSStrategy.getDefaultOutputFormat(org.geotools.data.wfs.internal.WFSOperationType)
-
getSupportedCRSIdentifiers
public Set<String> getSupportedCRSIdentifiers(QName typeName)
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
- See Also:
WFSStrategy.getSupportedCRSIdentifiers(javax.xml.namespace.QName)
-
findParameters
protected Set<String> findParameters(OperationType operationMetadata, String parameterName)
-
getClientSupportedOutputFormats
public List<String> getClientSupportedOutputFormats(WFSOperationType operation)
- Specified by:
getClientSupportedOutputFormats
in classWFSStrategy
- Returns:
- the list of output formats supported by the client for the given operation, in preferred order.
-
getOperationMetadata
protected OperationType getOperationMetadata(WFSOperationType operation)
- Returns:
- the operation metadata advertised in the capabilities for the given operation
- See Also:
getServerSupportedOutputFormats(WFSOperationType)
-
-