|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.wms.request.AbstractRequest
org.geotools.data.wms.request.AbstractGetMapRequest
| Field Summary |
| Fields inherited from class org.geotools.data.wms.request.AbstractRequest |
EXCEPTION_XML, onlineResource, properties |
| 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 |
| Fields inherited from interface org.geotools.data.wms.request.Request |
REQUEST, SERVICE, VERSION, WMTVER |
| Constructor Summary | |
AbstractGetMapRequest(java.net.URL onlineResource,
java.util.Properties properties)
Constructs a GetMapRequest. |
|
| Method Summary | |
void |
addLayer(Layer layer)
Adds a Layer to the list of layers to be requested. |
void |
addLayer(Layer layer,
java.lang.String style)
Adds a Layer to the list of layers to be requested. |
void |
addLayer(Layer layer,
org.opengis.layer.Style style)
Adds a Layer to the list of layers to be requested. |
void |
addLayer(java.lang.String layerName,
java.lang.String style)
Adds a Layer to the list of layers to be requested. |
void |
addLayer(java.lang.String layerName,
org.opengis.layer.Style style)
Adds a Layer to the list of layers to be requested. |
java.net.URL |
getFinalURL()
Once the properties of the request are configured, this will return the URL that points to the server and contains all of the appropriate name/value parameters. |
protected void |
initRequest()
|
protected abstract void |
initVersion()
|
void |
setBBox(CRSEnvelope box)
|
void |
setBBox(java.lang.String bbox)
From the Web Map Service Implementation Specification: "The required BBOX parameter allows a Client to request a particular Bounding Box. |
void |
setBGColour(java.lang.String bgColour)
Specifies the colour, in hexidecimal format, to be used as the background of the map. |
void |
setDimensions(int width,
int height)
|
void |
setDimensions(java.lang.String width,
java.lang.String height)
From the Web Map Service Implementation Specification: "The required WIDTH and HEIGHT parameters specify the size in integer pixels of the map image to be produced. |
void |
setElevation(java.lang.String elevation)
See the Web Map Server Implementation Specification 1.1.1, Annex C, in particular section C.4 |
void |
setExceptions(java.lang.String exceptions)
The exceptions type specifies what format the server should return exceptions in. |
void |
setFormat(java.lang.String format)
From the Web Map Service Implementation Specification: "The required FORMAT parameter states the desired format of the response to an operation. |
void |
setProperties(java.util.Properties p)
create a request using a properties file to save time |
void |
setSampleDimensionValue(java.lang.String name,
java.lang.String value)
See the Web Map Server Implementation Specification 1.1.1, Annex C, in particular section C.4.2 Example use: request.setSampleDimensionValue("DIM_WAVELENGTH",
"4000");
|
void |
setSRS(java.lang.String srs)
From the Web Map Service Implementation Specification: "The required SRS parameter states which Spatial Reference System applies to the values in the BBOX parameter. |
void |
setTime(java.lang.String time)
See the Web Map Server Implementation Specification 1.1.1, Annexes B and C |
void |
setTransparent(boolean transparent)
From the Web Map Service Implementation Specification: "The optional TRANSPARENT parameter specifies whether the map background is to be made transparent or not. |
void |
setVendorSpecificParameter(java.lang.String name,
java.lang.String value)
Used to implement vendor specific parameters. |
void |
setVersion(java.lang.String version)
Sets the version number of the request. |
| Methods inherited from class org.geotools.data.wms.request.AbstractRequest |
getProperties, processKey, setProperty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.geotools.data.wms.request.Request |
getProperties, setProperty |
| Constructor Detail |
public AbstractGetMapRequest(java.net.URL onlineResource,
java.util.Properties properties)
onlineResource - the location that the request should be applied toproperties - pre-set properties to be used. Can be null.| Method Detail |
public java.net.URL getFinalURL()
Request
getFinalURL in interface RequestgetFinalURL in class AbstractRequestRequest.getFinalURL()protected abstract void initVersion()
protected void initRequest()
public void setVersion(java.lang.String version)
setVersion in interface GetMapRequestversion - A String indicting a WMS Version ("1.0.0", "1.1.0",
"1.1.1", or "1.3.0")
public void addLayer(Layer layer,
java.lang.String style)
GetMapRequest
addLayer in interface GetMapRequestlayer - the Layer to usestyle - the style to use to draw the layer, can also be NULL, "" or "default"public void addLayer(Layer layer)
GetMapRequest
addLayer in interface GetMapRequestlayer - the Layer to use
public void addLayer(java.lang.String layerName,
java.lang.String style)
GetMapRequest
addLayer in interface GetMapRequestlayerName - the name of the layer to usestyle - the style to use to draw the layer, can also be NULL, "" or "default"
public void addLayer(Layer layer,
org.opengis.layer.Style style)
GetMapRequest
addLayer in interface GetMapRequestlayer - the Layer to usestyle - the style to use. If it is null, the default style is used.
public void addLayer(java.lang.String layerName,
org.opengis.layer.Style style)
GetMapRequest
addLayer in interface GetMapRequeststyle - the style to use. If it is null, the default style is used.public void setSRS(java.lang.String srs)
setSRS in interface GetMapRequestsrs - A String indicating the Spatial Reference System to render
the layers in.public void setBBox(java.lang.String bbox)
setBBox in interface GetMapRequestbbox - A string representing a bounding box in the format
"minx,miny,maxx,maxy"public void setBBox(CRSEnvelope box)
setBBox in interface GetMapRequestpublic void setFormat(java.lang.String format)
setFormat in interface GetMapRequestformat - The desired format for the GetMap response
public void setDimensions(java.lang.String width,
java.lang.String height)
setDimensions in interface GetMapRequestwidth - height - public void setTransparent(boolean transparent)
setTransparent in interface GetMapRequesttransparent - true for transparency, false otherwisepublic void setBGColour(java.lang.String bgColour)
setBGColour in interface GetMapRequestbgColour - the background colour of the map, in the format 0xRRGGBBpublic void setExceptions(java.lang.String exceptions)
Valid values are:
setExceptions in interface GetMapRequestexceptions - public void setTime(java.lang.String time)
setTime in interface GetMapRequesttime - See the Web Map Server Implementation Specification 1.1.1,
Annexes B and Cpublic void setElevation(java.lang.String elevation)
setElevation in interface GetMapRequestelevation - See the Web Map Server Implementation Specification
1.1.1, Annex C
public void setSampleDimensionValue(java.lang.String name,
java.lang.String value)
Example use: request.setSampleDimensionValue("DIM_WAVELENGTH",
"4000");
setSampleDimensionValue in interface GetMapRequestname - the request parameter name to set (usually with 'dim_' as
prefix)value - the value of the request parameter (value, interval or
comma-separated list)
public void setVendorSpecificParameter(java.lang.String name,
java.lang.String value)
setVendorSpecificParameter in interface GetMapRequestname - a request parameter namevalue - a value to accompany the name
public void setDimensions(int width,
int height)
setDimensions in interface GetMapRequestpublic void setProperties(java.util.Properties p)
GetMapRequest
setProperties in interface GetMapRequest
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||