|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.protocol.wps.client.output.ExecutionOutput
org.deegree.protocol.wps.client.output.ComplexOutput
public class ComplexOutput
ExecutionOutput that encapsulates an XML or a binary value.
| Constructor Summary | |
|---|---|
ComplexOutput(CodeType id,
InputStream is,
String mimeType,
String encoding,
String schema)
Creates a new ComplexOutput instance. |
|
ComplexOutput(CodeType id,
StreamBufferStore store,
String mimeType,
String encoding,
String schema)
Creates a new ComplexOutput instance. |
|
ComplexOutput(CodeType id,
URL url,
String mimeType,
String encoding,
String schema)
Creates a new ComplexOutput instance. |
|
| Method Summary | |
|---|---|
InputStream |
getAsBinaryStream()
Returns an InputStream for accessing the complex value as a binary stream. |
XMLStreamReader |
getAsXMLStream()
Returns an XMLStreamReader for accessing the complex value as an XML event stream. |
ComplexFormat |
getFormat()
Returns the format of the output. |
URL |
getWebAccessibleURL()
Returns the web-accessible URL for the complex data (as provided by the process). |
| Methods inherited from class org.deegree.protocol.wps.client.output.ExecutionOutput |
|---|
getId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComplexOutput(CodeType id,
URL url,
String mimeType,
String encoding,
String schema)
ComplexOutput instance.
id - output parameter identifier, must not be nullurl - web-accessible URL for accessing the resource, must not be nullmimeType - mime type of the complex data, can be null (unspecified)encoding - encoding of the complex data, can be null (unspecified)schema - XML schema of the complex data, can be null (unspecified)
public ComplexOutput(CodeType id,
StreamBufferStore store,
String mimeType,
String encoding,
String schema)
ComplexOutput instance.
id - output parameter identifier, must not be nullstore - stream that holds the complex data, must not be nullmimeType - mime type of the complex data, can be null (unspecified)encoding - encoding of the complex data, can be null (unspecified)schema - XML schema of the complex data, can be null (unspecified)
public ComplexOutput(CodeType id,
InputStream is,
String mimeType,
String encoding,
String schema)
throws IOException
ComplexOutput instance.
id - output parameter identifier, must not be nullis - input stream to the complex data, must not be nullmimeType - mime type of the complex data, can be null (unspecified)encoding - encoding of the complex data, can be null (unspecified)schema - XML schema of the complex data, can be null (unspecified)
IOException| Method Detail |
|---|
public ComplexFormat getFormat()
nullpublic URL getWebAccessibleURL()
This method is only applicable if the parameter has been requested as reference.
null if the parameter has been returned in the response document
or raw
public XMLStreamReader getAsXMLStream()
throws XMLStreamException,
IOException
XMLStreamReader for accessing the complex value as an XML event stream.
NOTE: Never use this method if the input parameter is a binary value -- use getAsBinaryStream() instead.
XMLStreamReader instance, positioned after the START_DOCUMENT element
IOException - if accessing the value fails
XMLStreamException
public InputStream getAsBinaryStream()
throws IOException
InputStream for accessing the complex value as a binary stream.
NOTE: Don't use this method if the input parameter is encoded in XML -- use getAsXMLStream() instead.
Otherwise erroneous behaviour has to be expected (e.g. if the input value is given embedded in the execute
request document).
IOException - if accessing the value fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||