|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.ows.wfs.GetFeature
Implementation of a WFS GetFeature query. This class executes a query for the layer and returns the result as a recordset.
| Constructor Summary | |
GetFeature()
Creates a new GetFeature object. |
|
GetFeature(java.lang.String layerName,
WfsService service,
Filter filter,
Recordset rs)
Creates a new GetFeature object for the specified layer, filter and recordset. |
|
GetFeature(java.lang.String layerName,
WfsService service,
Filter filter,
Recordset rs,
int maxFeatures)
Creates a new GetFeature object for the specified layer, filter and recordset. |
|
GetFeature(WfsLayer layer,
Filter filter)
Creates a new GetFeature object for the specified layer, and filter. |
|
GetFeature(WfsLayer layer,
Filter filter,
int maxFeatures)
Creates a new GetFeature object for the specified layer, and filter. |
|
| Method Summary | |
java.lang.String |
getKvpRequestString()
Gets the HTTP request used for the GetFeature query. |
java.lang.String |
getPostRequestString()
Gets the XML used for the GetFeature query. |
java.lang.String |
getRequest()
Gets the request XML or HTTP. |
java.lang.String |
getResponse()
Gets the response from the WFS server. |
boolean |
isValid()
Returns an indicator of whether the settings are complete enough to make a WFS request. |
Recordset |
query()
Submits the WFS query for the object and returns the recordset. |
static Recordset |
query(java.lang.String url,
java.lang.String layerName,
Filter filter,
int maxFeatures)
Executes a static WFS GetFeature POST request with the values specified, using the default version 1.0.0, output format GML2, parser com.moximedia.ows.xml.GetFeatureGML2 and null namespace. |
static Recordset |
query(java.lang.String url,
java.lang.String version,
java.lang.String layerName,
Filter filter,
int maxFeatures,
java.lang.String namespace,
java.lang.String schema,
java.lang.String outputFormat,
java.lang.String parsingFormat)
Executes a static WFS GetFeature POST request with the values specified. |
void |
setFieldNames(java.lang.String names)
Sets the names of the fields to return feature information for. |
void |
setFilter(Filter filter)
Sets the filter for the query. |
void |
setLayerName(java.lang.String name)
Sets the layer name to be queried. |
void |
setMaxFeatures(int maxFeatures)
Sets the maximum number of features to be returned as a result. |
void |
setNamespace(java.lang.String namespace)
Sets the namespace addition for the query header. |
void |
setOutputFormat(java.lang.String format)
Sets the output format. |
void |
setParsingFormat(java.lang.String format)
Sets the name of the class used to parse features. |
void |
setRecordset(Recordset rs)
Sets the recordset that features will be loaded into. |
void |
setRequestMethod(int method)
Sets the request method. |
void |
setSchema(java.lang.String schema)
Sets the schema addition for the query header. |
void |
setService(WfsService service)
Sets the WFS service. |
void |
setUrl(java.lang.String url)
Sets the URL to call for the GetFeature request. |
void |
setUseOgcNamespaces(boolean useOgcNamespaces)
Sets whether the request should include OGC namespaces. |
void |
setVersion(java.lang.String version)
Sets the version string to send to the server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GetFeature()
public GetFeature(WfsLayer layer,
Filter filter)
layer - The WFS layer to query.filter - The filter to use to select features.
public GetFeature(WfsLayer layer,
Filter filter,
int maxFeatures)
layer - The WFS layer to query.filter - The filter to use to select features.maxFeatures - The maximum number of results.
public GetFeature(java.lang.String layerName,
WfsService service,
Filter filter,
Recordset rs)
layerName - The name of the WFS layer.service - The WFS service.filter - The filter to use to select features.rs - The target recordset for the results.
public GetFeature(java.lang.String layerName,
WfsService service,
Filter filter,
Recordset rs,
int maxFeatures)
layerName - The name of the WFS layer.service - The WFS service.filter - The filter to use to select features.rs - The target recordset for the results.maxFeatures - The maximum number of results.| Method Detail |
public void setFieldNames(java.lang.String names)
names - The field names, comma separated, no spaces.public void setFilter(Filter filter)
filter - The filter.public void setLayerName(java.lang.String name)
name - The layer name.public void setMaxFeatures(int maxFeatures)
maxFeatures - The maximum number of features to be returned.public void setNamespace(java.lang.String namespace)
namespace - The namespace text.public void setOutputFormat(java.lang.String format)
format - The output format, like "GML2".public void setParsingFormat(java.lang.String format)
format - The name of the class used to parse features,
like "com.moximedia.ows.xml.GetFeatureGML2".public void setRequestMethod(int method)
method - The request method, either WfsService.WFS_REQUEST_METHOD_GET
or WfsService.WFS_REQUEST_METHOD_POST.public void setRecordset(Recordset rs)
rs - The recordset.public void setSchema(java.lang.String schema)
schema - The schema text.public void setService(WfsService service)
service - The WFS service.public void setUrl(java.lang.String url)
url - The URL.public void setUseOgcNamespaces(boolean useOgcNamespaces)
useOgcNamespaces - True if they are used, otherwise false.public void setVersion(java.lang.String version)
version - The version string, like "1.0.0".public java.lang.String getRequest()
public java.lang.String getResponse()
public boolean isValid()
public Recordset query()
public static Recordset query(java.lang.String url,
java.lang.String layerName,
Filter filter,
int maxFeatures)
url - layerName - The layer name.filter - The filter to select features.maxFeatures - The maximum number of features to return.
public static Recordset query(java.lang.String url,
java.lang.String version,
java.lang.String layerName,
Filter filter,
int maxFeatures,
java.lang.String namespace,
java.lang.String schema,
java.lang.String outputFormat,
java.lang.String parsingFormat)
url - version - The WFS version number.layerName - The layer name.filter - The filter to select features.maxFeatures - The maximum number of features to return.namespace - The extra namespace definition to add to the request.outputFormat - The output format for the response.parsingFormat - The name of the class used for parsing the response.
public java.lang.String getKvpRequestString()
public java.lang.String getPostRequestString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||