|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.wms.request.AbstractRequest
A class that provides functionality for performing basic requests
Field Summary | |
static java.lang.String |
EXCEPTION_XML
Represents OGC Exception MIME types |
protected java.net.URL |
onlineResource
|
protected java.util.Properties |
properties
|
Fields inherited from interface org.geotools.data.wms.request.Request |
REQUEST, SERVICE, VERSION, WMTVER |
Constructor Summary | |
AbstractRequest(java.net.URL onlineResource,
java.util.Properties properties)
Creates an AbstractRequest. |
Method Summary | |
java.net.URL |
getFinalURL()
Once the properties of the request are configured, this will return the URL that points to the server and contains all of the appropriate name/value parameters. |
java.util.Properties |
getProperties()
|
protected java.lang.String |
processKey(java.lang.String key)
Some WebMapServers do not abide by the fact that parameter keys should be case insensitive. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the name/value property for this request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String EXCEPTION_XML
protected java.net.URL onlineResource
protected java.util.Properties properties
Constructor Detail |
public AbstractRequest(java.net.URL onlineResource, java.util.Properties properties)
null
, it will use them instead of
creating a new Properties object.
This constructor will strip all the query parameters off of
onlineResource and put them in the properties map. This allows clients
to provide their own parameters and have them saved and used along with
the WMS specific ones.
However, certain parameters will be over-written by individual requests
themselves. Examples of such parameters include, but are not limited to:
onlineResource
- the URL to construct the Request forproperties
- a map of pre-set parameters to be used. Can be null.Method Detail |
public java.net.URL getFinalURL()
Request
getFinalURL
in interface Request
Request.getFinalURL()
protected java.lang.String processKey(java.lang.String key)
key
- the key to be processed
public void setProperty(java.lang.String name, java.lang.String value)
Request
value
according to the
WMS specifications! The code will not do this for you. Please ensure
that you are familiar with this. See section 6.2.1 of the WMS 1.1.1 spec
and 6.3.2 of the WMS 1.3.0 spec.
If value is null, "name" is removed from the properties table.
setProperty
in interface Request
name
- the name of the propertyvalue
- the value of the propertyRequest.setProperty(java.lang.String, java.lang.String)
public java.util.Properties getProperties()
getProperties
in interface Request
Request.getProperties()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |