com.bankframe.fe.statemachine.ext.connectors.servlet
Class JSPView

java.lang.Object
  extended by com.bankframe.fe.statemachine.ext.apps.View
      extended by com.bankframe.fe.statemachine.ext.connectors.servlet.JSPView
All Implemented Interfaces:
IView

public class JSPView
extends View


Field Summary
static String INPUTS_ATTRIBUTE_NAME
          The JSP can expect an attribute in the request with the key INPUTS_ATTRIBUTE_NAME that contains the instance of Inputs that was used.
static String REQUEST_CONTEXT_ATTRIBUTE_NAME
          The JSP can expect an attribute in the request with the key REQUEST_CONTEXT_ATTRIBUTE_NAME that contains the current RequestContext.
static String RESPONSE_DATA_ATTRIBUTE_NAME
           
static String STATE_ATTRIBUTE_NAME
          The JSP can expect an attribute in the request with the key STATE_ATTRIBUTE_NAME that contains the IState implementor for the current state.
static String VIEW_ATTRIBUTE_NAME
          The JSP can expect an attribute in the request with the key VIEW_ATTRIBUTE_NAME that contains the instance of JSPView that was used.
 
Fields inherited from interface com.bankframe.fe.statemachine.ext.apps.IView
PROCESSES_EXECUTION_RECORDS_ATTRIBUTE_NAME
 
Constructor Summary
JSPView()
          Constructor for JSPView.
 
Method Summary
 void build(IState state, Inputs inputs, RequestContext requestContext)
           
 String getJspName()
          Returns the jspName.
 String getRequestURL()
          Returns the requestURL.
 void populateFromProperties(Properties viewProperties)
           
 void setJspName(String jspName)
          Sets the jspName.
 
Methods inherited from class com.bankframe.fe.statemachine.ext.apps.View
build, build
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_ATTRIBUTE_NAME

public static String STATE_ATTRIBUTE_NAME
The JSP can expect an attribute in the request with the key STATE_ATTRIBUTE_NAME that contains the IState implementor for the current state.
The value of STATE_ATTRIBUTE_NAME is "State"


VIEW_ATTRIBUTE_NAME

public static String VIEW_ATTRIBUTE_NAME
The JSP can expect an attribute in the request with the key VIEW_ATTRIBUTE_NAME that contains the instance of JSPView that was used. You might use this to build subclasses of JSPView that perform extra processing of the data in the ResponseData, exposing the results of that processing through methods on the view.
The value of VIEW_ATTRIBUTE_NAME is "View"


INPUTS_ATTRIBUTE_NAME

public static String INPUTS_ATTRIBUTE_NAME
The JSP can expect an attribute in the request with the key INPUTS_ATTRIBUTE_NAME that contains the instance of Inputs that was used.
You can use this in the JSP to gain access to the data from the incoming request, the user session, and the response data populated by the controller.
The value of INPUTS_ATTRIBUTE_NAME is "Inputs"


REQUEST_CONTEXT_ATTRIBUTE_NAME

public static String REQUEST_CONTEXT_ATTRIBUTE_NAME
The JSP can expect an attribute in the request with the key REQUEST_CONTEXT_ATTRIBUTE_NAME that contains the current RequestContext.
The value of REQUEST_CONTEXT_ATTRIBUTE_NAME is "RequestContext"


RESPONSE_DATA_ATTRIBUTE_NAME

public static String RESPONSE_DATA_ATTRIBUTE_NAME
Constructor Detail

JSPView

public JSPView()
Constructor for JSPView.

Method Detail

build

public void build(IState state,
                  Inputs inputs,
                  RequestContext requestContext)
           throws StateMachineUserException
Throws:
StateMachineUserException
See Also:
IView.build(IState, Inputs, RequestContext)

getJspName

public String getJspName()
Returns the jspName.

Returns:
String

setJspName

public void setJspName(String jspName)
Sets the jspName.

Parameters:
jspName - The jspName to set

getRequestURL

public String getRequestURL()
Returns the requestURL.

Returns:
String

populateFromProperties

public void populateFromProperties(Properties viewProperties)
See Also:
IView.populateFromProperties(Properties)


Copyright © 2005, 2007, Oracle. All rights reserved.