org.geotools.data.wms.request
Class AbstractGetStylesRequest

Object
  extended by AbstractRequest
      extended by AbstractWMSRequest
          extended by AbstractGetStylesRequest
All Implemented Interfaces:
Request, GetStylesRequest
Direct Known Subclasses:
WMS1_1_0.InternalGetStylesRequest

public abstract class AbstractGetStylesRequest
extends AbstractWMSRequest
implements GetStylesRequest

Provides functionality for a basic getStyles request

Author:
Richard Gould
Module:
modules/extension/wms (gt-wms.jar)

Field Summary
 
Fields inherited from class AbstractRequest
EXCEPTION_XML, onlineResource, properties
 
Fields inherited from interface GetStylesRequest
LAYERS, SLDVER
 
Fields inherited from interface Request
REQUEST, SERVICE, VERSION, WMTVER
 
Constructor Summary
AbstractGetStylesRequest(URL onlineResource, Layer[] layers)
           
 
Method Summary
 Layer[] getLayers()
           
protected  void initRequest()
           
protected abstract  void initVersion()
          Sets up the version number for this request.
 void setLayers(String layers)
           
 void setSLDver(String sldVer)
           
 
Methods inherited from class AbstractWMSRequest
initService
 
Methods inherited from class AbstractRequest
getFinalURL, getPostContentType, getProperties, performPostOutput, processKey, requiresPost, setProperty
 
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, performPostOutput, requiresPost, setProperty
 

Constructor Detail

AbstractGetStylesRequest

public AbstractGetStylesRequest(URL onlineResource,
                                Layer[] layers)
Parameters:
onlineResource -
layers -
Method Detail

initRequest

protected void initRequest()
Specified by:
initRequest in class AbstractRequest

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 class AbstractRequest

setLayers

public void setLayers(String layers)
Specified by:
setLayers in interface GetStylesRequest
Parameters:
layers - comma-separated list of named layers for which to retrieve style descriptions

setSLDver

public void setSLDver(String sldVer)
Specified by:
setSLDver in interface GetStylesRequest
Parameters:
sldVer - the SLD version requested for the SLD document

getLayers

public Layer[] getLayers()
Specified by:
getLayers in interface GetStylesRequest
Returns:
an array containing named layers


Copyright © 1996-2010 Geotools. All Rights Reserved.