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 void
initRequest()
protected abstract void
initVersion()
Sets up the version number for this request.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)
void
setFeatureType(String featureType)
void
setFormat(String format)
void
setHeight(String height)
void
setLayer(String layer)
void
setRule(String rule)
void
setScale(String scale)
void
setSLD(String sld)
void
setSLDBody(String sldBody)
void
setStyle(String style)
void
setWidth(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:
initRequest
in classAbstractRequest
-
initVersion
protected abstract void initVersion()
Description copied from class:AbstractRequest
Sets up the version number for this request. Typically something like setProperty("VERSION", "1.1.1");- Specified by:
initVersion
in classAbstractRequest
-
setLayer
public void setLayer(String layer)
- Specified by:
setLayer
in interfaceGetLegendGraphicRequest
-
setStyle
public void setStyle(String style)
- Specified by:
setStyle
in interfaceGetLegendGraphicRequest
-
setFeatureType
public void setFeatureType(String featureType)
- Specified by:
setFeatureType
in interfaceGetLegendGraphicRequest
-
setRule
public void setRule(String rule)
- Specified by:
setRule
in interfaceGetLegendGraphicRequest
-
setScale
public void setScale(String scale)
- Specified by:
setScale
in interfaceGetLegendGraphicRequest
-
setSLD
public void setSLD(String sld)
- Specified by:
setSLD
in interfaceGetLegendGraphicRequest
-
setSLDBody
public void setSLDBody(String sldBody)
- Specified by:
setSLDBody
in interfaceGetLegendGraphicRequest
-
setFormat
public void setFormat(String format)
- Specified by:
setFormat
in interfaceGetLegendGraphicRequest
-
setWidth
public void setWidth(String width)
- Specified by:
setWidth
in interfaceGetLegendGraphicRequest
-
setHeight
public void setHeight(String height)
- Specified by:
setHeight
in interfaceGetLegendGraphicRequest
-
setExceptions
public void setExceptions(String exceptions)
- Specified by:
setExceptions
in interfaceGetLegendGraphicRequest
-
processKey
public String processKey(String key)
Description copied from class:AbstractRequest
Some 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:
processKey
in classAbstractRequest
- Parameters:
key
- the key to be processed- Returns:
- the key, after being processed. (made upper case, for example)
-
-