|
deegree 2.5 (2011/06/29 09:44 build-8-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 java.lang.String |
FORMAT_GML2
GML2 format * |
static java.lang.String |
FORMAT_GML2_WFS100
GML2 format (WFS 1.00 style) * |
static java.lang.String |
FORMAT_GML3
GML3 format * |
static java.lang.String |
FORMAT_XML
Generic XML format * |
| Constructor Summary | |
|---|---|
protected |
AbstractWFSRequest(java.lang.String version,
java.lang.String id,
java.lang.String handle,
java.util.Map<java.lang.String,java.lang.String> vendorSpecificParameter)
Creates a new AbstractWFSRequest instance. |
| Method Summary | |
|---|---|
protected static void |
checkServiceParameter(java.util.Map<java.lang.String,java.lang.String> model)
Checks that the "SERVICE" parameter value equals the name of the service. |
protected static java.lang.String |
checkVersionParameter(java.util.Map<java.lang.String,java.lang.String> model)
Checks that the "VERSION" parameter value equals a supported version. |
protected static Filter |
extractBBOXFilter(java.util.Map<java.lang.String,java.lang.String> model)
Extracts a Filter from the BBOX parameter. |
protected static java.util.Map<QualifiedName,Filter> |
extractFilters(java.util.Map<java.lang.String,java.lang.String> kvp,
QualifiedName[] typeNames)
Extracts the FILTER parameter and assigns them to the requested type names. |
protected static NamespaceContext |
extractNamespaceParameter(java.util.Map<java.lang.String,java.lang.String> model)
Extracts the namespace bindings from the NAMESPACE parameter. |
protected static QualifiedName[] |
extractTypeNames(java.util.Map<java.lang.String,java.lang.String> kvp)
Extracts the qualified type names from the TYPENAME parameter. |
java.lang.String |
getHandle()
Returns the value of the handle attribute. |
java.lang.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 java.lang.String FORMAT_GML2
public static java.lang.String FORMAT_GML2_WFS100
public static java.lang.String FORMAT_GML3
public static java.lang.String FORMAT_XML
| Constructor Detail |
|---|
protected AbstractWFSRequest(java.lang.String version,
java.lang.String id,
java.lang.String handle,
java.util.Map<java.lang.String,java.lang.String> vendorSpecificParameter)
AbstractWFSRequest instance.
version - id - handle - vendorSpecificParameter - | Method Detail |
|---|
public java.lang.String getServiceName()
public java.lang.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 java.lang.String checkVersionParameter(java.util.Map<java.lang.String,java.lang.String> model)
throws InvalidParameterValueException,
MissingParameterValueException
model - contains the parameters of the request
InvalidParameterValueException
MissingParameterValueException
protected static void checkServiceParameter(java.util.Map<java.lang.String,java.lang.String> model)
throws InconsistentRequestException,
MissingParameterValueException
model - contains the parameters of the request
InconsistentRequestException - if parameter is not present or does not the service name
MissingParameterValueException
protected static QualifiedName[] extractTypeNames(java.util.Map<java.lang.String,java.lang.String> kvp)
throws InvalidParameterValueException
kvp -
InvalidParameterValueException
protected static NamespaceContext extractNamespaceParameter(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.String> model)
throws InvalidParameterValueException
Filter from the BBOX parameter.
TODO handle other dimension count and crs
model -
InvalidParameterValueException
protected static java.util.Map<QualifiedName,Filter> extractFilters(java.util.Map<java.lang.String,java.lang.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.5 (2011/06/29 09:44 build-8-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://www.deegree.org