|
||||||||||
| 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.spring.SpringConversationAdapter
public class SpringConversationAdapter
An implementation of the ConversationAdapter for use with Spring MVC.
| Field Summary | |
|---|---|
protected Object |
action
|
protected String |
actionId
|
protected ConversationContextManager |
conversationContextManager
|
protected javax.servlet.http.HttpServletRequest |
request
|
protected Map<String,String> |
requestContext
|
protected Map<String,Object> |
sessionContext
|
| Fields inherited from class com.google.code.rees.scope.conversation.ConversationAdapter |
|---|
conversationAdapter, postProcessorFactory, postProcessors, viewContext |
| Constructor Summary | |
|---|---|
SpringConversationAdapter(javax.servlet.http.HttpServletRequest request,
org.springframework.web.method.HandlerMethod handler,
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 Map<String,Object> sessionContext
protected Map<String,String> requestContext
protected Object action
protected String actionId
protected javax.servlet.http.HttpServletRequest request
| Constructor Detail |
|---|
public SpringConversationAdapter(javax.servlet.http.HttpServletRequest request,
org.springframework.web.method.HandlerMethod handler,
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 | |||||||||