|
||||||||||
| 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,
java.io.InputStream is,
java.lang.String mimeType,
java.lang.String encoding,
java.lang.String schema)
Creates a new ComplexOutput instance. |
|
ComplexOutput(CodeType id,
StreamBufferStore store,
java.lang.String mimeType,
java.lang.String encoding,
java.lang.String schema)
Creates a new ComplexOutput instance. |
|
ComplexOutput(CodeType id,
java.net.URL url,
java.lang.String mimeType,
java.lang.String encoding,
java.lang.String schema)
Creates a new ComplexOutput instance. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
getAsBinaryStream()
Returns an InputStream for accessing the complex value as a binary stream. |
javax.xml.stream.XMLStreamReader |
getAsXMLStream()
Returns an XMLStreamReader for accessing the complex value as an XML event stream. |
ComplexFormat |
getFormat()
Returns the format of the output. |
java.net.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,
java.net.URL url,
java.lang.String mimeType,
java.lang.String encoding,
java.lang.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,
java.lang.String mimeType,
java.lang.String encoding,
java.lang.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,
java.io.InputStream is,
java.lang.String mimeType,
java.lang.String encoding,
java.lang.String schema)
throws java.io.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)
java.io.IOException| Method Detail |
|---|
public ComplexFormat getFormat()
nullpublic java.net.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 javax.xml.stream.XMLStreamReader getAsXMLStream()
throws javax.xml.stream.XMLStreamException,
java.io.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
java.io.IOException - if accessing the value fails
javax.xml.stream.XMLStreamException
public java.io.InputStream getAsBinaryStream()
throws java.io.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).
java.io.IOException - if accessing the value fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||