wicket
Class ApplicationPages

java.lang.Object
  extended bywicket.ApplicationPages

public class ApplicationPages
extends java.lang.Object

Holder for specifying Wicket page classes that have special meaning to an application, such as an application's home page and any error display pages.

homePage (required, no default) - You must set this property to the bookmarkable page that you want the framework to respond with when no path information is specified.

internalErrorPage - You can override this with your own page class to display internal errors in a different way.

pageExpiredErrorPage - You can override this with your own bookmarkable page class to display expired page errors in a different way.

Author:
Jonathan Locke

Constructor Summary
ApplicationPages()
           
 
Method Summary
 java.lang.Class getHomePage()
          Gets home page class.
 java.lang.Class getInternalErrorPage()
          Gets internal error page class.
 java.lang.Class getPageExpiredErrorPage()
          Gets the page expired page class.
 ApplicationPages setHomePage(java.lang.Class homePage)
          Sets home page class.
 ApplicationPages setInternalErrorPage(java.lang.Class internalErrorPage)
          Sets internal error page class.
 ApplicationPages setPageExpiredErrorPage(java.lang.Class pageExpiredErrorPage)
          Sets the page expired page class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationPages

public ApplicationPages()
Method Detail

getHomePage

public final java.lang.Class getHomePage()
Gets home page class.

Returns:
Returns the homePage.
See Also:
setHomePage(Class)

getInternalErrorPage

public final java.lang.Class getInternalErrorPage()
Gets internal error page class.

Returns:
Returns the internalErrorPage.
See Also:
setInternalErrorPage(Class)

getPageExpiredErrorPage

public final java.lang.Class getPageExpiredErrorPage()
Gets the page expired page class.

Returns:
Returns the pageExpiredErrorPage.
See Also:
setPageExpiredErrorPage(Class)

setHomePage

public final ApplicationPages setHomePage(java.lang.Class homePage)
Sets home page class. The class must be bookmarkable and must extend Page.

Parameters:
homePage - The home page class
Returns:
This

setInternalErrorPage

public final ApplicationPages setInternalErrorPage(java.lang.Class internalErrorPage)
Sets internal error page class. The class must be bookmarkable and must extend Page.

Parameters:
internalErrorPage - The internalErrorPage to set.
Returns:
This

setPageExpiredErrorPage

public final ApplicationPages setPageExpiredErrorPage(java.lang.Class pageExpiredErrorPage)
Sets the page expired page class. The class must be bookmarkable and must extend Page.

Parameters:
pageExpiredErrorPage - The pageExpiredErrorPage to set.
Returns:
This


Copyright © 2004-2005 Wicket developers. All Rights Reserved.