org.opensubsystems.core.www
Class WebUIDispatchServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.opensubsystems.core.www.WebSessionServlet
              extended by org.opensubsystems.core.www.WebUIServlet
                  extended by org.opensubsystems.core.www.WebUIDispatchServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class WebUIDispatchServlet
extends WebUIServlet

This is a simple servlet which doesn't do anything else but redirects the request to specified JSP page or some other destination. Since it is derived from WebUIServlet/WebSessionServlet it is ensured that the security is taken care of before the page is displayed. This is usueful if we have some pages which are very simple and doesn't require logic or pages, for which the logic doesn't exist yet, for example when demo application is being created.

Version:
$Id: WebUIDispatchServlet.java,v 1.10 2007/01/07 06:14:09 bastafidli Exp $
Author:
Miro Halas
See Also:
Serialized Form
Code reviewer:
Miro Halas
Code reviewed:
1.8 2006/04/29 00:25:48 jlegeny

Field Summary
static java.lang.String ACTIVE_MODULE_NAME
          Names of the current domain parameter.
static java.lang.String DISPATCH_PAGE
          Name of the property for page which should be displayed upon request.
 
Fields inherited from class org.opensubsystems.core.www.WebUIServlet
DATA_ATTRIBUTE_REQUEST_PARAM, FORCE_MAXIMIZE_PARAM, FORM_COUNT_WEBUI, FORM_NAME_REQUEST_PARAM, FORM_UNKNOWN_ID, LOGGEDIN_REQUEST_PARAM, m_strMessageStyleSheet, ORIGINAL_REQUEST_INFO_REQUEST_PARAM, PAGE_TITLE_REQUEST_PARAM, WEBUI_MESSAGEBOX_PAGE, WEBUI_MESSAGEBOX_STYLE_SHEET
 
Fields inherited from class org.opensubsystems.core.www.WebSessionServlet
APPLICATION_SECURE, ATTACH_INTERNAL_SESSION_ID_URL_PARAM, DEFAULT_APPLICATION_SECURE, DEFAULT_LOGIN_SECURE, LOGIN_FORWARD_SESSION_PARAM, LOGIN_SECURE, m_scServletContext, m_sessionValidator, m_strHandshakeURL, s_bApplicationSecure, s_bLoginSecure, SERVLET_PATH_REQUEST_PARAM, SESSION_VALIDATOR_CLASS, WEBSESSION_DISPATCHER_CACHED, WEBSESSION_DISPATCHER_CACHED_DEFAULT, WEBSESSION_HADSHAKE_REQUIRED_DEFAULT, WEBSESSION_HANDSHAKE_REQUIRED, WEBSESSION_HANDSHAKE_URL, WEBSESSION_LOGIN_REQUIRED, WEBSESSION_LOGIN_REQUIRED_DEFAULT, WEBSESSION_LOGIN_URL
 
Constructor Summary
WebUIDispatchServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest hsrqRequest, javax.servlet.http.HttpServletResponse hsrpResponse)
          
 java.lang.String getServletInfo()
          
 void init(javax.servlet.ServletConfig scConfig)
          
 
Methods inherited from class org.opensubsystems.core.www.WebUIServlet
cacheDispatcher, cacheUIPath, displayUI, getFormToProcess, messageBoxPage, messageBoxPage, preservice, setLoggedInFlag
 
Methods inherited from class org.opensubsystems.core.www.WebSessionServlet
destroy, getLoginRedirect, handleNewSession, isApplicationSecure, isDispatcherCachingEnabled, isLoginSecure, redirect, redirectToHandshake, redirectToLogin, resetLoginRedirect, saveLoginRedirect, service, shouldRequestBeSecure, verifyLogin
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISPATCH_PAGE

public static final java.lang.String DISPATCH_PAGE
Name of the property for page which should be displayed upon request.

See Also:
Constant Field Values

ACTIVE_MODULE_NAME

public static final java.lang.String ACTIVE_MODULE_NAME
Names of the current domain parameter.

See Also:
Constant Field Values
Constructor Detail

WebUIDispatchServlet

public WebUIDispatchServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig scConfig)
          throws javax.servlet.ServletException

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

getServletInfo

public java.lang.String getServletInfo()

Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class WebUIServlet

doGet

protected void doGet(javax.servlet.http.HttpServletRequest hsrqRequest,
                     javax.servlet.http.HttpServletResponse hsrpResponse)
              throws javax.servlet.ServletException,
                     java.io.IOException

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2003 - 2006 OpenSubsystems s.r.o.