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

java.lang.Object
  |
  +--com.bankframe.fe.statemachine.ext.apps.View
        |
        +--com.bankframe.fe.statemachine.ext.connectors.servlet.JSPView
All Implemented Interfaces:
IView, IView

public class JSPView
extends View


Field Summary
static java.lang.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 java.lang.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 java.lang.String RESPONSE_DATA_ATTRIBUTE_NAME
           
static java.lang.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 java.lang.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)
           
 java.lang.String getJspName()
          Returns the jspName.
 java.lang.String getRequestURL()
          Returns the requestURL.
 void populateFromProperties(java.util.Properties viewProperties)
          This method is intended to allow thr view set it's attributes based on the Properties given.
 void setJspName(java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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
StateMachineUserException
See Also:
IView.build(IState, Inputs, RequestContext)

getJspName

public java.lang.String getJspName()
Returns the jspName.

Returns:
String

setJspName

public void setJspName(java.lang.String jspName)
Sets the jspName.

Parameters:
jspName - The jspName to set

getRequestURL

public java.lang.String getRequestURL()
Returns the requestURL.

Returns:
String

populateFromProperties

public void populateFromProperties(java.util.Properties viewProperties)
Description copied from interface: IView
This method is intended to allow thr view set it's attributes based on the Properties given.

The State will include the viewProperties as supplied during the design process.

Parameters:
viewProperties -
See Also:
IView.populateFromProperties(Properties)


Copyright © 2005 Siebel Systems, Inc. All rights reserved.