lumis.portal.page.cache
Class PageCacheControllerHtml

Package class diagram package PageCacheControllerHtml
java.lang.Object
  extended by lumis.portal.controller.ControllerHtml
      extended by 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

Nested Class Summary
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
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
PageCacheControllerHtml(HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.