public static class WMS1_0_0.GetMapRequest extends AbstractGetMapRequest
EXCEPTION_XML, hints, onlineResource, properties
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 and Description |
---|
GetMapRequest(URL onlineResource)
Constructs a GetMapRequest for use with a 1.0.0 server
|
Modifier and Type | Method and Description |
---|---|
Response |
createResponse(HTTPResponse httpResponse)
Each Request must know how to create it's counterpart Response.
|
protected String |
getRequestException(String exception) |
protected String |
getRequestFormat(String format) |
protected void |
initRequest() |
protected void |
initVersion()
Sets up the version number for this request.
|
protected String |
processKey(String key)
Some Open Web Servers do not abide by the fact that parameter keys should be case
insensitive.
|
void |
setExceptions(String exceptions)
The exceptions type specifies what format the server should return exceptions in.
|
void |
setFormat(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(String name,
String value)
Sets the name/value property for this request.
|
addLayer, addLayer, addLayer, addLayer, addLayer, getFinalURL, isGeotoolsLongitudeFirstAxisOrderForced, setBBox, setBBox, setBGColour, setDimensions, setDimensions, setDimensions, setElevation, setProperties, setSampleDimensionValue, setSRS, setTime, setTransparent, setVendorSpecificParameter, setVersion, toServerCRS
initService
getPostContentType, getProperties, getRequestHints, performPostOutput, requiresPost, setRequestHints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPostContentType, getProperties, getRequestHints, performPostOutput, requiresPost, setRequestHints
public GetMapRequest(URL onlineResource)
onlineResource
- the URL for server's GetMap requestprotected void initRequest()
initRequest
in class AbstractGetMapRequest
protected void initVersion()
AbstractRequest
initVersion
in class AbstractGetMapRequest
public void setProperty(String name, String value)
Request
Note that when using this method, it is up to the programmer to provide their own encoding
of value
according to the OWS specifications! The code will not do this for you.
Different OWS specifications define different ways to do this. There are notorious differences between WMS 1.1.1 (section 6.2.1) and WMS 1.3.0 (section 6.3.2) for example.
If value is null, "name" is removed from the properties table.
setProperty
in interface Request
setProperty
in class AbstractRequest
name
- the name of the propertyvalue
- the value of the propertypublic void setFormat(String value)
AbstractGetMapRequest
setFormat
in interface GetMapRequest
setFormat
in class AbstractGetMapRequest
value
- The desired format for the GetMap responsepublic void setExceptions(String exceptions)
AbstractGetMapRequest
Valid values are:
setExceptions
in interface GetMapRequest
setExceptions
in class AbstractGetMapRequest
protected String processKey(String key)
AbstractRequest
This method will allow a specification to determine the way that the parameter keys should be encoded in requests made by the server.
processKey
in class AbstractRequest
key
- the key to be processedpublic Response createResponse(HTTPResponse httpResponse) throws ServiceException, IOException
Request
ServiceException
IOException
Copyright © 1996–2019 Geotools. All rights reserved.