deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.portal.standard.sos.control
Class DescribeSensorListener

java.lang.Object
  extended by org.deegree.enterprise.control.AbstractListener
      extended by org.deegree.portal.standard.sos.control.AbstractSOSListener
          extended by org.deegree.portal.standard.sos.control.DescribeSensorListener
All Implemented Interfaces:
EventListener, WebListener

public class DescribeSensorListener
extends AbstractSOSListener

Listener for performing DescribeSensor requests against Sensor Observation Services.

Version:
1.0
Author:
Christian Heier

Constructor Summary
DescribeSensorListener()
           
 
Method Summary
protected  Object createData(RPCMethodCall mc, HashMap<String,Document> map)
          creates the result object to send to the next page from the parameters contained in the passed RPCMethodeCall and the Document array.
protected  String createRequest(RPCMethodCall mc)
          creates a SOS DescribeSensor request from the parameters contained in the passed RPCMethodeCall.
protected  void setNextPageData(Object o)
          sets the parameter as ServletRequest attribute to enable access to the result for the next page
protected  void validateRequest(RPCMethodCall mc)
          validates the request to be performed.
 
Methods inherited from class org.deegree.portal.standard.sos.control.AbstractSOSListener
actionPerformed, performRequest
 
Methods inherited from class org.deegree.enterprise.control.AbstractListener
getAlternativeNextPage, getHomePath, getInitParameter, getInitParameterList, getNextPage, getRequest, getReturnValue, gotoErrorPage, handle, setAlternativeNextPage, setDefaultAlternativeNextPage, setDefaultNextPage, setNextPage, setReturnValue, toModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescribeSensorListener

public DescribeSensorListener()
Method Detail

validateRequest

protected void validateRequest(RPCMethodCall mc)
                        throws SOSClientException
validates the request to be performed.

Specified by:
validateRequest in class AbstractSOSListener
Parameters:
mc - RPCMethodCall containing the request to be performed
Throws:
SOSClientException - if request is not valid

createRequest

protected String createRequest(RPCMethodCall mc)
                        throws SOSClientException
creates a SOS DescribeSensor request from the parameters contained in the passed RPCMethodeCall.

Specified by:
createRequest in class AbstractSOSListener
Parameters:
mc - the RPCMethodCall
Returns:
SOS DescribeSensor request as String
Throws:
SOSClientException

createData

protected Object createData(RPCMethodCall mc,
                            HashMap<String,Document> map)
                     throws SOSClientException
creates the result object to send to the next page from the parameters contained in the passed RPCMethodeCall and the Document array.

Specified by:
createData in class AbstractSOSListener
Parameters:
mc - the RPCMethodCall
map - the Document array
Returns:
the result object
Throws:
SOSClientException

setNextPageData

protected void setNextPageData(Object o)
Description copied from class: AbstractSOSListener
sets the parameter as ServletRequest attribute to enable access to the result for the next page

Specified by:
setNextPageData in class AbstractSOSListener
Parameters:
o - param/result

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org