Package org.geotools.ows.wms
Class WMS1_0_0.GetMapRequest
- Object
-
- AbstractRequest
-
- AbstractWMSRequest
-
- AbstractGetMapRequest
-
- GetMapRequest
-
- All Implemented Interfaces:
Request,GetMapRequest
- 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
-
-
Field Summary
-
Fields inherited from class AbstractRequest
EXCEPTION_XML, hints, onlineResource, properties
-
Fields inherited from interface 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
Constructors Constructor Description GetMapRequest(URL onlineResource)Constructs a GetMapRequest for use with a 1.0.0 server
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponsecreateResponse(HTTPResponse httpResponse)Each Request must know how to create it's counterpart Response.protected StringgetRequestException(String exception)protected StringgetRequestFormat(String format)protected voidinitRequest()protected voidinitVersion()Sets up the version number for this request.protected StringprocessKey(String key)Some Open Web Servers do not abide by the fact that parameter keys should be case insensitive.voidsetExceptions(String exceptions)The exceptions type specifies what format the server should return exceptions in.voidsetProperty(String name, String value)Sets the name/value property for this request.-
Methods inherited from class AbstractGetMapRequest
addLayer, addLayer, addLayer, addLayer, addLayer, getFinalURL, isGeotoolsLongitudeFirstAxisOrderForced, setBBox, setBBox, setBGColour, setDimensions, setDimensions, setDimensions, setElevation, setFormat, setProperties, setSampleDimensionValue, setSRS, setTime, setTransparent, setVendorSpecificParameter, setVersion, toServerCRS
-
Methods inherited from class AbstractWMSRequest
initService
-
Methods inherited from class AbstractRequest
getPostContentType, getProperties, getRequestHints, performPostOutput, requiresPost, setRequestHints
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface Request
getPostContentType, getProperties, getRequestHints, performPostOutput, requiresPost, setRequestHints
-
-
-
-
Constructor Detail
-
GetMapRequest
public GetMapRequest(URL onlineResource)
Constructs a GetMapRequest for use with a 1.0.0 server- Parameters:
onlineResource- the URL for server's GetMap request
-
-
Method Detail
-
initRequest
protected void initRequest()
- Overrides:
initRequestin classAbstractGetMapRequest
-
initVersion
protected void initVersion()
Description copied from class:AbstractRequestSets up the version number for this request. Typically something like setProperty("VERSION", "1.1.1");- Specified by:
initVersionin classAbstractGetMapRequest
-
setProperty
public void setProperty(String name, String value)
Description copied from interface:RequestSets 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
valueaccording 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.
- Specified by:
setPropertyin interfaceRequest- Overrides:
setPropertyin classAbstractRequest- Parameters:
name- the name of the propertyvalue- the value of the property
-
setExceptions
public void setExceptions(String exceptions)
Description copied from class:AbstractGetMapRequestThe 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:
setExceptionsin interfaceGetMapRequest- Overrides:
setExceptionsin classAbstractGetMapRequest
-
processKey
protected String processKey(String key)
Description copied from class:AbstractRequestSome Open Web Servers 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:
processKeyin classAbstractRequest- Parameters:
key- the key to be processed- Returns:
- the key, after being processed. (made upper case, for example)
-
createResponse
public Response createResponse(HTTPResponse httpResponse) throws ServiceException, IOException
Description copied from interface:RequestEach Request must know how to create it's counterpart Response. Given the content type and input stream (containin the response data), this method must return an appropriate Response object.- Throws:
ServiceExceptionIOException
-
-