Examples of restoreSession()


Examples of org.jboss.weld.context.ContextLifecycle.restoreSession()

      ContextLifecycle lifeCycle = manager.getServices().get(ContextLifecycle.class);

      String sessionId = UUID.randomUUID().toString();
      BeanStore beanStore = new ConcurrentHashMapBeanStore();
     
      lifeCycle.restoreSession(sessionId, beanStore);
      context.register(endSessionEvent, new DestorySession(sessionId, beanStore));
   }
  
   /**
    * DestorySession
 
View Full Code Here

Examples of org.jboss.weld.context.ContextLifecycle.restoreSession()

      ContextLifecycle lifeCycle = manager.getServices().get(ContextLifecycle.class);

      String sessionId = UUID.randomUUID().toString();
      BeanStore beanStore = new ConcurrentHashMapBeanStore();
     
      lifeCycle.restoreSession(sessionId, beanStore);
      context.add(CDISessionID.class, new CDISessionID(sessionId, beanStore));
   }
}
View Full Code Here

Examples of org.pentaho.platform.web.http.PreAuthenticatedSessionHolder.restoreSession()

    assertNotNull( key );

    PentahoSessionHolder.setSession( session );

    assertTrue( holder.restoreSession( key ) );
    IPentahoSession outSession = PentahoSessionHolder.getSession();
    assertEquals( outSession, session );
    holder.close();
  }
View Full Code Here

Examples of org.pentaho.platform.web.http.PreAuthenticatedSessionHolder.restoreSession()

  @Test
  public void testSessionNotFound() {
    PreAuthenticatedSessionHolder holder = new PreAuthenticatedSessionHolder();

    assertFalse( holder.restoreSession( "not real" ) );
  }

  @Test
  public void testExpiration() {
View Full Code Here

Examples of org.pentaho.platform.web.http.PreAuthenticatedSessionHolder.restoreSession()

    PentahoSessionHolder.setSession( session );

    PreAuthenticatedSessionHolder holder = new PreAuthenticatedSessionHolder( 1, 1 );

    String key = holder.captureSession();
    assertTrue( holder.restoreSession( key ) );
    try {
      Thread.sleep( 3000 );
    } catch ( InterruptedException e ) {
      //ignored
    }
View Full Code Here

Examples of org.pentaho.platform.web.http.PreAuthenticatedSessionHolder.restoreSession()

    try {
      Thread.sleep( 3000 );
    } catch ( InterruptedException e ) {
      //ignored
    }
    assertFalse( holder.restoreSession( key ) );

  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.