org.deegree.services.wps.input
Class InputReference

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

public class InputReference
extends 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(URL href, Map<String,String> headers)
          Creates a new InputReference that points to a web accessible resource which can be retrieved using a simple HTTP Get operation.
InputReference(URL href, Map<String,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(URL href, Map<String,String> headers, 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
 URL getURL()
          Returns the URL of the referenced resource.
 InputStream openStream()
          Provides an InputStream for accessing the referenced content.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputReference

public InputReference(URL href,
                      Map<String,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(URL href,
                      Map<String,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(URL href,
                      Map<String,String> headers,
                      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 InputStream openStream()
                       throws IOException
Provides an InputStream for accessing the referenced content.

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

getURL

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

Returns:
the URL of the referenced resource

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.