Examples of SessionContext


Examples of org.jboss.seam.contexts.SessionContext

        installComponent(appContext, Manager.class);
        appContext.set(Seam.getComponentName(Init.class), new Init());
        FacesLifecycle.beginRequest(externalContext);
        Manager.instance().setLongRunningConversation(true);
        testContext(new ApplicationContext(externalContext.getApplicationMap()));
        testContext(new SessionContext(sessionAdaptor));
        testContext(new EventContext(requestAdaptor));
        testContext(new ServerConversationContext(sessionAdaptor, "1"));
        testEquivalence(new ContextCreator() {
            public Context createContext() {
                return new ServerConversationContext(sessionAdaptor, "1");
            }
        });
        testEquivalence(new ContextCreator() {
            public Context createContext() {
                return new SessionContext(sessionAdaptor);
            }
        });
        testEquivalence(new ContextCreator() {
            public Context createContext() {
                return new ApplicationContext(externalContext.getApplicationMap());
View Full Code Here

Examples of org.oasis.wsrp.v2.SessionContext

   public static SessionContext toV2SessionContext(V1SessionContext sessionContext)
   {
      if (sessionContext != null)
      {
         SessionContext result = WSRPTypeFactory.createSessionContext(sessionContext.getSessionID(), sessionContext.getExpires());
         result.getExtensions().addAll(Lists.transform(sessionContext.getExtensions(), EXTENSION));

         return result;
      }
      else
      {
View Full Code Here

Examples of org.tmatesoft.hg.core.SessionContext

  public Internals(HgRepository hgRepo, File hgDir, ImplAccess implementationAccess) throws HgRuntimeException {
    repo = hgRepo;
    repoDir = hgDir;
    implAccess = implementationAccess;
    isCaseSensitiveFileSystem = !runningOnWindows();
    SessionContext ctx = repo.getSessionContext();
    dataAccess = new DataAccessProvider(ctx);
    RepoInitializer repoInit = new RepoInitializer().initRequiresFromFile(repoDir);
    requiresFlags = repoInit.getRequires();
    dataPathHelper = repoInit.buildDataFilesHelper(getSessionContext());
    repoPathHelper = repoInit.buildStoreFilesHelper();
View Full Code Here

Examples of org.waveprotocol.box.stat.SessionContext

      throws IOException, ServletException {
    if (Timing.isEnabled()) {
      Timing.enterScope();
      final HttpSession session = ((HttpServletRequest)request).getSession();
      final ParticipantId loggedInUser = (ParticipantId)session.getAttribute(SessionManager.USER_FIELD);
      Timing.setScopeValue(SessionContext.class, new SessionContext() {
        @Override
        public boolean isAuthenticated() {
          return session != null;
        }
View Full Code Here

Examples of org.wildfly.clustering.web.session.SessionContext

        this.factory = factory;
    }

    @Override
    public io.undertow.server.session.SessionManager createSessionManager(Deployment deployment) {
        SessionContext context = new UndertowSessionContext(deployment);
        IdentifierFactory<String> factory = new IdentifierFactoryAdapter(new SecureRandomSessionIdGenerator());
        final SessionManager<LocalSessionContext, Batch> manager = this.factory.createSessionManager(context, factory, new LocalSessionContextFactory());
        DeploymentInfo info = deployment.getDeploymentInfo();
        ThreadSetupAction action = new ThreadSetupAction() {
            @Override
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.