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

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

public class RedirectViewXhtmlController
extends org.jsxp.framework.webroot.generated.jsxpframework.components.RedirectViewXhtmlControllerGenerated

The Class RedirectViewXhtmlController. Standard ViewController to send a redirect to the client. It is used automatically by the jsxp framework if you use the redirect methods of a ViewController.


Field Summary
 
Fields inherited from class org.jsxp.framework.ViewController
idElements
 
Constructor Summary
RedirectViewXhtmlController(java.lang.String fromViewUri, java.lang.String redirectUri, java.util.Map<java.lang.String,java.lang.Object[]> redirectParameters, boolean clientRedirect)
          Instantiates a new redirect view 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.RedirectViewXhtmlControllerGenerated
setVariableRedirectUrl
 
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

RedirectViewXhtmlController

public RedirectViewXhtmlController(java.lang.String fromViewUri,
                                   java.lang.String redirectUri,
                                   java.util.Map<java.lang.String,java.lang.Object[]> redirectParameters,
                                   boolean clientRedirect)
Instantiates a new redirect view xhtml controller.

Parameters:
fromViewUri - the from view uri
redirectUri - the redirect uri
redirectParameters - the redirect parameters
clientRedirect - true if the redirect is a client side redirect, otherwise it is a server side redirect
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()
          throws java.lang.Exception
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
Throws:
java.lang.Exception - the exception


Copyright © 2012 Oliver Szymanski & David Tanzer