org.apache.tapestry.error
Class StaleLinkExceptionPresenterImpl

java.lang.Object
  extended byorg.apache.tapestry.error.StaleLinkExceptionPresenterImpl
All Implemented Interfaces:
StaleLinkExceptionPresenter

public class StaleLinkExceptionPresenterImpl
extends java.lang.Object
implements StaleLinkExceptionPresenter

Implementation of StaleLinkExceptionPresenter that uses a page to present the exception. The page must implement a property named "message" of type String and should present that message to the user.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
StaleLinkExceptionPresenterImpl()
           
 
Method Summary
 void presentStaleLinkException(IRequestCycle cycle, StaleLinkException cause)
          Reports the stale link exception.
 void setPageName(java.lang.String pageName)
           
 void setRequestExceptionReporter(RequestExceptionReporter requestExceptionReporter)
           
 void setResponseRenderer(ResponseRenderer responseRenderer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaleLinkExceptionPresenterImpl

public StaleLinkExceptionPresenterImpl()
Method Detail

presentStaleLinkException

public void presentStaleLinkException(IRequestCycle cycle,
                                      StaleLinkException cause)
Description copied from interface: StaleLinkExceptionPresenter
Reports the stale link exception.

Specified by:
presentStaleLinkException in interface StaleLinkExceptionPresenter
Parameters:
cycle - the current request cycle
cause - the exception that was caught

setPageName

public void setPageName(java.lang.String pageName)

setRequestExceptionReporter

public void setRequestExceptionReporter(RequestExceptionReporter requestExceptionReporter)

setResponseRenderer

public void setResponseRenderer(ResponseRenderer responseRenderer)