Package lumis.portal.page.cache
Class PageCacheControllerHtml
- java.lang.Object
-
- lumis.portal.controller.ControllerHtml
-
- lumis.portal.page.cache.PageCacheControllerHtml
-
public class PageCacheControllerHtml extends ControllerHtml
Contains implementations for handling HTTP requests specific for page HTML cache scenarios.- Since:
- 4.0.0
- Version:
- $Revision$ $Date$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
PageCacheControllerHtml.PageUnavailableException
Exception thrown when the requested page is temporarily unavailable, for example, due to timeout in the page generation.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
requestedPath
The originally requested path that caused the not found error.-
Fields inherited from class lumis.portal.controller.ControllerHtml
out, request, response, sessionConfig, userConfig
-
-
Constructor Summary
Constructors Constructor Description PageCacheControllerHtml(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dispatchToDefaultErrorPage(java.lang.Exception exception)
Dispatches the request to the default error page.protected void
doHandleError()
Contains the logic for processing the not found (404) error event.void
handleError()
-
Methods inherited from class lumis.portal.controller.ControllerHtml
checkRequestIsPost, deleteCookie, getCookie, getRequestMode, getSessionConfig, loadUserInfo, setCookie
-
-
-
-
Constructor Detail
-
PageCacheControllerHtml
public PageCacheControllerHtml(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ControllerException, PortalException
- Throws:
ControllerException
PortalException
-
-
Method Detail
-
handleError
public final void handleError() throws ControllerException, PortalException
- Throws:
ControllerException
PortalException
-
doHandleError
protected void doHandleError() throws PageNotFoundException, java.io.IOException, PortalException, PageCacheControllerHtml.PageUnavailableException, java.lang.InterruptedException
Contains the logic for processing the not found (404) error event.- Throws:
PageNotFoundException
- if the requested page was not found.java.io.IOException
- if an IO error occurred while writing to the output.PageCacheControllerHtml.PageUnavailableException
- if the requested page is currently unavailable.java.lang.InterruptedException
- if the thread was interrupted.PortalException
- Since:
- 5.0.0
-
dispatchToDefaultErrorPage
protected void dispatchToDefaultErrorPage(java.lang.Exception exception) throws PortalException
Dispatches the request to the default error page.- Parameters:
exception
- the exception object to be passed to the default error page.- Throws:
PortalException
- Since:
- 4.1.1
-
-