Package org.jboss.seam.web

Examples of org.jboss.seam.web.Session


      {
         Lifecycle.beginApplication(new HashMap<String,Object>());
         Lifecycle.beginCall();
        
         // Create a mock session
         Contexts.getSessionContext().set(Component.getComponentName(Session.class), new Session());
        
         Identity identity = new MockIdentity();
         identity.create();
        
         // Put the identity into our session context
View Full Code Here


   {
      log.debug( ">>> Begin JSF request for " + getRequestPath(externalContext) );
      Contexts.eventContext.set( new EventContext( externalContext.getRequestMap() ) );
      Contexts.applicationContext.set( new ApplicationContext( externalContext.getApplicationMap() ) );
      Contexts.sessionContext.set( new SessionContext( externalContext.getSessionMap() ) );
      Session session = Session.getInstance();
      if ( session!=null && session.isInvalidDueToNewScheme( Pages.getRequestScheme( FacesContext.getCurrentInstance() ) ) )
      {
         invalidateSession(externalContext);
      }
      Contexts.conversationContext.set(null); //in case endRequest() was never called
      //Events.instance(); //TODO: only for now, until we have a way to do EL outside of JSF!
View Full Code Here

   public static void endRequest(ExternalContext externalContext)
   {
      log.debug("After render response, destroying contexts");
      try
      {
         Session session = Session.getInstance();
         boolean sessionInvalid = session!=null && session.isInvalid();
        
         Contexts.flushAndDestroyContexts();

         if (sessionInvalid)
         {
View Full Code Here

   public static void endRequest(HttpServletRequest request)
   {
      log.debug("After request, destroying contexts");
      try
      {
         Session session = Session.getInstance();
         boolean sessionInvalid = session!=null && session.isInvalid();
        
         Contexts.flushAndDestroyContexts();

         if (sessionInvalid)
         {
View Full Code Here

   {
      log.debug( ">>> Begin JSF request for " + getRequestPath(externalContext) );
      Contexts.eventContext.set( new EventContext( externalContext.getRequestMap() ) );
      Contexts.applicationContext.set( new ApplicationContext( externalContext.getApplicationMap() ) );
      Contexts.sessionContext.set( new SessionContext( externalContext.getSessionMap() ) );
      Session session = Session.getInstance();
      if ( session!=null && session.isInvalidDueToNewScheme( Pages.getRequestScheme( FacesContext.getCurrentInstance() ) ) )
      {
         invalidateSession(externalContext);
      }
      Contexts.conversationContext.set(null); //in case endRequest() was never called
      //Events.instance(); //TODO: only for now, until we have a way to do EL outside of JSF!
View Full Code Here

   public static void endRequest(ExternalContext externalContext)
   {
      log.debug("After render response, destroying contexts");
      try
      {
         Session session = Session.getInstance();
         boolean sessionInvalid = session!=null && session.isInvalid();
        
         Contexts.flushAndDestroyContexts();

         if (sessionInvalid)
         {
View Full Code Here

   {
      log.debug( ">>> Begin JSF request for " + getRequestPath(externalContext) );
      Contexts.eventContext.set( new EventContext( externalContext.getRequestMap() ) );
      Contexts.applicationContext.set( new ApplicationContext( externalContext.getApplicationMap() ) );
      Contexts.sessionContext.set( new SessionContext( externalContext.getSessionMap() ) );
      Session session = Session.getInstance();
      if ( session!=null && session.isInvalidDueToNewScheme( Pages.instance().getRequestScheme( FacesContext.getCurrentInstance() ) ) )
      {
         invalidateSession(externalContext);
      }
      Contexts.conversationContext.set(null); //in case endRequest() was never called
      //Events.instance(); //TODO: only for now, until we have a way to do EL outside of JSF!
View Full Code Here

   public static void endRequest(ExternalContext externalContext)
   {
      log.debug("After render response, destroying contexts");
      try
      {
         Session session = Session.getInstance();
         boolean sessionInvalid = session!=null && session.isInvalid();
        
         Contexts.flushAndDestroyContexts();

         if (sessionInvalid)
         {
View Full Code Here

   public static void endRequest(HttpServletRequest request)
   {
      log.debug("After request, destroying contexts");
      try
      {
         Session session = Session.getInstance();
         boolean sessionInvalid = session!=null && session.isInvalid();
        
         Contexts.flushAndDestroyContexts();
        
         if (sessionInvalid)
         {
View Full Code Here

      Manager manager = Manager.instance();
     
      //we only need to execute this code when we are in the
      //RENDER_RESPONSE phase, ie. not before redirects
  
      Session session = Session.getInstance();
      boolean sessionInvalid = session!=null && session.isInvalid();
      if ( !sessionInvalid && manager.isLongRunningConversation() )
      {
         storeConversation( manager.getCurrentConversationId() );
      }
      else if ( !sessionInvalid && manager.isNestedConversation() )
View Full Code Here

TOP

Related Classes of org.jboss.seam.web.Session

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.