|
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.Object org.deegree.ogcwebservices.AbstractOGCWebServiceRequest
public abstract class AbstractOGCWebServiceRequest
This is the abstract base class for all requests to OGC Web Services (OWS).
Contains utility methods to ease the extraction of values from KVP parameter maps.
Constructor Summary | |
---|---|
protected |
AbstractOGCWebServiceRequest(java.lang.String version,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.String> vendorSpecificParameter)
Creates a new instance of AbstractOGCWebServiceRequest . |
Method Summary | |
---|---|
java.lang.String |
getId()
returns the ID of a request |
protected static java.lang.String |
getParam(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> kvp,
java.lang.String defaultValue)
Extracts a String parameter value from the given parameter map. |
protected static int |
getParamAsInt(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> kvp,
int defaultValue)
Extracts an int parameter value from the given parameter map. |
protected static java.lang.String[] |
getParamValues(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> kvp,
java.lang.String defaultValue)
Extracts a String list from the given parameter map. |
java.lang.String |
getRequestParameter()
returns the URI of a HTTP GET request. |
protected static java.lang.String |
getRequiredParam(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> kvp)
Extracts a String parameter value from the given parameter map. |
java.lang.String |
getVendorSpecificParameter(java.lang.String name)
Finally, the requests allow for optional vendor-specific parameters (VSPs) that will enhance the results of a request. |
java.util.Map<java.lang.String,java.lang.String> |
getVendorSpecificParameters()
Finally, the requests allow for optional vendor-specific parameters (VSPs) that will enhance the results of a request. |
java.lang.String |
getVersion()
returns the requested service version |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.deegree.ogcwebservices.OGCWebServiceRequest |
---|
getServiceName |
Constructor Detail |
---|
protected AbstractOGCWebServiceRequest(java.lang.String version, java.lang.String id, java.util.Map<java.lang.String,java.lang.String> vendorSpecificParameter)
AbstractOGCWebServiceRequest
.
version
- id
- vendorSpecificParameter
- Method Detail |
---|
public java.lang.String getId()
getId
in interface OGCWebServiceRequest
public java.lang.String getVersion()
getVersion
in interface OGCWebServiceRequest
public java.util.Map<java.lang.String,java.lang.String> getVendorSpecificParameters()
getVendorSpecificParameters
in interface OGCWebServiceRequest
public java.lang.String getVendorSpecificParameter(java.lang.String name)
getVendorSpecificParameter
in interface OGCWebServiceRequest
name
- the "key" of a vsp
public java.lang.String getRequestParameter() throws OGCWebServiceException
getRequestParameter
in interface OGCWebServiceRequest
OGCWebServiceException
protected static java.lang.String getParam(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> kvp, java.lang.String defaultValue)
String
parameter value from the given parameter map. If the given
parameter does not exist, the also submitted default value is returned.
name
- name of the parameter to be looked upkvp
- must contain Strings as keys and Strings as valuesdefaultValue
- default value to be used if parameter is missing
protected static java.lang.String[] getParamValues(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> kvp, java.lang.String defaultValue)
String
list from the given parameter map. The single values are
separated by commas. If the given parameter does not exist, the also submitted default value
is returned.
name
- name of the parameter to be looked upkvp
- must contain Strings as keys and Strings as valuesdefaultValue
- default value to be used if parameter is missing
protected static java.lang.String getRequiredParam(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> kvp) throws MissingParameterValueException
String
parameter value from the given parameter map. Generates
exceptions with descriptive messages, if the parameter does not exist in the Map
.
name
- name of the parameter to be looked upkvp
- must contain Strings as keys and Strings as values
MissingParameterValueException
protected static int getParamAsInt(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> kvp, int defaultValue) throws InvalidParameterValueException
int
parameter value from the given parameter map. If the given
parameter does not exist, the also submitted default value is returned.
name
- name of the parameter to be looked upkvp
- must contain Strings as keys and Strings as valuesdefaultValue
- default value to be used if parameter is missing
InvalidParameterValueException
public java.lang.String toString()
toString
in class java.lang.Object
|
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