|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WFSStrategy
An interface to allow plugging different strategy objects into a WFSDataStore
to take
care of specific WFS implementations limitations or deviations from the spec.
WFSDataStoreFactory
,
DefaultWFSStrategy
,
CubeWerxStrategy
Nested Class Summary | |
---|---|
static class |
WFSStrategy.RequestComponents
Holds the components needed by the data store to issue and post process a GetFeature request. |
Method Summary | |
---|---|
boolean |
canIgnoreMissingElementDeclaration()
A strategy can decide to ignore missing element declarations in XSD. |
WFSStrategy.RequestComponents |
createGetFeatureRequest(WFSProtocol wfs,
GetFeature request)
Creates a GetFeature request that the server implementation this strategy works upon can deal with, and returns both the appropriate request to send to the server as well as the Filter that should be post processed at runtime once the server response is obtained,
in order to match the actual query . |
String |
getDefaultOutputFormat(WFSProtocol wfs,
WFSOperationType operation)
Returns the protocol default output format name for the WFS version the implementation talks. |
Map<QName,Class<?>> |
getFieldTypeMappings()
Extra bindings to be mapped to standard XS types. |
Map<String,String> |
getNamespaceURIMappings()
Returns an optional namespace URIs map that a strategy can build to force namespace remapping in response parsing. |
String |
getPrefixedTypeName(QName typeName)
Gets the textual representation of the given QName. |
Configuration |
getWfsConfiguration()
Returns an xml configuration suitable to parse/encode wfs documents appropriate for the server. |
Filter[] |
splitFilters(Capabilities filterCaps,
Filter filter)
|
boolean |
supportsGet()
A simple means to specify whether GET requests are supported between the server and the client. |
boolean |
supportsPost()
A simple means to specify whether POST requests are supported between the server and the client. |
Method Detail |
---|
boolean supportsPost()
true
boolean supportsGet()
true
Configuration getWfsConfiguration()
Note: most of the time it will just be WFSConfiguration
, but it may be possible, for
example, an strategy needs to override some bindings.
Configuration
String getDefaultOutputFormat(WFSProtocol wfs, WFSOperationType operation)
operation
-
Filter[] splitFilters(Capabilities filterCaps, Filter filter)
WFSStrategy.RequestComponents createGetFeatureRequest(WFSProtocol wfs, GetFeature request) throws IOException
Filter
that should be post processed at runtime once the server response is obtained,
in order to match the actual query
.
wfs
- the WFS protocol handler from which the strategy may need to grab some feature
type metadata not available through the datastore interface, or even perform some
test request.request
- the GetFeature query to create the server request and post-processing filter foroutputFormat
- the output format indentifier that the request needs to be sent for. Shall be
supported by the server for the requested feature type.
query
IOException
String getPrefixedTypeName(QName typeName)
typeName
-
Map<String,String> getNamespaceURIMappings()
boolean canIgnoreMissingElementDeclaration()
Map<QName,Class<?>> getFieldTypeMappings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |