org.jsxp.framework.webroot.jsxpframework.components
Class ErrorXhtmlController

java.lang.Object
  extended by org.jsxp.framework.ViewController
      extended by org.jsxp.framework.webroot.generated.jsxpframework.components.ErrorXhtmlControllerGenerated
          extended by org.jsxp.framework.webroot.jsxpframework.components.ErrorXhtmlController
All Implemented Interfaces:
ViewControllerLifeCycleExceptionHandler

public class ErrorXhtmlController
extends org.jsxp.framework.webroot.generated.jsxpframework.components.ErrorXhtmlControllerGenerated

The Class ErrorXhtmlController. ViewController for the standard jsxp component to send an error result page to the client. You can use it by creating a new instance from this error controller by redirecting to this instance with the redirects methods of your ViewController.


Field Summary
 
Fields inherited from class org.jsxp.framework.ViewController
idElements
 
Constructor Summary
ErrorXhtmlController(int httpStatusCode, java.lang.String errorMessage, java.lang.String errorDescription)
          Instantiates a new error xhtml controller.
 
Method Summary
 int getStatusCode()
          Gets the status code.
 void init()
          This method will be called by the jsxp framework in the initializing phase.
 
Methods inherited from class org.jsxp.framework.webroot.generated.jsxpframework.components.ErrorXhtmlControllerGenerated
setVariableErrorCode, setVariableErrorDescription, setVariableErrorMessage
 
Methods inherited from class org.jsxp.framework.ViewController
addElement, addElementProcessor, containsVariable, execute, getCharacterEncoding, getContentType, getElement, getElement, getElement, getElement, getElement, getIdPrefix, getInputParameterBean, getLifeCycle, getParent, getPreviousInputParameterBean, getRootElement, getTemplatedView, getTemplateElements, getValidator, getValueForVariable, getVariables, getViewFilename, getViewTemplate, handleExecutingException, handleInitException, handleInputProcessingException, handlePreparingException, handleRenderingException, handleTemplatingException, handleValidatingException, importView, importView, isApplicationTemplateEnabled, isSkipExecution, isUsedAsImportedView, isUsedAsTemplate, needToSaveScopesToSession, replaceVariableValue, setApplicationTemplateEnabled, setNeedToSaveScopesToSession, setVariable, setViewTemplate, skipExecution, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorXhtmlController

public ErrorXhtmlController(int httpStatusCode,
                            java.lang.String errorMessage,
                            java.lang.String errorDescription)
Instantiates a new error xhtml controller.

Parameters:
httpStatusCode - the http status code
errorMessage - the error message
errorDescription - the error description
Method Detail

getStatusCode

public int getStatusCode()
Description copied from class: ViewController
Gets the status code. Override this method if you want to change the status code.

Overrides:
getStatusCode in class ViewController
Returns:
the status code

init

public void init()
Description copied from class: ViewController
This method will be called by the jsxp framework in the initializing phase. It will be called for any used ViewController, also for template and for imported ViewController.

In this method you should do anything that a view controller needs to do if he is used in any way.

Overrides:
init in class ViewController


Copyright © 2012 Oliver Szymanski & David Tanzer