Class StrictWFS_2_0_Strategy
- Object
-
- Specification
-
- WFSStrategy
-
- AbstractWFSStrategy
-
- StrictWFS_2_0_Strategy
-
- Direct Known Subclasses:
ArcGisStrategy_2_0
public class StrictWFS_2_0_Strategy extends AbstractWFSStrategy
-
-
Constructor Summary
Constructors Constructor Description StrictWFS_2_0_Strategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>buildDescribeFeatureTypeParametersForGET(Map<String,String> kvp, QName typeName)protected Map<String,String>buildGetFeatureParametersForGET(GetFeatureRequest query)booleancanOffset()Indicates whether the server supports adjusting the starting position of the result set.protected AbstractTransactionActionTypecreateDelete(Wfs20Factory factory, TransactionRequest.Delete elem)protected EObjectcreateDescribeFeatureTypeRequestPost(DescribeFeatureTypeRequest request)Creates the EMF object to be encoded with theWFS configurationwhen a DescribeFeatureType POST request is to be made.protected EObjectcreateDescribeStoredQueriesRequestPost(DescribeStoredQueriesRequest request)protected EObjectcreateGetFeatureRequestPost(GetFeatureRequest query)Creates the EMF object to be encoded with theWFS configurationwhen a GetFeature POST request is to be made.protected AbstractTransactionActionTypecreateInsert(Wfs20Factory factory, TransactionRequest.Insert elem)protected EObjectcreateListStoredQueriesRequestPost(ListStoredQueriesRequest request)protected EObjectcreateTransactionRequest(TransactionRequest request)Creates the EMF object to be encoded with theWFS configurationwhen a Transaction request is to be made.protected AbstractTransactionActionTypecreateUpdate(Wfs20Factory factory, TransactionRequest.Update elem)protected Set<String>findParameters(OperationType operationMetadata, String parameterName)List<String>getClientSupportedOutputFormats(WFSOperationType operation)FeatureTypeInfogetFeatureTypeInfo(QName typeName)Returns the feature type metadata object parsed from the capabilities document for the giventypeNameSet<QName>getFeatureTypeNames()Returns the set of type names as extracted from the capabilities document, including the namespace and prefix.FilterCapabilitiesgetFilterCapabilities()Returns the parsed version of the FilterCapabilities section in the capabilities documentConfigurationgetFilterConfiguration()Returns the xml configuration used to encode a filter atAbstractWFSStrategy.encodeGetFeatureGetFilter(Filter)protected OperationTypegetOperationMetadata(WFSOperationType operation)protected QNamegetOperationName(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 StringgetOperationURI(WFSOperationType operation, HttpMethod method)Set<String>getServerSupportedOutputFormats(QName typeName, WFSOperationType operation)Set<String>getServerSupportedOutputFormats(WFSOperationType operation)WFSServiceInfogetServiceInfo()VersiongetServiceVersion()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.ConfigurationgetWfsConfiguration()Returns the xml configuration used to encode all POST requests.voidsetCapabilities(WFSGetCapabilities capabilities)booleansupports(GetFeatureRequest.ResultType resultType)booleansupportsTransaction(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
-
-
-
-
Method Detail
-
getFilterConfiguration
public Configuration getFilterConfiguration()
Description copied from class:AbstractWFSStrategyReturns the xml configuration used to encode a filter atAbstractWFSStrategy.encodeGetFeatureGetFilter(Filter)- Specified by:
getFilterConfigurationin classAbstractWFSStrategy
-
getWfsConfiguration
public Configuration getWfsConfiguration()
Description copied from class:AbstractWFSStrategyReturns the xml configuration used to encode all POST requests.- Specified by:
getWfsConfigurationin classAbstractWFSStrategy- See Also:
AbstractWFSStrategy.getPostContents(WFSRequest)
-
getOperationName
protected QName getOperationName(WFSOperationType operation)
Description copied from class:AbstractWFSStrategyUsed byAbstractWFSStrategy.getPostContents(WFSRequest)to get the qualified operation name to encode; different WFS versions may use different operation names (specially namespaces).- Specified by:
getOperationNamein classAbstractWFSStrategy
-
setCapabilities
public void setCapabilities(WFSGetCapabilities capabilities)
- Specified by:
setCapabilitiesin classWFSStrategy
-
getServiceInfo
public WFSServiceInfo getServiceInfo()
- Specified by:
getServiceInfoin classWFSStrategy
-
supports
public boolean supports(GetFeatureRequest.ResultType resultType)
- Specified by:
supportsin classWFSStrategy
-
getServiceVersion
public Version getServiceVersion()
Description copied from class:WFSStrategyReturns the WFS protocol version this facade talks to the WFS instance.- Specified by:
getServiceVersionin classAbstractWFSStrategy- Returns:
- the protocol version in use by this facade
- See Also:
WFSStrategy.getServiceVersion()
-
getFeatureTypeNames
public Set<QName> getFeatureTypeNames()
Description copied from class:WFSStrategyReturns the set of type names as extracted from the capabilities document, including the namespace and prefix.- Specified by:
getFeatureTypeNamesin 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:WFSStrategyReturns the feature type metadata object parsed from the capabilities document for the giventypeName- Specified by:
getFeatureTypeInfoin classWFSStrategy- Parameters:
typeName- the typeName as stated in the capabilitiesFeatureTypeListto 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:WFSStrategyReturns the parsed version of the FilterCapabilities section in the capabilities document- Specified by:
getFilterCapabilitiesin classWFSStrategy- Returns:
- a
FilterCapabilitiesout of the FilterCapabilities section in the getcapabilities document
-
buildGetFeatureParametersForGET
protected Map<String,String> buildGetFeatureParametersForGET(GetFeatureRequest query)
- Overrides:
buildGetFeatureParametersForGETin classAbstractWFSStrategy
-
buildDescribeFeatureTypeParametersForGET
protected Map<String,String> buildDescribeFeatureTypeParametersForGET(Map<String,String> kvp, QName typeName)
- Overrides:
buildDescribeFeatureTypeParametersForGETin classAbstractWFSStrategy
-
createDescribeFeatureTypeRequestPost
protected EObject createDescribeFeatureTypeRequestPost(DescribeFeatureTypeRequest request)
Description copied from class:AbstractWFSStrategyCreates the EMF object to be encoded with theWFS configurationwhen a DescribeFeatureType POST request is to be made.- Specified by:
createDescribeFeatureTypeRequestPostin classAbstractWFSStrategy
-
createGetFeatureRequestPost
protected EObject createGetFeatureRequestPost(GetFeatureRequest query)
Description copied from class:AbstractWFSStrategyCreates the EMF object to be encoded with theWFS configurationwhen a GetFeature POST request is to be made.- Specified by:
createGetFeatureRequestPostin classAbstractWFSStrategy
-
createListStoredQueriesRequestPost
protected EObject createListStoredQueriesRequestPost(ListStoredQueriesRequest request) throws IOException
- Specified by:
createListStoredQueriesRequestPostin classAbstractWFSStrategy- Throws:
IOException
-
createDescribeStoredQueriesRequestPost
protected EObject createDescribeStoredQueriesRequestPost(DescribeStoredQueriesRequest request) throws IOException
- Specified by:
createDescribeStoredQueriesRequestPostin classAbstractWFSStrategy- Throws:
IOException
-
createTransactionRequest
protected EObject createTransactionRequest(TransactionRequest request) throws IOException
Description copied from class:AbstractWFSStrategyCreates the EMF object to be encoded with theWFS configurationwhen a Transaction request is to be made.- Specified by:
createTransactionRequestin classAbstractWFSStrategy- Throws:
IOException
-
getOperationURI
protected String getOperationURI(WFSOperationType operation, HttpMethod method)
- Specified by:
getOperationURIin classAbstractWFSStrategy
-
getServerSupportedOutputFormats
public Set<String> getServerSupportedOutputFormats(WFSOperationType operation)
- Specified by:
getServerSupportedOutputFormatsin classWFSStrategy- Returns:
- the output formats the server advertises for the given operation;
-
getServerSupportedOutputFormats
public Set<String> getServerSupportedOutputFormats(QName typeName, WFSOperationType operation)
- Specified by:
getServerSupportedOutputFormatsin 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
public List<String> getClientSupportedOutputFormats(WFSOperationType operation)
- Specified by:
getClientSupportedOutputFormatsin classWFSStrategy- Returns:
- the list of output formats supported by the client for the given operation, in preferred order.
-
supportsTransaction
public boolean supportsTransaction(QName typeName)
- Specified by:
supportsTransactionin classWFSStrategy
-
getOperationMetadata
protected OperationType getOperationMetadata(WFSOperationType operation)
- Returns:
- the operation metadata advertised in the capabilities for the given operation
- See Also:
getServerSupportedOutputFormats(WFSOperationType)
-
getSupportedCRSIdentifiers
public Set<String> getSupportedCRSIdentifiers(QName typeName)
Description copied from class:WFSStrategyReturns 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:
getSupportedCRSIdentifiersin 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
protected Set<String> findParameters(OperationType operationMetadata, String parameterName)
-
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:WFSStrategyIndicates whether the server supports adjusting the starting position of the result set. Defaults to false, as not all servers provide support for paging.- Overrides:
canOffsetin classWFSStrategy- Returns:
- true if the server supports setting an offset for the results, otherwise false
-
-