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: 21592 $ $Date: 2018-08-01 18:37:51 -0300 (Wed, 01 Aug 2018) $
-
-
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 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(HttpServletRequest request, HttpServletResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dispatchToDefaultErrorPage(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
deleteCookie, getCookie, getRequestMode, getSessionConfig, loadUserInfo, setCookie
-
-
-
-
Field Detail
-
requestedPath
protected final String requestedPath
The originally requested path that caused the not found error. Relative to the portal web application context root, starting with '/'.- Since:
- 5.0.0
-
-
Constructor Detail
-
PageCacheControllerHtml
public PageCacheControllerHtml(HttpServletRequest request, 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, IOException, PortalException, PageCacheControllerHtml.PageUnavailableException, InterruptedException
Contains the logic for processing the not found (404) error event.- Throws:
PageNotFoundException
- if the requested page was not found.IOException
- if an IO error occurred while writing to the output.PageCacheControllerHtml.PageUnavailableException
- if the requested page is currently unavailable.InterruptedException
- if the thread was interrupted.PortalException
- Since:
- 5.0.0
-
dispatchToDefaultErrorPage
protected void dispatchToDefaultErrorPage(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
-
-