deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.enterprise.control
Class AbstractDBListener

java.lang.Object
  extended by org.deegree.enterprise.control.AbstractListener
      extended by org.deegree.enterprise.control.AbstractDBListener
All Implemented Interfaces:
java.util.EventListener, WebListener

public abstract class AbstractDBListener
extends AbstractListener

The class listens to the get request against iso 19115 formated metadata here the result shall be returned in full format

---------------------------------------------------------------------

Version:
$Revision: 18195 $ $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Poth

Constructor Summary
AbstractDBListener()
           
 
Method Summary
 void actionPerformed(FormEvent event)
          This method is called either to search for metadata or to lookup keywords from the thesaurus
protected abstract  java.util.HashMap createRequest(RPCWebEvent rpcEvent)
          creates a request from the RPCWebEvent passed to this listener
protected abstract  void handleResult(java.lang.Object result)
          handles the result of a 'FULL' catalog query
protected abstract  java.util.HashMap performRequest(RPCWebEvent event)
          performs the request contained in the passed RPCWebEvent
protected abstract  void validateRequest(RPCWebEvent event)
          validates the request to be performed.
protected abstract  java.lang.Object validateResult(java.util.HashMap result)
          validates the result of the catalog request and returns an Object depending on the results content.
 
Methods inherited from class org.deegree.enterprise.control.AbstractListener
getAlternativeNextPage, getHomePath, getInitParameter, getInitParameterList, getNextPage, getRequest, getReturnValue, gotoErrorPage, handle, setAlternativeNextPage, setDefaultAlternativeNextPage, setDefaultNextPage, setInitParameterList, setNextPage, setReturnValue, toModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDBListener

public AbstractDBListener()
Method Detail

actionPerformed

public void actionPerformed(FormEvent event)
This method is called either to search for metadata or to lookup keywords from the thesaurus

Specified by:
actionPerformed in interface WebListener
Specified by:
actionPerformed in class AbstractListener

validateRequest

protected abstract void validateRequest(RPCWebEvent event)
                                 throws PortalException
validates the request to be performed.

Parameters:
event - event object containing the request to be performed
Throws:
PortalException

createRequest

protected abstract java.util.HashMap createRequest(RPCWebEvent rpcEvent)
                                            throws PortalException
creates a request from the RPCWebEvent passed to this listener

Parameters:
rpcEvent - event object containing the request to be performed
Returns:
string representation of a request
Throws:
PortalException - will be throwns if it is impossible to create the request

performRequest

protected abstract java.util.HashMap performRequest(RPCWebEvent event)
                                             throws PortalException
performs the request contained in the passed RPCWebEvent

Parameters:
event - event object containing the request to be performed
Returns:
result of the GetRecord request
Throws:
PortalException

validateResult

protected abstract java.lang.Object validateResult(java.util.HashMap result)
                                            throws PortalException
validates the result of the catalog request and returns an Object depending on the results content.

Parameters:
result - result to a request
Returns:
validated result to a request
Throws:
PortalException

handleResult

protected abstract void handleResult(java.lang.Object result)
                              throws PortalException
handles the result of a 'FULL' catalog query

Parameters:
result - result to a GetRecord request
Throws:
PortalException

deegree 2.5 (2011/06/29 09:44 build-8-official)

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