net.sf.xbus.bootstrap
Class AdminDispatcherServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.sf.xbus.bootstrap.AdminDispatcherServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class AdminDispatcherServlet
extends javax.servlet.http.HttpServlet

The AdminDispatcherServlet determines the Workflow. This class causes the adjustment of the Models due to a user Requests. Its function exists in the sense of a Controllers in the selection and the co-ordination of the Worker Beans. It is responsible for the fact that all components are initialized.

See Also:
Serialized Form

Constructor Summary
AdminDispatcherServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          doGet is called in response to an HTTP GET request.
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          doPost is called in response to an HTTP POST request.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminDispatcherServlet

public AdminDispatcherServlet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
doGet is called in response to an HTTP GET request. For supporting both POST and GET protocol from the same servlet, doGet method calls doPost() method which will be supported.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - HttpServletRequest
response - HttpServletResponse
See Also:
doPost(HttpServletRequest, HttpServletResponse)

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
doPost is called in response to an HTTP POST request. Depending on the parameter of the HttpServletRequest sets doPost() the necessary data in form of the ConfigurationBean or AdministrationBean to the HttpSesson and resends the HttpRequest by means of the forwardTo() method to the appropriate jsp.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - HttpServletRequest
response - HttpServletResponse