org.deegree.services.wps.input
Class InputReference

java.lang.Object
  extended by org.deegree.services.wps.input.InputReference

public class InputReference
extends java.lang.Object

Reference to an input value that is provided by a web-accessible resource.

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

Constructor Summary
InputReference(java.net.URL href, java.util.Map<java.lang.String,java.lang.String> headers)
          Creates a new InputReference that points to a web accessible resource which can be retrieved using a simple HTTP Get operation.
InputReference(java.net.URL href, java.util.Map<java.lang.String,java.lang.String> headers, org.apache.axiom.om.OMElement postBodyElement)
          Creates a new InputReference that points to a web accessible resource which can be retrieved using a HTTP Post operation (post body is specified as an OMElement).
InputReference(java.net.URL href, java.util.Map<java.lang.String,java.lang.String> headers, java.net.URL postBodyReference)
          Creates a new InputReference that points to a web accessible resource which can be retrieved using a HTTP Post operation (post body is specified as an URL reference).
 
Method Summary
 java.net.URL getURL()
          Returns the URL of the referenced resource.
 java.io.InputStream openStream()
          Provides an InputStream for accessing the referenced content.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputReference

public InputReference(java.net.URL href,
                      java.util.Map<java.lang.String,java.lang.String> headers)
Creates a new InputReference that points to a web accessible resource which can be retrieved using a simple HTTP Get operation.

Parameters:
href - http url of the resource
headers - extra headers to be sent with the request

InputReference

public InputReference(java.net.URL href,
                      java.util.Map<java.lang.String,java.lang.String> headers,
                      org.apache.axiom.om.OMElement postBodyElement)
Creates a new InputReference that points to a web accessible resource which can be retrieved using a HTTP Post operation (post body is specified as an OMElement).

Parameters:
href - http url of the resource
headers - extra headers to be sent with the request
postBodyElement - element that encapsulates the post body

InputReference

public InputReference(java.net.URL href,
                      java.util.Map<java.lang.String,java.lang.String> headers,
                      java.net.URL postBodyReference)
Creates a new InputReference that points to a web accessible resource which can be retrieved using a HTTP Post operation (post body is specified as an URL reference).

Parameters:
href - http url of the resource
headers - extra headers to be sent with the request
postBodyReference - URL of the post body content
Method Detail

openStream

public java.io.InputStream openStream()
                               throws java.io.IOException
Provides an InputStream for accessing the referenced content.

Returns:
InputStream that provides access to the referenced content
Throws:
java.io.IOException - if accessing the referenced content fails

getURL

public java.net.URL getURL()
Returns the URL of the referenced resource.

Returns:
the URL of the referenced resource

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.