com.silverpeas.processManager.servlets
Class ProcessManagerRequestRouter

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.stratelia.silverpeas.peasCore.servlets.SilverpeasHttpServlet
              extended by com.stratelia.silverpeas.peasCore.servlets.SilverpeasAuthenticatedHttpServlet
                  extended by com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter<ProcessManagerSessionController>
                      extended by com.silverpeas.processManager.servlets.ProcessManagerRequestRouter
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ProcessManagerRequestRouter
extends com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter<ProcessManagerSessionController>

See Also:
Serialized Form

Constructor Summary
ProcessManagerRequestRouter()
           
 
Method Summary
 ProcessManagerSessionController createComponentSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
          Return a new ProcessManagerSessionController wich will be used for each request made in the given componentContext.
 String getDestination(String function, ProcessManagerSessionController sessionController, org.silverpeas.servlet.HttpRequest request)
          Process the request and returns the response url.
 String getSessionControlBeanName()
          Returns the name used by the ComponentRequestRequest to store the session controller in the user session.
 void init(javax.servlet.ServletConfig config)
          Init this servlet, before any request.
 
Methods inherited from class com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter
checkUserAuthorization, doGet, doPost, getComponentId, hasTheSessionSecurityTokenToBeRenewed, updateSessionManagement
 
Methods inherited from class com.stratelia.silverpeas.peasCore.servlets.SilverpeasAuthenticatedHttpServlet
getMainSessionController, getSessionInfo, renewSessionSecurityToken, service, throwUserSessionExpiration
 
Methods inherited from class com.stratelia.silverpeas.peasCore.servlets.SilverpeasHttpServlet
redirectOrForwardService, throwHttpForbiddenError, throwHttpNotFoundError, throwHttpPreconditionFailedError
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, 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

ProcessManagerRequestRouter

public ProcessManagerRequestRouter()
Method Detail

getSessionControlBeanName

public String getSessionControlBeanName()
Returns the name used by the ComponentRequestRequest to store the session controller in the user session.

Specified by:
getSessionControlBeanName in class com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter<ProcessManagerSessionController>

createComponentSessionController

public ProcessManagerSessionController createComponentSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
                                                                        com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
Return a new ProcessManagerSessionController wich will be used for each request made in the given componentContext. Returns a ill session controler when the a fatal error occures. This ill session controller can only display an error page.

Specified by:
createComponentSessionController in class com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter<ProcessManagerSessionController>
Parameters:
mainSessionCtrl -
componentContext -
Returns:

getDestination

public String getDestination(String function,
                             ProcessManagerSessionController sessionController,
                             org.silverpeas.servlet.HttpRequest request)
Process the request and returns the response url.

Specified by:
getDestination in class com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter<ProcessManagerSessionController>
Parameters:
function - the user request name
sessionController - the user request context
request - the user request params

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Init this servlet, before any request.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException


Copyright © 2016 Silverpeas. All Rights Reserved.