org.deegree.services.wps.output
Interface ComplexOutput

All Superinterfaces:
ProcessletOutput
All Known Implementing Classes:
ComplexOutputImpl

public interface ComplexOutput
extends ProcessletOutput

Identifies this ProcessletOutput to have a complex value, i.e. an object encoded in XML or a raw binary stream.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $

Method Summary
 java.io.OutputStream getBinaryOutputStream()
          Returns a stream for writing binary output.
 java.lang.String getRequestedEncoding()
          Returns the requested encoding for the complex value, it is guaranteed that the encoding is supported for this parameter (according to the process description).
 java.lang.String getRequestedMimeType()
          Returns the requested mime type for the complex value, it is guaranteed that the mime type is supported for this parameter (according to the process description).
 java.lang.String getRequestedSchema()
          Returns the requested XML format for the complex value (specified by a schema URL), it is guaranteed that the format is supported for this parameter (according to the process description).
 javax.xml.stream.XMLStreamWriter getXMLStreamWriter()
          Returns a stream for for writing XML output.
 
Methods inherited from interface org.deegree.services.wps.output.ProcessletOutput
getIdentifier, getSubmittedAbstract, getSubmittedTitle, isRequested, setAbstract, setTitle
 

Method Detail

getBinaryOutputStream

java.io.OutputStream getBinaryOutputStream()
Returns a stream for writing binary output.

Returns:
stream for writing binary output, never null

getXMLStreamWriter

javax.xml.stream.XMLStreamWriter getXMLStreamWriter()
                                                    throws javax.xml.stream.XMLStreamException
Returns a stream for for writing XML output. The stream is already initialized with a XMLStreamWriter.writeStartDocument().

Returns:
a stream for writing XML output, never null
Throws:
javax.xml.stream.XMLStreamException

getRequestedMimeType

java.lang.String getRequestedMimeType()
Returns the requested mime type for the complex value, it is guaranteed that the mime type is supported for this parameter (according to the process description).

Returns:
the requested mime type, never null (as each complex output format has a default mime type)

getRequestedSchema

java.lang.String getRequestedSchema()
Returns the requested XML format for the complex value (specified by a schema URL), it is guaranteed that the format is supported for this parameter (according to the process description).

Returns:
the requested schema (XML format), may be null (as a complex output format may omit schema information)

getRequestedEncoding

java.lang.String getRequestedEncoding()
Returns the requested encoding for the complex value, it is guaranteed that the encoding is supported for this parameter (according to the process description).

Returns:
the requested encoding, may be null (as a complex output format may omit encoding information)


Copyright © 2011. All Rights Reserved.