org.geotools.data.wms.request
Class AbstractPutStylesRequest

Object
  extended by AbstractRequest
      extended by AbstractWMSRequest
          extended by AbstractPutStylesRequest
All Implemented Interfaces:
Request, PutStylesRequest
Direct Known Subclasses:
WMS1_1_0.InternalPutStylesRequest

public abstract class AbstractPutStylesRequest
extends AbstractWMSRequest
implements PutStylesRequest

Presents basic functionality for a PutStyles request

Author:
Richard Gould
Module:

Field Summary
 
Fields inherited from class AbstractRequest
EXCEPTION_XML, onlineResource, properties
 
Fields inherited from interface PutStylesRequest
INSERT_AND_REPLACE, MODE, REPLACE_ALL, SLD, SLD_BODY
 
Fields inherited from interface Request
REQUEST, SERVICE, VERSION, WMTVER
 
Constructor Summary
AbstractPutStylesRequest(URL onlineResource, Properties properties)
           
 
Method Summary
protected  void initRequest()
           
protected abstract  void initVersion()
          Sets up the version number for this request.
 void setMode(String mode)
           
 void setSLD(String sld)
           
 void setSLDBody(String sldBody)
           
 
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

AbstractPutStylesRequest

public AbstractPutStylesRequest(URL onlineResource,
                                Properties properties)
Parameters:
onlineResource -
properties -
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

setMode

public void setMode(String mode)
Specified by:
setMode in interface PutStylesRequest
Parameters:
mode - one of INSERT_AND_REPLACE or REPLACE_ALL
See Also:
PutStylesRequest.setMode(java.lang.String)

setSLD

public void setSLD(String sld)
Specified by:
setSLD in interface PutStylesRequest

setSLDBody

public void setSLDBody(String sldBody)
Specified by:
setSLDBody in interface PutStylesRequest


Copyright © 1996-2009 Geotools. All Rights Reserved.