Package org.apache.webbeans.web.context
Class WebConversationService
- java.lang.Object
-
- org.apache.webbeans.web.context.WebConversationService
-
- All Implemented Interfaces:
org.apache.webbeans.spi.ConversationService
public class WebConversationService extends Object implements org.apache.webbeans.spi.ConversationService
Conversation propagation in pure Servlets happens via cid servlet parameter.
-
-
Field Summary
Fields Modifier and Type Field Description static StringREQUEST_PARAM_CONVERSATION_IDstatic StringREQUEST_PARAM_SUPPRESS_CONVERSATION_PROPAGATIONstatic StringSESSION_CONVERSATION_ID_PARAM_NAME
-
Constructor Summary
Constructors Constructor Description WebConversationService(org.apache.webbeans.config.WebBeansContext webBeansContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgenerateConversationId()StringgetConversationId()Try to get the current conversationId from the servlet.protected AtomicIntegergetConversationIdCounter()protected javax.servlet.ServletRequestgetCurrentServletRequest()protected AtomicIntegergetSessionConversationIdCounter()
-
-
-
Field Detail
-
REQUEST_PARAM_CONVERSATION_ID
public static final String REQUEST_PARAM_CONVERSATION_ID
- See Also:
- Constant Field Values
-
REQUEST_PARAM_SUPPRESS_CONVERSATION_PROPAGATION
public static final String REQUEST_PARAM_SUPPRESS_CONVERSATION_PROPAGATION
- See Also:
- Constant Field Values
-
SESSION_CONVERSATION_ID_PARAM_NAME
public static final String SESSION_CONVERSATION_ID_PARAM_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getConversationId
public String getConversationId()
Try to get the current conversationId from the servlet.- Specified by:
getConversationIdin interfaceorg.apache.webbeans.spi.ConversationService
-
generateConversationId
public String generateConversationId()
- Specified by:
generateConversationIdin interfaceorg.apache.webbeans.spi.ConversationService
-
getConversationIdCounter
protected AtomicInteger getConversationIdCounter()
-
getSessionConversationIdCounter
protected AtomicInteger getSessionConversationIdCounter()
- Returns:
- conversationId counter AtomicInteger if this is a real http request,
nullotherwise
-
getCurrentServletRequest
protected javax.servlet.ServletRequest getCurrentServletRequest()
- Returns:
- the current ServletRequest or
nullif this thread is not attached to a servlet request
-
-