org.geotools.data.wms
Class WMS1_0_0.GetMapRequest
java.lang.Object
org.geotools.data.wms.request.AbstractRequest
org.geotools.data.wms.request.AbstractGetMapRequest
org.geotools.data.wms.WMS1_0_0.GetMapRequest
- All Implemented Interfaces:
- GetMapRequest, Request
- Direct Known Subclasses:
- WMS1_1_0.GetMapRequest
- Enclosing class:
- WMS1_0_0
- public static class WMS1_0_0.GetMapRequest
- extends AbstractGetMapRequest
A GetMapRequest for a 1.0.0 Server
Fields inherited from interface org.geotools.data.wms.request.GetMapRequest |
BBOX, BGCOLOR, ELEVATION, EXCEPTION_BLANK, EXCEPTION_INIMAGE, EXCEPTION_XML, EXCEPTIONS, FORMAT, HEIGHT, LAYERS, REMOTE_OWS_TYPE, REMOTE_OWS_WCS, REMOTE_OWS_WFS, REMOVE_OWS_URL, SLD, SLD_BODY, SRS, STYLES, TIME, TRANSPARENT, WFS, WIDTH |
Constructor Summary |
WMS1_0_0.GetMapRequest(java.net.URL onlineResource)
Constructs a GetMapRequest for use with a 1.0.0 server |
Method Summary |
protected java.lang.String |
getRequestException(java.lang.String exception)
|
protected java.lang.String |
getRequestFormat(java.lang.String format)
|
protected void |
initRequest()
|
protected void |
initVersion()
|
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 |
setExceptions(java.lang.String exceptions)
The exceptions type specifies what format the server should return
exceptions in.
|
void |
setFormat(java.lang.String value)
From the Web Map Service Implementation Specification: "The required
FORMAT parameter states the desired format of the response to an
operation. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the name/value property for this request.
|
Methods inherited from class org.geotools.data.wms.request.AbstractGetMapRequest |
addLayer, addLayer, addLayer, addLayer, addLayer, getFinalURL, setBBox, setBBox, setBGColour, setDimensions, setDimensions, setElevation, setProperties, setSampleDimensionValue, setSRS, setTime, setTransparent, setVendorSpecificParameter, setVersion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WMS1_0_0.GetMapRequest
public WMS1_0_0.GetMapRequest(java.net.URL onlineResource)
- Constructs a GetMapRequest for use with a 1.0.0 server
- Parameters:
onlineResource
- the URL for server's GetMap request
initRequest
protected void initRequest()
- Overrides:
initRequest
in class AbstractGetMapRequest
initVersion
protected void initVersion()
- Specified by:
initVersion
in class AbstractGetMapRequest
setProperty
public void setProperty(java.lang.String name,
java.lang.String value)
- Description copied from interface:
Request
- Sets the name/value property for this request.
Note that when using this method, it is up to the programmer to
provide their own encoding of
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.
- Specified by:
setProperty
in interface Request
- Overrides:
setProperty
in class AbstractRequest
- See Also:
Request.setProperty(java.lang.String, java.lang.String)
setFormat
public void setFormat(java.lang.String value)
- Description copied from class:
AbstractGetMapRequest
- From the Web Map Service Implementation Specification: "The required
FORMAT parameter states the desired format of the response to an
operation. Supported values for a GetMap request on a WMS instance are
listed in one or more <Format> elements in the
&;ltRequest><GetMap> element of its Capabilities XML. The entire
MIME type string in <Format> is used as the value of the FORMAT
parameter."
- Specified by:
setFormat
in interface GetMapRequest
- Overrides:
setFormat
in class AbstractGetMapRequest
- Parameters:
value
- The desired format for the GetMap response
setExceptions
public void setExceptions(java.lang.String exceptions)
- Description copied from class:
AbstractGetMapRequest
- The exceptions type specifies what format the server should return
exceptions in.
Valid values are:
-
"application/vnd.ogc.se_xml" (the default)
-
"application/vnd.ogc.se_inimage"
-
"application/vnd.ogc.se_blank"
- Specified by:
setExceptions
in interface GetMapRequest
- Overrides:
setExceptions
in class AbstractGetMapRequest
- Parameters:
exceptions
-
getRequestException
protected java.lang.String getRequestException(java.lang.String exception)
getRequestFormat
protected java.lang.String getRequestFormat(java.lang.String format)
processKey
protected java.lang.String processKey(java.lang.String key)
- Description copied from class:
AbstractRequest
- Some WebMapServers do not abide by the fact that parameter keys should
be case insensitive.
This method will allow a specification to determine the way that the
parameter keys should be encoded in requests made by the server.
- Overrides:
processKey
in class AbstractRequest
- Parameters:
key
- the key to be processed
- Returns:
- the key, after being processed. (made upper case, for example)
Copyright © GeoTools. All Rights Reserved.