|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.protocol.wps.client.process.RawProcessExecution
public class RawProcessExecution
Represents an execution context for a Process
that uses the RawOutput
mode.
NOTE: This class is not thread-safe.
Process
,
ProcessExecution
Field Summary | |
---|---|
protected WPSClient |
client
Associated WPS client instance. |
protected List<ExecutionInput> |
inputs
List of inputs, may be empty, but never null |
protected Process |
process
Associated process instance. |
Method Summary | |
---|---|
void |
addBBoxInput(String id,
String idCodeSpace,
double[] lower,
double[] upper,
String crs)
Adds a bounding box input parameter. |
void |
addBinaryInput(String id,
String idCodeSpace,
InputStream inputStream,
String mimeType,
String encoding)
Adds a binary-valued complex input parameter. |
void |
addBinaryInput(String id,
String idCodeSpace,
URL url,
boolean byRef,
String mimeType,
String encoding)
Adds a binary-valued complex input parameter. |
void |
addLiteralInput(String id,
String idCodeSpace,
String value,
String type,
String uom)
Adds a literal input parameter. |
void |
addXMLInput(String id,
String idCodeSpace,
URL url,
boolean byRef,
String mimeType,
String encoding,
String schema)
Adds an XML-valued complex input parameter. |
void |
addXMLInput(String id,
String idCodeSpace,
XMLStreamReader reader,
String mimeType,
String encoding,
String schema)
Adds an XML-valued complex input parameter. |
ComplexOutput |
executeComplexOutput(String id,
String idCodeSpace,
String mimeType,
String encoding,
String schema)
Executes the process and returns the specified complex output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final WPSClient client
protected final Process process
protected final List<ExecutionInput> inputs
null
Method Detail |
---|
public ComplexOutput executeComplexOutput(String id, String idCodeSpace, String mimeType, String encoding, String schema) throws OWSExceptionReport, IOException, XMLStreamException
id
- identifier of the output parameter to be returned, must not be null
idCodeSpace
- codespace of the parameter identifier, may be null
(for identifiers without codespace)mimeType
- mimeType of the format, may be nullencoding
- encoding of the format, may be nullschema
- schema of the format, in case it is an XML format
null
OWSExceptionReport
- if the server replied with an exception
IOException
- if a communication/network problem occured
XMLStreamException
public void addLiteralInput(String id, String idCodeSpace, String value, String type, String uom)
id
- identifier of the input parameter, must not be null
idCodeSpace
- codespace of the parameter identifier, may be null
(for identifiers without codespace)value
- value of the literal input, must not be null
type
- data type in which the value should be considered, may be null
(this means it matches the
data type as defined by the process description)uom
- unit of measure of the value, may be null
(this means it matches the data type as defined
by the process description)public void addBBoxInput(String id, String idCodeSpace, double[] lower, double[] upper, String crs)
id
- identifier of the input parameter, must not be null
idCodeSpace
- codespace of the parameter identifier, may be null
(for identifiers without codespace)lower
- coordinates of the lower point, must not be null
upper
- coordinates of the upper point, must not be null
and length must match lower pointcrs
- coordinate system, may be null
(indicates that the default crs from the parameter
description applies)public void addXMLInput(String id, String idCodeSpace, URL url, boolean byRef, String mimeType, String encoding, String schema)
id
- identifier of the input parameter, must not be null
idCodeSpace
- codespace of the parameter identifier, may be null
(for identifiers without codespace)url
- URL
reference to the xml resource, must not be null
byRef
- if true, the parameter will be passed by reference to the server, otherwise it will be nested in the
Execute request. If true, the url needs to be web-accessible (e.g. not a file URL)mimeType
- mime type, may be null
(indicates that the default mime type from the parameter
description applies)encoding
- encoding, may be null
(indicates that the default encoding from the parameter description
applies)schema
- schema, may be null
(indicates that the default schema from the parameter description
applies)public void addXMLInput(String id, String idCodeSpace, XMLStreamReader reader, String mimeType, String encoding, String schema)
id
- identifier of the input parameter, must not be null
idCodeSpace
- codespace of the parameter identifier, may be null
(for identifiers without codespace)reader
- XMLStreamReader
to the xml data, must not be null
and point to the START_ELEMENT
eventmimeType
- mime type, may be null
(indicates that the default mime type from the parameter
description applies)encoding
- encoding, may be null
(indicates that the default encoding from the parameter description
applies)schema
- schema, may be null
(indicates that the default schema from the parameter description
applies)public void addBinaryInput(String id, String idCodeSpace, URL url, boolean byRef, String mimeType, String encoding)
id
- identifier of the input parameter, must not be null
idCodeSpace
- codespace of the parameter identifier, may be null
(for identifiers without codespace)url
- URL
reference to the binary resource, must not be null
(and must not be
web-accessible)byRef
- if true, the parameter will be passed by reference to the server, otherwise it will be nested in the
Execute request. If true, the url needs to be web-accessible (e.g. not a file URL)mimeType
- mime type, may be null
(indicates that the default mime type from the parameter
description applies)encoding
- encoding, may be null
(indicates that the default encoding from the parameter description
applies)public void addBinaryInput(String id, String idCodeSpace, InputStream inputStream, String mimeType, String encoding)
id
- identifier of the input parameter, must not be null
idCodeSpace
- codespace of the parameter identifier, may be null
(for identifiers without codespace)inputStream
- input stream to the binary data, must not be null
mimeType
- mime type, may be null
(indicates that the default mime type from the parameter
description applies)encoding
- encoding, may be null
(indicates that the default encoding from the parameter description
applies)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |