org.infoglue.deliver.portal.dispatcher
Class DeliveryServletDispatcher

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by webwork.dispatcher.ServletDispatcher
              extended by org.infoglue.deliver.portal.dispatcher.DeliveryServletDispatcher
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
PortalServletDispatcher

public class DeliveryServletDispatcher
extends webwork.dispatcher.ServletDispatcher

Main dispatcher servlet. It works in three phases: first propagate all parameters to the command JavaBean. Second, call execute() to let the JavaBean create the result data. Third, delegate to the JSP that corresponds to the result state that was chosen by the JavaBean. The command JavaBeans can be found in a package prefixed with either of the package names in the comma-separated "packages" servlet init parameter. Modified by Raymond Lai (alpha2_valen@yahoo.com) on 1 Nov 2003: modified wrapRequest() to set the character encoding of HttpServletRequest using the parameter "webwork.i18n.encoding" in webwork.properties.

Version:
$Revision: 1.8 $
Author:
Rickard Öberg (rickard@middleware-company.com), Matt Baldree (matt@smallleap.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class webwork.dispatcher.ServletDispatcher
log, STACK_HEAD
 
Constructor Summary
DeliveryServletDispatcher()
           
 
Method Summary
 void service(javax.servlet.http.HttpServletRequest aRequest, javax.servlet.http.HttpServletResponse aResponse)
          Service a request.
 
Methods inherited from class webwork.dispatcher.ServletDispatcher
getHTMLErrorMessage, init
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeliveryServletDispatcher

public DeliveryServletDispatcher()
Method Detail

service

public void service(javax.servlet.http.HttpServletRequest aRequest,
                    javax.servlet.http.HttpServletResponse aResponse)
             throws javax.servlet.ServletException
Service a request. The request is first checked to see if it is a multi-part. If it is, then the request is wrapped so WW will be able to work with the multi-part as if it was a normal request. Next, we will process all actions until an action returns a non-action which is usually a view. For each action in a chain, the action's context will be first set and then the action will be instantiated. Next, the previous action if this action isn't the first in the chain will have its attributes copied to the current action.

Overrides:
service in class webwork.dispatcher.ServletDispatcher
Parameters:
aRequest -
aResponse -
Throws:
javax.servlet.ServletException


Copyright © 2005 InfoGlue.org All Rights Reserved.