wicket.markup.html.pages
Class InternalErrorPage

java.lang.Object
  extended by wicket.Component
      extended by wicket.MarkupContainer
          extended by wicket.Page
              extended by wicket.markup.html.WebPage
                  extended by wicket.markup.html.pages.InternalErrorPage
All Implemented Interfaces:
java.io.Serializable, IRedirectListener, IRequestListener, INewBrowserWindowListener, IPageMapEntry

public class InternalErrorPage
extends WebPage

Internal error display page.

Author:
Jonathan Locke
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class wicket.Component
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor, Component.VisibilityChange
 
Field Summary
 
Fields inherited from class wicket.Page
LATEST_VERSION
 
Fields inherited from class wicket.Component
ENABLE, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER
 
Fields inherited from interface wicket.markup.html.INewBrowserWindowListener
INTERFACE
 
Fields inherited from interface wicket.IRedirectListener
INTERFACE
 
Constructor Summary
InternalErrorPage()
          Constructor.
 
Method Summary
protected  void configureResponse()
          Set-up response with appropriate content type, locale and encoding.
 boolean isErrorPage()
          Override this method and return true if your page is used to display Wicket errors.
 boolean isVersioned()
           
 
Methods inherited from class wicket.markup.html.WebPage
getBodyContainer, getMarkupType, getUrlCompressor, getWebRequestCycle, homePageLink, internalOnAttach, onDetach, onNewBrowserWindow
 
Methods inherited from class wicket.Page
afterCallComponent, beforeCallComponent, checkAccess, detachModels, dirty, endComponentRender, expireOldestVersion, getAutoIndex, getCurrentVersionNumber, getFeedbackMessages, getId, getNumericId, getPageClass, getPageMap, getPageMapEntry, getSizeInBytes, getVersion, getVersions, hierarchyAsString, internalDetach, internalOnDetach, internalOnModelChanged, moveToPageMap, newVersionManager, onRedirect, onRender, removePersistedFormData, renderPage, setNumericId, startComponentRender, toString
 
Methods inherited from class wicket.MarkupContainer
add, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, internalAdd, internalAttach, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onComponentTagBody, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, visitChildren, visitChildren
 
Methods inherited from class wicket.Component
add, addStateChange, checkComponentTag, checkComponentTagAttribute, continueToOriginalDestination, debug, detachBehaviors, detachModel, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getApplicationPages, getApplicationSettings, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMetaData, getModel, getModelComparator, getModelObject, getModelObjectAsString, getOutputMarkupId, getPage, getPageFactory, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getString, getString, getString, getStyle, getVariation, hasErrorMessage, hasFeedbackMessage, info, initModel, isActionAuthorized, isAncestorOf, isBehaviorAccepted, isEnableAllowed, isEnabled, isHeadRendered, isIgnoreAttributeModifier, isRenderAllowed, isVisible, isVisibleInHierarchy, modelChanged, modelChanging, newPage, newPage, onAfterRender, onAttach, onBeforeRender, onBeginRequest, onComponentTag, onEndRequest, onModelChanged, onModelChanging, onRender, redirectToInterceptPage, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderedBehaviors, renderHead, replaceComponentTagBody, replaceWith, resetHeadRendered, sameRootModel, sameRootModel, setAuto, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMetaData, setModelObject, setOutputMarkupId, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wicket.session.pagemap.IPageMapEntry
getPage
 

Constructor Detail

InternalErrorPage

public InternalErrorPage()
Constructor.

Method Detail

configureResponse

protected void configureResponse()
Description copied from class: Page
Set-up response with appropriate content type, locale and encoding. The locale is set equal to the session's locale. The content type header contains information about the markup type (@see #getMarkupType()) and the encoding. The response (and request) encoding is determined by an application setting (@see ApplicationSettings#getResponseRequestEncoding()). In addition, if the page's markup contains a xml declaration like <?xml ... ?> an xml declaration with proper encoding information is written to the output as well, provided it is not disabled by an applicaton setting (@see ApplicationSettings#getStripXmlDeclarationFromOutput()).

Note: Prior to Wicket 1.1 the output encoding was determined by the page's markup encoding. Because this caused uncertainties about the /request/ encoding, it has been changed in favour of the new, much safer, approach. Please see the Wiki for more details.

Overrides:
configureResponse in class WebPage
See Also:
WebPage.configureResponse()

isVersioned

public boolean isVersioned()
Overrides:
isVersioned in class Component
Returns:
True if this component is versioned
See Also:
Component.isVersioned()

isErrorPage

public boolean isErrorPage()
Description copied from class: Page
Override this method and return true if your page is used to display Wicket errors. This can help the framework prevent infinite failure loops.

Overrides:
isErrorPage in class Page
Returns:
True if this page is intended to display an error to the end user.
See Also:
Page.isErrorPage()


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