|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.code.rees.scope.conversation.ConversationAdapter
com.google.code.rees.scope.struts2.StrutsConversationAdapter
public class StrutsConversationAdapter
Struts2 implementation of the ConversationAdapter.
| Field Summary | |
|---|---|
protected com.opensymphony.xwork2.ActionContext |
actionContext
|
protected ConversationContextManager |
conversationContextManager
|
protected com.opensymphony.xwork2.ActionInvocation |
invocation
|
protected javax.servlet.http.HttpServletRequest |
request
|
protected Map<String,String> |
requestContext
|
| Fields inherited from class com.google.code.rees.scope.conversation.ConversationAdapter |
|---|
conversationAdapter, postProcessorFactory, postProcessors, viewContext |
| Constructor Summary | |
|---|---|
StrutsConversationAdapter(com.opensymphony.xwork2.ActionInvocation invocation,
ConversationContextManager conversationContextManager)
|
|
| Method Summary | |
|---|---|
ConversationContext |
beginConversation(String conversationName,
long maxIdleTimeMillis)
begins a new conversation, returning the context for the new conversation |
ConversationContext |
endConversation(String conversationName,
String conversationId)
Removes the conversation from the session, returning the context |
Object |
getAction()
The controller instance, such as a Struts2 action class or a Spring MVC controller |
String |
getActionId()
A string identifying the current action. |
ConversationContext |
getConversationContext(String conversationName,
String conversationId)
Returns a ConversationContext for the given name and ID |
Map<String,String> |
getRequestContext()
Returns a map containing, at a minimum, conversation name/id key/value pairs for the current request. |
| Methods inherited from class com.google.code.rees.scope.conversation.ConversationAdapter |
|---|
addPostProcessor, cleanup, doCleanup, executePostProcessors, getAdapter, getViewContext, setAdapter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ConversationContextManager conversationContextManager
protected com.opensymphony.xwork2.ActionInvocation invocation
protected com.opensymphony.xwork2.ActionContext actionContext
protected javax.servlet.http.HttpServletRequest request
protected Map<String,String> requestContext
| Constructor Detail |
|---|
public StrutsConversationAdapter(com.opensymphony.xwork2.ActionInvocation invocation,
ConversationContextManager conversationContextManager)
| Method Detail |
|---|
public Object getAction()
getAction in class ConversationAdapterpublic String getActionId()
DefaultConversationArbitrator is the name of the controller
method being executed.
getActionId in class ConversationAdapterpublic Map<String,String> getRequestContext()
getRequestContext in class ConversationAdapter
public ConversationContext beginConversation(String conversationName,
long maxIdleTimeMillis)
beginConversation in class ConversationAdapter
public ConversationContext getConversationContext(String conversationName,
String conversationId)
getConversationContext in class ConversationAdapter
public ConversationContext endConversation(String conversationName,
String conversationId)
endConversation in class ConversationAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||