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

org.deegree.enterprise.control
Class AbstractListener

java.lang.Object
  extended by org.deegree.enterprise.control.AbstractListener
All Implemented Interfaces:
java.util.EventListener, WebListener
Direct Known Subclasses:
AbstractContextListener, AbstractDBListener, AbstractMapListener, AbstractSecuredListener, AbstractSimplePrintListener, AbstractSOSListener, AddServiceListener, AddWMSListener, DigitizeListener, DownloadListener, DownloadListener, EditServiceListener, EditSubadminRoleListener, GeometryValidator, GetSessionIDListener, GetUsersListener, GetWMSLayerListener, GetWMSLayerListener, InitCSWModuleListener, InitDigitizerModuleListener, InitGroupEditorListener, InitListener, InitRightsEditorListener, InitRoleEditorListener, InitSecuredObjectsEditorListener, InitServiceEditorListener, InitServiceRightsEditorListener, InitServicesEditorListener, InitSubadminRoleEditorListener, InitUserEditorListener, LoginListener, LoginUserListener, LogoutListener, LogoutUserListener, PrintListener, ReallyUpdateServiceListener, RecenterToLayerListener, RemoveServiceListener, ShoppingCartListener, SimpleSearchListener, StoreGroupsListener, StoreRightsListener, StoreRolesListener, StoreSecuredObjectsListener, StoreServicesRightsListener, StoreUsersListener, UpdateObjectsListener, UpdateServiceListener, WFSClientListener

public abstract class AbstractListener
extends java.lang.Object
implements WebListener

The abstract listener allows the reuse of basic functionality.

Version:
$Revision: 18195 $
Author:
Torsten Friebe, Andreas Poth

Constructor Summary
AbstractListener()
           
 
Method Summary
abstract  void actionPerformed(FormEvent e)
           
 java.lang.String getAlternativeNextPage()
           
 java.lang.String getHomePath()
           
 java.lang.String getInitParameter(java.lang.String name)
          returns a named initi parameter or null if the parameter is not known
 java.util.List<ParameterValueIm> getInitParameterList()
           
 java.lang.String getNextPage()
           
 javax.servlet.ServletRequest getRequest()
           
 java.lang.Object getReturnValue()
           
protected  void gotoErrorPage(java.lang.String message)
           
 void handle(FormEvent e)
           
 void setAlternativeNextPage(java.lang.String target)
           
protected  void setDefaultAlternativeNextPage(java.lang.String target)
           
protected  void setDefaultNextPage(java.lang.String target)
           
(package private)  void setInitParameterList(java.util.List<ParameterValueIm> params)
          sets the list of assigned initialization parameters
 void setNextPage(java.lang.String target)
          Sets the next page for this request.
 void setReturnValue(java.lang.Object model)
           
protected  java.util.HashMap<java.lang.String,java.lang.String> toModel()
          transforms the request to a set of name value pairs stored in a HashMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractListener

public AbstractListener()
Method Detail

actionPerformed

public abstract void actionPerformed(FormEvent e)
Specified by:
actionPerformed in interface WebListener
Parameters:
e -

handle

public final void handle(FormEvent e)
Parameters:
e -

getRequest

public javax.servlet.ServletRequest getRequest()
Returns:
the servlet request

getHomePath

public java.lang.String getHomePath()
Returns:
the path from the servlet context

setDefaultNextPage

protected final void setDefaultNextPage(java.lang.String target)
Parameters:
target -

setDefaultAlternativeNextPage

protected final void setDefaultAlternativeNextPage(java.lang.String target)
Parameters:
target -

setNextPage

public void setNextPage(java.lang.String target)
Sets the next page for this request.

Parameters:
target - the name of the next page

getNextPage

public java.lang.String getNextPage()
Returns:
the name of the next page, or the default target

setAlternativeNextPage

public void setAlternativeNextPage(java.lang.String target)
Parameters:
target -

getAlternativeNextPage

public java.lang.String getAlternativeNextPage()
Returns:
the name of the alternative next page, or the alternative default target

getReturnValue

public java.lang.Object getReturnValue()
Returns:
the return value

setReturnValue

public void setReturnValue(java.lang.Object model)
Parameters:
model -

gotoErrorPage

protected void gotoErrorPage(java.lang.String message)
Parameters:
message - the message for the error page

setInitParameterList

void setInitParameterList(java.util.List<ParameterValueIm> params)
sets the list of assigned initialization parameters

Parameters:
params -

getInitParameterList

public java.util.List<ParameterValueIm> getInitParameterList()
Returns:
the list of assigned initialization parameters
See Also:
setInitParameterList(List)

getInitParameter

public java.lang.String getInitParameter(java.lang.String name)
returns a named initi parameter or null if the parameter is not known

Parameters:
name -
Returns:
a named initi parameter or null if the parameter is not known

toModel

protected java.util.HashMap<java.lang.String,java.lang.String> toModel()
transforms the request to a set of name value pairs stored in a HashMap

Returns:
map of request parameters

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