org.apache.tapestry.error
Class StaleLinkExceptionPresenterImpl

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

public class StaleLinkExceptionPresenterImpl
extends 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(String pageName)
           
 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)
                               throws IOException
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
Throws:
IOException

setPageName

public void setPageName(String pageName)

setResponseRenderer

public void setResponseRenderer(ResponseRenderer responseRenderer)


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.