|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bankframe.fe.statemachine.ext.connectors.servlet.Request
Field Summary | |
static java.lang.String |
APPLICATION_PARAM_NAME
This is the name of the request parameter that should contain the name of the application being run. |
static java.lang.String |
EVENT_PARAM_NAME
The is the name of the request parameter that should contain the name of the event to be processed. |
static java.lang.String |
FILENAME_EXTENSION
This is the name of the filename extension that can be used to indicate that the application, state and event names can be taken from the URL path instead of from request parameters. |
static java.lang.String |
STATE_PARAM_NAME
This is the name of the request parameter that should contain the name of the state from which the current event is being fired. |
Constructor Summary | |
Request(javax.servlet.http.HttpServletRequest request)
Creates a new Request. |
Method Summary | |
java.lang.String |
getApplicationName()
Returns the name of the application which should handle this request. |
java.lang.Object |
getAttribute(java.lang.String name)
|
java.util.Enumeration |
getAttributeNames()
|
java.lang.String |
getEventName()
Returns the name of the event which needs to be handled for this request. |
java.lang.String |
getParameter(java.lang.String name)
|
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. |
javax.servlet.http.HttpServletRequest |
getRequest()
|
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. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String APPLICATION_PARAM_NAME
public static final java.lang.String STATE_PARAM_NAME
public static final java.lang.String EVENT_PARAM_NAME
public static final java.lang.String FILENAME_EXTENSION
The value of FILENAME_EXTENSION is '.jsm'
If the URL ends with this string then the request will get the application, state and event names from the path instead of from the request parameters.
The exact interpretation of the path is as follows:
Another important point: If some of the information is not in the path, then
it will be taken from the defaults. Thus the path
/org/jstatemachine/demoapp/DemoAppAutoView.xml/.jsm will load the start state
in the demoapp.
The path /.jsm will load the start state in the default app.
The path /Welcome.Logout.jsm will look for the event in the default application.
The path /Logout.jsm will look for the event Logout from the last recorded
state in the default application (to be used in conjunction with the
com.bankframe.fe.statemachine.base.StateIdSource parameter, as described in the javadoc for
RequestContext
.)
Constructor Detail |
public Request(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest to wrap.Method Detail |
public java.lang.String getApplicationName()
getApplicationName
in interface IRequest
public java.lang.String getEventName()
getEventName
in interface IRequest
public java.lang.String getSessionId()
getSessionId
in interface IRequest
public java.lang.String getStateId()
getStateId
in interface IRequest
public javax.servlet.http.HttpServletRequest getRequest()
public java.util.Enumeration getParameterNames()
IRequest
getParameterNames
in interface IRequest
IRequest.getParameterNames()
public java.lang.String[] getParameterValues(java.lang.String parameterName)
IRequest
getParameterValues
in interface IRequest
parameterName
- the name of the parameter values to return.
IRequest.getParameterValues(String)
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface IRequest
IRequest.getAttribute(String)
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface IRequest
IRequest.setAttribute(String, Object)
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface IRequest
IRequest.getParameter(String)
public java.util.Enumeration getAttributeNames()
getAttributeNames
in interface IRequest
IRequest.getAttributeNames()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |