public class ExecuteRequestBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
VERSION_100 |
static String |
VERSION_200 |
| Constructor and Description |
|---|
ExecuteRequestBuilder(Process processDesc) |
ExecuteRequestBuilder(Process processDesc,
Execute execute) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBoundingBoxData(String parameterID,
BoundingBox value,
String schema,
String encoding,
String mimetype) |
void |
addComplexData(String parameterID,
InputStream value,
String schema,
String encoding,
String mimeType)
add an input element.
|
void |
addComplexData(String parameterID,
String value,
String schema,
String encoding,
String mimeType)
add an input element.
|
void |
addComplexDataReference(String parameterID,
String value,
String schema,
String encoding,
String mimetype)
Sets a reference to input data
|
void |
addLiteralData(String parameterID,
String value,
String schema,
String encoding,
String mimetype)
Add literal data to the request
|
void |
addOutput(String outputIdentifier,
String schema,
String encoding,
String mimeType) |
Execute |
getExecute()
XML representation of the created request.
|
void |
reset()
Resets the internal execute member to the initial state.
|
boolean |
setAsReference(String outputName,
boolean asReference)
this sets store for the specific output.
|
boolean |
setAsynchronousExecute() |
boolean |
setRawData(String outputIdentifier,
String schema,
String encoding,
String mimeType)
Asks for data as raw data, i.e.
|
boolean |
setResponseDocument(String outputIdentifier,
String schema,
String encoding,
String mimeType) |
public static final String VERSION_100
public static final String VERSION_200
public ExecuteRequestBuilder(Process processDesc)
public void addComplexData(String parameterID, String value, String schema, String encoding, String mimeType) throws WPSClientException
parameterID - the ID of the input (see process description)value - the actual value as String (for xml data xml for binary data
is should be base64 encoded data)schema - schema if applicable otherwise nullencoding - encoding if not the default encoding (for default encoding set
it to null) (i.e. binary data, use base64)mimeType - mimetype of the data, has to be setWPSClientException - if input description was not foundpublic void addComplexData(String parameterID, InputStream value, String schema, String encoding, String mimeType) throws WPSClientException
parameterID - the ID of the input (see process description)value - the actual value as InputStreamschema - schema if applicable otherwise nullencoding - encoding if not the default encoding (for default encoding set
it to null) (i.e. binary data, use base64)mimeType - mimetype of the data, has to be setWPSClientException - if input description was not foundpublic void addLiteralData(String parameterID, String value, String schema, String encoding, String mimetype)
parameterID - the ID of the input paramter according to the describe processvalue - the actual value as InputStreamschema - schema if applicable otherwise nullencoding - encoding if not the default encoding (for default encoding set
it to null) (i.e. binary data, use base64)mimetype - mimetype of the data, has to be setvalue - the value. other types than strings have to be converted to
string. The datatype is automatically determined and set
accordingly to the process descriptionpublic void addBoundingBoxData(String parameterID, BoundingBox value, String schema, String encoding, String mimetype)
public void addComplexDataReference(String parameterID, String value, String schema, String encoding, String mimetype) throws MalformedURLException
parameterID - ID of the input elementvalue - reference URLschema - schema if applicable otherwise nullencoding - encoding if applicable (typically not), otherwise nullmimetype - mimetype of the input according to the process description.
has to be setMalformedURLException - if the reference URL is malformedpublic boolean setAsReference(String outputName, boolean asReference)
outputName - the id of the outputasReference - true if output should be requested as reference, false
otherwisepublic boolean setResponseDocument(String outputIdentifier, String schema, String encoding, String mimeType)
public boolean setRawData(String outputIdentifier, String schema, String encoding, String mimeType)
outputIdentifier - identifier of the outputschema - if applicable otherwise nullencoding - if default encoding = null, otherwise base64mimeType - requested mimetype of the output according to the process
description. if not set, default mime type is used.public boolean setAsynchronousExecute()
public void addOutput(String outputIdentifier, String schema, String encoding, String mimeType)
public Execute getExecute()
public void reset()
Copyright © 2017–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.