|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.opensubsystems.core.www.WebSessionServlet
org.opensubsystems.core.www.WebUIServlet
org.opensubsystems.blog.www.BlogBrowserServlet
public class BlogBrowserServlet
Servlet responsible for browsing blogs and their entries as if they were displayed using a static website consisting of pages with .html extension. his servlet contains read-only functionality so it can be safely used, when user shouldn't be allowed to modify the data.
| Field Summary | |
|---|---|
static java.lang.String |
BLOGBROWSER_BLOG_INDEX_PAGE
Name of the property for page which is the main entry point to the blog functionality. |
static java.lang.String |
BLOGBROWSER_BLOG_VIEWER_PAGE
Name of the property for page to view single blog. |
static java.lang.String |
BLOGBROWSER_BLOGENTRY_VIEWER_PAGE
Name of the property for page to view single blog entry. |
static int |
FORM_COUNT_BLOGBROWSER
Constant for number of forms recognized by this servlet |
| 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 | |
|---|---|
BlogBrowserServlet()
|
|
| Method Summary | |
|---|---|
protected void |
createBlogEntryPage(javax.servlet.http.HttpServletRequest hsrqRequest,
javax.servlet.http.HttpServletResponse hsrpResponse)
Create blog page for the path requested by user |
protected void |
createIndexPage(javax.servlet.http.HttpServletRequest hsrqRequest,
javax.servlet.http.HttpServletResponse hsrpResponse)
Create index page of all entries in the blog. |
protected void |
createMainIndexPage(javax.servlet.http.HttpServletRequest hsrqRequest,
javax.servlet.http.HttpServletResponse hsrpResponse)
Create main index page of all blogs. |
protected void |
doGet(javax.servlet.http.HttpServletRequest hsrqRequest,
javax.servlet.http.HttpServletResponse hsrpResponse)
|
protected BlogController |
getController()
Get controller to invoke business logic. |
protected BlogNavigator |
getNavigator(javax.servlet.http.HttpServletRequest hsrqRequest)
Get instance of navigator object suitable for processing current request. |
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 |
|---|
public static final java.lang.String BLOGBROWSER_BLOG_INDEX_PAGE
public static final java.lang.String BLOGBROWSER_BLOG_VIEWER_PAGE
public static final java.lang.String BLOGBROWSER_BLOGENTRY_VIEWER_PAGE
public static final int FORM_COUNT_BLOGBROWSER
| Constructor Detail |
|---|
public BlogBrowserServlet()
| Method Detail |
|---|
public void init(javax.servlet.ServletConfig scConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class org.opensubsystems.core.www.WebUIServletjavax.servlet.ServletException
protected void doGet(javax.servlet.http.HttpServletRequest hsrqRequest,
javax.servlet.http.HttpServletResponse hsrpResponse)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOExceptionpublic java.lang.String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class org.opensubsystems.core.www.WebUIServlet
protected void createMainIndexPage(javax.servlet.http.HttpServletRequest hsrqRequest,
javax.servlet.http.HttpServletResponse hsrpResponse)
throws java.io.IOException,
javax.servlet.ServletException
hsrqRequest - - the servlet requesthsrpResponse - - the servlet response
javax.servlet.ServletException - - an error while serving request
java.io.IOException - - an error while writing response
protected void createIndexPage(javax.servlet.http.HttpServletRequest hsrqRequest,
javax.servlet.http.HttpServletResponse hsrpResponse)
throws java.io.IOException,
javax.servlet.ServletException
hsrqRequest - - the servlet requesthsrpResponse - - the servlet response
javax.servlet.ServletException - - an error while serving request
java.io.IOException - - an error while writing response
protected void createBlogEntryPage(javax.servlet.http.HttpServletRequest hsrqRequest,
javax.servlet.http.HttpServletResponse hsrpResponse)
throws java.io.IOException,
javax.servlet.ServletException
hsrqRequest - - the servlet requesthsrpResponse - - the servlet response
javax.servlet.ServletException - - an error while serving request
java.io.IOException - - an error while writing responseprotected BlogNavigator getNavigator(javax.servlet.http.HttpServletRequest hsrqRequest)
hsrqRequest - - current request
protected BlogController getController()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error has occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||