Class 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.
    • Constructor Detail

      • WebConversationService

        public WebConversationService​(org.apache.webbeans.config.WebBeansContext webBeansContext)
    • Method Detail

      • getConversationId

        public String getConversationId()
        Try to get the current conversationId from the servlet.
        Specified by:
        getConversationId in interface org.apache.webbeans.spi.ConversationService
      • generateConversationId

        public String generateConversationId()
        Specified by:
        generateConversationId in interface org.apache.webbeans.spi.ConversationService
      • getConversationIdCounter

        protected AtomicInteger getConversationIdCounter()
      • getSessionConversationIdCounter

        protected AtomicInteger getSessionConversationIdCounter()
        Returns:
        conversationId counter AtomicInteger if this is a real http request, null otherwise
      • getCurrentServletRequest

        protected javax.servlet.ServletRequest getCurrentServletRequest()
        Returns:
        the current ServletRequest or null if this thread is not attached to a servlet request