org.n52.wps.server.request
Class InputHandler

java.lang.Object
  extended by org.n52.wps.server.request.InputHandler

public class InputHandler
extends java.lang.Object

Handles the input of the client and stores it into a Map.


Field Summary
protected  java.util.Map<java.lang.String,java.util.List<IData>> inputData
           
protected static org.apache.log4j.Logger LOGGER
           
 
Constructor Summary
InputHandler(net.opengis.wps.x100.InputType[] inputs, java.lang.String algorithmIdentifier)
          Initializes a parser that handles each (line of) input based on the type of input.
 
Method Summary
 java.util.Map<java.lang.String,java.util.List<IData>> getParsedInputData()
          Gets the resulting InputLayers from the parser
protected  void handleBBoxValue(net.opengis.wps.x100.InputType input)
          Handles BBoxValue
protected  void handleComplexData(net.opengis.wps.x100.InputType input)
          Handles the complexValue, which in this case should always include XML which can be parsed into a FeatureCollection.
protected  void handleComplexValueReference(net.opengis.wps.x100.InputType input)
          Handles the ComplexValueReference
protected  void handleLiteralData(net.opengis.wps.x100.InputType input)
          Handles the literalData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static org.apache.log4j.Logger LOGGER

inputData

protected java.util.Map<java.lang.String,java.util.List<IData>> inputData
Constructor Detail

InputHandler

public InputHandler(net.opengis.wps.x100.InputType[] inputs,
                    java.lang.String algorithmIdentifier)
             throws ExceptionReport
Initializes a parser that handles each (line of) input based on the type of input.

Parameters:
inputs - The client input
Throws:
ExceptionReport
See Also:
#handleComplexData(IOValueType), #handleComplexValueReference(IOValueType), #handleLiteralData(IOValueType), #handleBBoxValue(IOValueType)
Method Detail

handleComplexData

protected void handleComplexData(net.opengis.wps.x100.InputType input)
                          throws ExceptionReport
Handles the complexValue, which in this case should always include XML which can be parsed into a FeatureCollection.

Parameters:
input - The client input
Throws:
ExceptionReport - If error occured while parsing XML

handleLiteralData

protected void handleLiteralData(net.opengis.wps.x100.InputType input)
                          throws ExceptionReport
Handles the literalData

Parameters:
input - The client's input
Throws:
ExceptionReport - If the type of the parameter is invalid.

handleComplexValueReference

protected void handleComplexValueReference(net.opengis.wps.x100.InputType input)
                                    throws ExceptionReport
Handles the ComplexValueReference

Parameters:
input - The client input
Throws:
ExceptionReport - If the input (as url) is invalid, or there is an error while parsing the XML.

handleBBoxValue

protected void handleBBoxValue(net.opengis.wps.x100.InputType input)
                        throws ExceptionReport
Handles BBoxValue

Parameters:
input - The client input
Throws:
ExceptionReport

getParsedInputData

public java.util.Map<java.lang.String,java.util.List<IData>> getParsedInputData()
Gets the resulting InputLayers from the parser

Returns:
A map with the parsed input


Copyright © 2007-2011 52north.org. All Rights Reserved.