org.geotools.data.wms.request
Class AbstractPutStylesRequest

java.lang.Object
  extended by org.geotools.data.ows.AbstractRequest
      extended by org.geotools.data.wms.request.AbstractWMSRequest
          extended by org.geotools.data.wms.request.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

Field Summary
 
Fields inherited from class org.geotools.data.ows.AbstractRequest
EXCEPTION_XML, onlineResource, properties
 
Fields inherited from interface org.geotools.data.wms.request.PutStylesRequest
INSERT_AND_REPLACE, MODE, REPLACE_ALL, SLD, SLD_BODY
 
Fields inherited from interface org.geotools.data.ows.Request
REQUEST, SERVICE, VERSION, WMTVER
 
Constructor Summary
AbstractPutStylesRequest(java.net.URL onlineResource, java.util.Properties properties)
           
 
Method Summary
protected  void initRequest()
           
protected abstract  void initVersion()
          Sets up the version number for this request.
 void setMode(java.lang.String mode)
           
 void setSLD(java.lang.String sld)
           
 void setSLDBody(java.lang.String sldBody)
           
 
Methods inherited from class org.geotools.data.wms.request.AbstractWMSRequest
initService
 
Methods inherited from class org.geotools.data.ows.AbstractRequest
getFinalURL, getPostContentType, getProperties, performPostOutput, processKey, requiresPost, 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.ows.Request
createResponse, getFinalURL, getPostContentType, getProperties, performPostOutput, requiresPost, setProperty
 

Constructor Detail

AbstractPutStylesRequest

public AbstractPutStylesRequest(java.net.URL onlineResource,
                                java.util.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(java.lang.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(java.lang.String sld)
Specified by:
setSLD in interface PutStylesRequest

setSLDBody

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


Copyright © 1996-2010 Geotools. All Rights Reserved.