Package org.geotools.ows.wms.request
Class AbstractGetLegendGraphicRequest
- Object
-
- AbstractRequest
-
- AbstractWMSRequest
-
- AbstractGetLegendGraphicRequest
-
- All Implemented Interfaces:
Request,GetLegendGraphicRequest
- Direct Known Subclasses:
WMS1_1_0.InternalGetLegendGraphicRequest
public abstract class AbstractGetLegendGraphicRequest extends AbstractWMSRequest implements GetLegendGraphicRequest
Provides functionality for a basic GetLegendGraphic request- Author:
- Richard Gould
-
-
Field Summary
-
Fields inherited from class AbstractRequest
EXCEPTION_XML, hints, onlineResource, properties
-
Fields inherited from interface GetLegendGraphicRequest
EXCEPTIONS, FEATURETYPE, FORMAT, HEIGHT, LAYER, RULE, SCALE, SLD, SLD_BODY, STYLE, WIDTH
-
-
Constructor Summary
Constructors Constructor Description AbstractGetLegendGraphicRequest(URL onlineResource)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidinitRequest()protected abstract voidinitVersion()Sets up the version number for this request.StringprocessKey(String key)Some Open Web Servers do not abide by the fact that parameter keys should be case insensitive.voidsetExceptions(String exceptions)voidsetFeatureType(String featureType)voidsetFormat(String format)voidsetHeight(String height)voidsetLayer(String layer)voidsetRule(String rule)voidsetScale(String scale)voidsetSLD(String sld)voidsetSLDBody(String sldBody)voidsetStyle(String style)voidsetWidth(String width)-
Methods inherited from class AbstractWMSRequest
initService
-
Methods inherited from class AbstractRequest
getFinalURL, getPostContentType, getProperties, getRequestHints, performPostOutput, requiresPost, setProperty, setRequestHints
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface Request
createResponse, getFinalURL, getPostContentType, getProperties, getRequestHints, performPostOutput, requiresPost, setProperty, setRequestHints
-
-
-
-
Constructor Detail
-
AbstractGetLegendGraphicRequest
public AbstractGetLegendGraphicRequest(URL onlineResource)
- Parameters:
onlineResource-
-
-
Method Detail
-
initRequest
protected void initRequest()
- Specified by:
initRequestin classAbstractRequest
-
initVersion
protected abstract 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 classAbstractRequest
-
setLayer
public void setLayer(String layer)
- Specified by:
setLayerin interfaceGetLegendGraphicRequest
-
setStyle
public void setStyle(String style)
- Specified by:
setStylein interfaceGetLegendGraphicRequest
-
setFeatureType
public void setFeatureType(String featureType)
- Specified by:
setFeatureTypein interfaceGetLegendGraphicRequest
-
setRule
public void setRule(String rule)
- Specified by:
setRulein interfaceGetLegendGraphicRequest
-
setScale
public void setScale(String scale)
- Specified by:
setScalein interfaceGetLegendGraphicRequest
-
setSLD
public void setSLD(String sld)
- Specified by:
setSLDin interfaceGetLegendGraphicRequest
-
setSLDBody
public void setSLDBody(String sldBody)
- Specified by:
setSLDBodyin interfaceGetLegendGraphicRequest
-
setFormat
public void setFormat(String format)
- Specified by:
setFormatin interfaceGetLegendGraphicRequest
-
setWidth
public void setWidth(String width)
- Specified by:
setWidthin interfaceGetLegendGraphicRequest
-
setHeight
public void setHeight(String height)
- Specified by:
setHeightin interfaceGetLegendGraphicRequest
-
setExceptions
public void setExceptions(String exceptions)
- Specified by:
setExceptionsin interfaceGetLegendGraphicRequest
-
processKey
public 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)
-
-