org.deegree.services.wps.input
Class ReferencedComplexInput
java.lang.Object
org.deegree.services.wps.input.ProcessletInputImpl
org.deegree.services.wps.input.ComplexInputImpl
org.deegree.services.wps.input.ReferencedComplexInput
- All Implemented Interfaces:
- ComplexInput, ProcessletInput
public class ReferencedComplexInput
- extends ComplexInputImpl
A ComplexInputImpl
with a value that is given as a reference to a web-accessible resource.
- Version:
- $Revision: $, $Date: $
- Author:
- Markus Schneider, last edited by: $Author: schneider $
ReferencedComplexInput
public ReferencedComplexInput(ComplexInputDefinition definition,
LanguageString title,
LanguageString summary,
ComplexFormatType format,
InputReference reference)
- Creates a new
ComplexInputImpl
instance from a reference to a web-accessible URI.
- Parameters:
definition
- corresponding input definition from process descriptiontitle
- optional title supplied with the input parameter, may be nullsummary
- optional narrative description supplied with the input parameter, may be nullformat
- the XML schema, format, and encoding of the complex valuereference
- provides information for retrieving the input value via the web
getValueAsBinaryStream
public InputStream getValueAsBinaryStream()
throws IOException
- Description copied from interface:
ComplexInput
- Returns an
InputStream
for accessing the complex value as a raw stream of bytes (usually for binary
input).
NOTE: Never use this method if the input parameter is encoded in XML -- use ComplexInput.getValueAsXMLStream()
instead. Otherwise erroneous behaviour has to be expected (if the input value is given embedded in the execute
request document).
- Returns:
- the input value as a raw stream of bytes
- Throws:
IOException
- if accessing the value fails- See Also:
ComplexInput.getValueAsXMLStream()
getValueAsXMLStream
public XMLStreamReader getValueAsXMLStream()
throws IOException
- Description copied from interface:
ComplexInput
- Returns an
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 ComplexInput.getValueAsBinaryStream()
instead.
The returned stream will point at the first START_ELEMENT event of the data.
- Returns:
- the input value as an XML event stream, current event is START_ELEMENT (the root element of the data
object)
- Throws:
IOException
- if accessing the value fails
getURL
public URL getURL()
- Returns the URL that provides the input.
- Returns:
- the URL that provides the input.
toString
public String toString()
- Overrides:
toString
in class ProcessletInputImpl
Copyright © 2011. All Rights Reserved.