com.bankframe.fe.statemachine.base.connectors
Interface IRequest

All Known Subinterfaces:
IRequest
All Known Implementing Classes:
Request, StateMachineEvent

public interface IRequest


Method Summary
 java.lang.String getApplicationName()
          Returns the name of the application that should handle this request.
 java.lang.String getEventName()
          Returns the name of the event which needs to be handled for this request.
 java.util.Enumeration getParameterNames()
          Returns the names of the parameters contained in this request.
 java.lang.String[] getParameterValues(java.lang.String parameterName)
          Returns the values for the parameter of the given name.
 java.lang.String getSessionId()
          Returns the id of the UserSession for this request.
 java.lang.String getStateId()
          Returns the id of the state from which this request comes.
 

Method Detail

getApplicationName

public java.lang.String getApplicationName()
Returns the name of the application that should handle this request.

If this returns null the statemachine will use the default application returned by the ApplicationManager.

Returns:
the name of the application that should handle this request.

getStateId

public java.lang.String getStateId()
Returns the id of the state from which this request comes.

If this returns null the statemachine will use the root state for the current application.

Returns:
the ID of the state from which this request comes.

getEventName

public java.lang.String getEventName()
Returns the name of the event which needs to be handled for this request.

This should not return null. If no event name is applicable it can return an empty string.

Returns:
the name of the event for this request.

getSessionId

public java.lang.String getSessionId()
Returns the id of the UserSession for this request.

If this returns null the statemachine will create a new default session.

Returns:
the ID of the IUserSession associated with this request.

getParameterNames

public java.util.Enumeration getParameterNames()
Returns the names of the parameters contained in this request.

Returns:
the names of the parameters contained in this request.

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String parameterName)
Returns the values for the parameter of the given name.

Parameters:
parameterName - the name of the parameter values to return.
Returns:
the values for the parameter of the given name.


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