org.geotools.data.wps.request
Class AbstractExecuteProcessRequest

java.lang.Object
  extended by org.geotools.data.ows.AbstractRequest
      extended by org.geotools.data.wps.request.AbstractWPSRequest
          extended by org.geotools.data.wps.request.AbstractExecuteProcessRequest
All Implemented Interfaces:
Request, ExecuteProcessRequest
Direct Known Subclasses:
WPS1_0_0.InternalExecuteProcessRequest

public abstract class AbstractExecuteProcessRequest
extends AbstractWPSRequest
implements ExecuteProcessRequest

Describes an abstract ExecuteProcess request. Provides everything except the versioning info, which subclasses must implement.

Author:
gdavis

Field Summary
 
Fields inherited from class org.geotools.data.ows.AbstractRequest
EXCEPTION_XML, onlineResource, properties
 
Fields inherited from interface org.geotools.data.wps.request.ExecuteProcessRequest
IDENTIFIER
 
Fields inherited from interface org.geotools.data.ows.Request
REQUEST, SERVICE, VERSION, WMTVER
 
Constructor Summary
AbstractExecuteProcessRequest(java.net.URL onlineResource, java.util.Properties properties)
          Constructs a basic ExecuteProcessRequest, without versioning info.
 
Method Summary
 void addInput(java.lang.String name, java.util.List<DataType> value)
          Add an input to the input properties.
protected  void initRequest()
           
protected abstract  void initVersion()
          Sets up the version number for this request.
 void performPostOutput(java.io.OutputStream outputStream)
          Default to not requiring POST.
 boolean requiresPost()
          Default to not requiring POST.
 void setIdentifier(java.lang.String identifier)
          Sets the name of the process to execute
 
Methods inherited from class org.geotools.data.wps.request.AbstractWPSRequest
initService
 
Methods inherited from class org.geotools.data.ows.AbstractRequest
getFinalURL, getPostContentType, 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.ows.Request
createResponse, getFinalURL, getPostContentType, getProperties, setProperty
 

Constructor Detail

AbstractExecuteProcessRequest

public AbstractExecuteProcessRequest(java.net.URL onlineResource,
                                     java.util.Properties properties)
Constructs a basic ExecuteProcessRequest, without versioning info.

Parameters:
onlineResource - the location of the request
properties - a set of properties to use. Can be null.
Method Detail

initRequest

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

setIdentifier

public void setIdentifier(java.lang.String identifier)
Description copied from interface: ExecuteProcessRequest
Sets the name of the process to execute

Specified by:
setIdentifier in interface ExecuteProcessRequest
Parameters:
identifier - a unique process name
See Also:
ExecuteProcessRequest.setIdentifier(java.lang.String)

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

requiresPost

public boolean requiresPost()
Description copied from class: AbstractRequest
Default to not requiring POST. Implementors can override if they need to.

Specified by:
requiresPost in interface Request
Overrides:
requiresPost in class AbstractRequest
Returns:
true if this request needs POST support, false otherwise.

performPostOutput

public void performPostOutput(java.io.OutputStream outputStream)
                       throws java.io.IOException
Description copied from class: AbstractRequest
Default to not requiring POST. Implementors can override if they need to.

Specified by:
performPostOutput in interface Request
Overrides:
performPostOutput in class AbstractRequest
Throws:
java.io.IOException

addInput

public void addInput(java.lang.String name,
                     java.util.List<DataType> value)
Add an input to the input properties. If null is passed as the value, remove any current input with the given name.

Specified by:
addInput in interface ExecuteProcessRequest
Parameters:
name - input name
value - the list of datatype input objects


Copyright © 1996-2010 Geotools. All Rights Reserved.