|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.ogcwebservices.AbstractOGCWebServiceRequest
org.deegree.ogcwebservices.wfs.operation.AbstractWFSRequest
public class AbstractWFSRequest
Abstract base class for requests to web feature services.
Field Summary | |
---|---|
static String |
FORMAT_GML2
GML2 format * |
static String |
FORMAT_GML2_WFS100
GML2 format (WFS 1.00 style) * |
static String |
FORMAT_GML3
GML3 format * |
static String |
FORMAT_XML
Generic XML format * |
Constructor Summary | |
---|---|
protected |
AbstractWFSRequest(String version,
String id,
String handle,
Map<String,String> vendorSpecificParameter)
Creates a new AbstractWFSRequest instance. |
Method Summary | |
---|---|
protected static void |
checkServiceParameter(Map<String,String> model)
Checks that the "SERVICE" parameter value equals the name of the service. |
protected static String |
checkVersionParameter(Map<String,String> model)
Checks that the "VERSION" parameter value equals a supported version. |
protected static Filter |
extractBBOXFilter(Map<String,String> model)
Extracts a Filter from the BBOX parameter. |
protected static Map<QualifiedName,Filter> |
extractFilters(Map<String,String> kvp,
QualifiedName[] typeNames)
Extracts the FILTER parameter and assigns them to the requested type names. |
protected static NamespaceContext |
extractNamespaceParameter(Map<String,String> model)
Extracts the namespace bindings from the NAMESPACE parameter. |
protected static QualifiedName[] |
extractTypeNames(Map<String,String> kvp)
Extracts the qualified type names from the TYPENAME parameter. |
String |
getHandle()
Returns the value of the handle attribute. |
String |
getServiceName()
Returns the value of the service attribute (WFS). |
Methods inherited from class org.deegree.ogcwebservices.AbstractOGCWebServiceRequest |
---|
getId, getParam, getParamAsInt, getParamValues, getRequestParameter, getRequiredParam, getVendorSpecificParameter, getVendorSpecificParameters, getVersion, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static String FORMAT_GML2
public static String FORMAT_GML2_WFS100
public static String FORMAT_GML3
public static String FORMAT_XML
Constructor Detail |
---|
protected AbstractWFSRequest(String version, String id, String handle, Map<String,String> vendorSpecificParameter)
AbstractWFSRequest
instance.
version
- id
- handle
- vendorSpecificParameter
- Method Detail |
---|
public String getServiceName()
public String getHandle()
The purpose of the handle attribute is to allow a client application to associate a mnemonic name with a request for error handling purposes. If a handle is specified, and an exception is encountered, a Web Feature Service may use the handle to identify the offending element.
protected static String checkVersionParameter(Map<String,String> model) throws InconsistentRequestException, InvalidParameterValueException
model
- contains the parameters of the request
InconsistentRequestException
- if parameter is not present
InvalidParameterValueException
protected static void checkServiceParameter(Map<String,String> model) throws InconsistentRequestException
model
- contains the parameters of the request
InconsistentRequestException
- if parameter is not present or does not the service nameprotected static QualifiedName[] extractTypeNames(Map<String,String> kvp) throws InvalidParameterValueException
kvp
-
InvalidParameterValueException
protected static NamespaceContext extractNamespaceParameter(Map<String,String> model) throws InvalidParameterValueException
Example:
NAMESPACE=xmlns(myns=http://www.someserver.com),xmlns(yourns=http://www.someotherserver.com)
The default namespace may also be bound (two variants are supported):
NAMESPACE=xmlns(=http://www.someserver.com)
NAMESPACE=xmlns(http://www.someserver.com)
model
- the parameters of the request
InvalidParameterValueException
protected static Filter extractBBOXFilter(Map<String,String> model) throws InvalidParameterValueException
Filter
from the BBOX parameter.
TODO handle other dimension count and crs
model
-
InvalidParameterValueException
protected static Map<QualifiedName,Filter> extractFilters(Map<String,String> kvp, QualifiedName[] typeNames) throws InvalidParameterValueException
This is necessary, because it is allowed to specify a filter for each requested feature type.
kvp
- typeNames
-
InvalidParameterValueException
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net