org.deegree_impl.enterprise.control
Class ApplicationHandler

java.lang.Object
  extended byorg.deegree_impl.enterprise.control.ApplicationHandler
All Implemented Interfaces:
java.util.EventListener, WebListener
Direct Known Subclasses:
MapApplicationHandler, MapApplicationHandler

public class ApplicationHandler
extends java.lang.Object
implements WebListener

Handler for all web events.

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

Field Summary
private static java.lang.String ALTERNATIVENEXT
           
private static java.lang.String CLASS
           
private static java.lang.String EVENT
           
private static java.util.HashMap handler
           
private static java.util.HashMap handlerANext
           
private static java.util.HashMap handlerNext
           
private static java.lang.String NAME
           
private static java.lang.String NEXT
           
 
Constructor Summary
ApplicationHandler(java.lang.String configFile)
          Creates a new ApplicationHandler object.
 
Method Summary
 void actionPerformed(FormEvent e)
          Handles all web action events.
protected  void delegateToHelper(java.lang.String action, FormEvent e)
           
private  RPCMethodCall getMethodCall(ServletRequest request)
          extracts the RPC method call from the
private static void initHandler(java.lang.String configFile)
           
protected  void showVersion(ServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handler

private static final java.util.HashMap handler

handlerNext

private static final java.util.HashMap handlerNext

handlerANext

private static final java.util.HashMap handlerANext

EVENT

private static final java.lang.String EVENT
See Also:
Constant Field Values

NAME

private static final java.lang.String NAME
See Also:
Constant Field Values

CLASS

private static final java.lang.String CLASS
See Also:
Constant Field Values

NEXT

private static final java.lang.String NEXT
See Also:
Constant Field Values

ALTERNATIVENEXT

private static final java.lang.String ALTERNATIVENEXT
See Also:
Constant Field Values
Constructor Detail

ApplicationHandler

public ApplicationHandler(java.lang.String configFile)
                   throws java.lang.Exception
Creates a new ApplicationHandler object.

Parameters:
configFile -
Method Detail

actionPerformed

public void actionPerformed(FormEvent e)
Handles all web action events. Calls the specified listener using the mapping defined in control.xml file.

Specified by:
actionPerformed in interface WebListener
Parameters:
e - the action event generated out of the incoming http POST event.

getMethodCall

private RPCMethodCall getMethodCall(ServletRequest request)
                             throws RPCException
extracts the RPC method call from the

Throws:
RPCException

delegateToHelper

protected void delegateToHelper(java.lang.String action,
                                FormEvent e)
                         throws java.lang.Exception
Parameters:
action -
e -
Throws:
java.lang.Exception

showVersion

protected void showVersion(ServletRequest request)
Parameters:
request -

initHandler

private static void initHandler(java.lang.String configFile)
                         throws java.io.IOException,
                                java.net.MalformedURLException,
                                org.xml.sax.SAXException
Parameters:
configFile -
Throws:
java.io.IOException
org.xml.sax.SAXException
java.net.MalformedURLException