com.silverpeas.mydb.servlets
Class MyDBRequestRouter
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.stratelia.silverpeas.peasCore.servlets.SilverpeasHttpServlet
com.stratelia.silverpeas.peasCore.servlets.SilverpeasAuthenticatedHttpServlet
com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter<MyDBSessionController>
com.silverpeas.mydb.servlets.MyDBRequestRouter
- All Implemented Interfaces:
- MyDBConstants, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class MyDBRequestRouter
- extends com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter<MyDBSessionController>
- implements MyDBConstants
MyDB request router.
- Author:
- Antoine HEDIN
- See Also:
- Serialized Form
Fields inherited from interface com.silverpeas.mydb.MyDBConstants |
ACTION_ADD_LINE, ACTION_CONNECTION_SETTING, ACTION_FILTER, ACTION_MAIN, ACTION_TABLE_SELECTION, ACTION_UPDATE_CONNECTION, ACTION_UPDATE_DATA, ACTION_UPDATE_LINE, ACTION_UPDATE_TABLE, PAGE_CONNECTION_SETTING, PAGE_CONSULTATION, PAGE_FOREIGN_KEY, PAGE_PRIMARY_KEY, PAGE_TABLE_COLUMN, PAGE_TABLE_LINE, PAGE_TABLE_SELECTION, PAGE_TABLE_UPDATE, PAGE_UNICITY_KEY |
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, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyDBRequestRouter
public MyDBRequestRouter()
getSessionControlBeanName
public String getSessionControlBeanName()
- Specified by:
getSessionControlBeanName
in class com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter<MyDBSessionController>
- Returns:
- The session control bean name.
createComponentSessionController
public MyDBSessionController createComponentSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
- Creates a MyDB session control bean.
- Specified by:
createComponentSessionController
in class com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter<MyDBSessionController>
- Parameters:
mainSessionCtrl
- The main session control.componentContext
- The context of the component.
- Returns:
- The new created MyDB session control.
getDestination
public String getDestination(String function,
MyDBSessionController myDBSC,
org.silverpeas.servlet.HttpRequest request)
- This method has to be implemented by the component request rooter. It has to compute a
destination page.
- Specified by:
getDestination
in class com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter<MyDBSessionController>
- Parameters:
function
- The entering request function.myDBSC
- The session control component.request
-
- Returns:
- The complete destination URL for a forward.
Copyright © 2016 Silverpeas. All Rights Reserved.