Package org.jboss.seam.servlet

Examples of org.jboss.seam.servlet.ServletSessionImpl


      assert !Contexts.isConversationContextActive();
      assert !Contexts.isApplicationContextActive();
      assert ((MockHttpSession)externalContext.getSession(false)).getAttributes().size()==3;
      assert ((MockServletContext)externalContext.getContext()).getAttributes().size()==7;
     
      Lifecycle.endSession( servletContext, new ServletSessionImpl( (HttpSession) externalContext.getSession(true) ) );
           
      Lifecycle.endApplication(servletContext);
     
   }
View Full Code Here


   {
      MockServletContext servletContext = new MockServletContext();
      MockHttpSession session = new MockHttpSession(servletContext);
      MockHttpServletRequest request = new MockHttpServletRequest(session);
      ExternalContext externalContext = new MockExternalContext(servletContext, request);
      ContextAdaptor sessionAdaptor = new ServletSessionImpl(session);
      ContextAdaptor requestAdaptor = new ServletRequestImpl(request);
      Context appContext = new FacesApplicationContext(externalContext);
      appContext.set(
            Seam.getComponentName(ConversationEntries.class) + ".component",
            new Component(ConversationEntries.class, appContext)
View Full Code Here

     
      List<String> conversationIdStack = new ArrayList<String>();
      conversationIdStack.add("2");
      ConversationEntries entries = new ConversationEntries();
      entries.createConversationEntry("2", conversationIdStack);
      WebSessionContext sessionContext = new WebSessionContext( new ServletSessionImpl( (HttpSession) facesContext.getExternalContext().getSession(true) ) );
      sessionContext.set( Seam.getComponentName(ConversationEntries.class), entries );
     
      AbstractSeamPhaseListener phases = new SeamPhaseListener();

      assert !Contexts.isEventContextActive();
View Full Code Here

   {
      if ( Contexts.isEventContextActive() )
      {
         Lifecycle.endRequest(externalContext);
      }
      Lifecycle.endSession( servletContext, new ServletSessionImpl(session) );
      session = null;
   }
View Full Code Here

   public static ContextAdaptor getSession(ExternalContext externalContext)
   {
      Object session = externalContext.getSession(true);
      if (session instanceof HttpSession)
      {
         return new ServletSessionImpl((HttpSession) session);
      }
      else if (session instanceof PortletSession)
      {
         return new PortletSessionImpl((PortletSession) session);
      }
View Full Code Here

      }
   }

   public static ContextAdaptor getSession(HttpSession session)
   {
      return new ServletSessionImpl(session);
   }
View Full Code Here

TOP

Related Classes of org.jboss.seam.servlet.ServletSessionImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.