|
||||||||||
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.DefaultWFSStrategy
public class DefaultWFSStrategy
A default strategy for a WFS 1.1.0 implementation that assumes the server sticks to the standard.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.geotools.data.wfs.v1_1_0.WFSStrategy |
---|
WFSStrategy.RequestComponents |
Field Summary | |
---|---|
protected static java.lang.String |
DEFAULT_OUTPUT_FORMAT
|
Constructor Summary | |
---|---|
DefaultWFSStrategy()
|
Method Summary | |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
buildGetFeatureParametersForGet(GetFeatureType request)
|
WFSStrategy.RequestComponents |
createGetFeatureRequest(WFSProtocol wfs,
GetFeature query)
Creates the mapping GetFeature request for the given Query and
outputFormat , and post-processing filter based on the server's stated filter
capabilities. |
protected java.lang.String |
encodeGetFeatureGetFilter(org.opengis.filter.Filter filter)
Returns a single-line string containing the xml representation of the given filter, as appropriate for the FILTER parameter in a GetFeature request. |
java.lang.String |
getDefaultOutputFormat(WFSProtocol wfs,
WFSOperationType operation)
Returns the protocol default output format name for the WFS version the implementation talks. |
protected Configuration |
getFilterConfiguration()
|
Configuration |
getWfsConfiguration()
Returns an xml configuration suitable to parse/encode wfs documents appropriate for the server. |
org.opengis.filter.Filter[] |
splitFilters(Capabilities caps,
org.opengis.filter.Filter queryFilter)
Splits the filter provided by the geotools query into the server supported and unsupported ones. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String DEFAULT_OUTPUT_FORMAT
Constructor Detail |
---|
public DefaultWFSStrategy()
Method Detail |
---|
public boolean supportsGet()
WFSStrategy
true
supportsGet
in interface WFSStrategy
WFSStrategy.supportsGet()
public boolean supportsPost()
WFSStrategy
true
supportsPost
in interface WFSStrategy
WFSStrategy.supportsPost()
public java.lang.String getDefaultOutputFormat(WFSProtocol wfs, WFSOperationType operation)
WFSStrategy
getDefaultOutputFormat
in interface WFSStrategy
"text/xml; subtype=gml/3.1.1"
WFSProtocol#getDefaultOutputFormat()
public WFSStrategy.RequestComponents createGetFeatureRequest(WFSProtocol wfs, GetFeature query) throws java.io.IOException
GetFeature
request for the given Query
and
outputFormat
, and post-processing filter based on the server's stated filter
capabilities.
createGetFeatureRequest
in interface WFSStrategy
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.query
- the GetFeature query to create the server request and post-processing filter for
query
java.io.IOException
WFSStrategy#createGetFeatureRequest(WFS_1_1_0_DataStore, WFSProtocol, Query, String)
protected java.util.Map<java.lang.String,java.lang.String> buildGetFeatureParametersForGet(GetFeatureType request) throws java.io.IOException
java.io.IOException
protected java.lang.String encodeGetFeatureGetFilter(org.opengis.filter.Filter filter) throws java.io.IOException
FILTER
parameter in a GetFeature request.
java.io.IOException
protected Configuration getFilterConfiguration()
public Configuration getWfsConfiguration()
WFSStrategy
Note: most of the time it will just be WFSConfiguration
, but it may be possible, for
example, an strategy needs to override some bindings.
getWfsConfiguration
in interface WFSStrategy
Configuration
WFSStrategy.getWfsConfiguration()
public org.opengis.filter.Filter[] splitFilters(Capabilities caps, org.opengis.filter.Filter queryFilter)
splitFilters
in interface WFSStrategy
caps
- the server filter capabilities descriptionqueryFilter
-
WFSStrategy#splitFilters(WFS_1_1_0_Protocol, Filter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |