Examples of SessionContext


Examples of org.apache.shiro.session.mgt.SessionContext

        }
        return this.session;
    }

    protected SessionContext createSessionContext() {
        SessionContext sessionContext = new DefaultSessionContext();
        if (StringUtils.hasText(host)) {
            sessionContext.setHost(host);
        }
        return sessionContext;
    }
View Full Code Here

Examples of org.apache.vysper.xmpp.server.SessionContext

    final static Logger logger = LoggerFactory.getLogger(LocalDeliveryUtils.class);

    public static void relayToResourceDirectly(ResourceRegistry registry, String resource, Stanza push) {
        try {
            SessionContext targetContext = registry.getSessionContext(resource);
            if (targetContext == null) return;
            targetContext.getResponseWriter().write(push);
        } catch (RuntimeException e) {
            logger.warn("failed to directly relay stanza to resource " + resource, e);
        }
    }
View Full Code Here

Examples of org.apache.webbeans.context.SessionContext

    protected void storeBeansInFailOverBag(FailOverBag bag, HttpSession session)
    {
        // store the session context
        SessionContextManager sessionManager =
                ((WebContextsService) webBeansContext.getContextsService()).getSessionContextManager();
        SessionContext sessionContext = sessionManager.getSessionContextWithSessionId(session.getId());
        bag.put(ATTRIBUTE_SESSION_CONTEXT, sessionContext);

        // store all conversation contexts
        ConversationManager conversationManager = webBeansContext.getConversationManager();
        bag.put(ATTRIBUTE_CONVERSATION_CONTEXT_MAP, conversationManager.getConversationMapWithSessionId(session.getId()));
View Full Code Here

Examples of org.exoplatform.commons.chromattic.SessionContext

    */
   private abstract class TokenTask<V> extends ContextualTask<V>
   {

      protected final TokenContainer getTokenContainer() {
         SessionContext ctx = chromatticLifeCycle.getContext();
         ChromatticSession session = ctx.getSession();
         TokenContainer container = session.findByPath(TokenContainer.class, lifecycleName);
         if (container == null)
         {
            container = session.insert(TokenContainer.class, lifecycleName);
         }
View Full Code Here

Examples of org.exoplatform.commons.chromattic.SessionContext

    *
    * @return the current session
    */
   public POMSession getSession()
   {
      SessionContext context = configurator.getContext();
      return context != null ? (POMSession)context.getAttachment("mopsession") : null;
   }
View Full Code Here

Examples of org.exoplatform.commons.chromattic.SessionContext

    *
    * @return a session to the model.
    */
   public POMSession openSession()
   {
      SessionContext context = configurator.openContext();
      return (POMSession)context.getAttachment("mopsession");
   }
View Full Code Here

Examples of org.exoplatform.commons.chromattic.SessionContext

     * </p>
     *
     * @return the current session
     */
    public POMSession getSession() {
        SessionContext context = configurator.getContext();
        return context != null ? (POMSession) context.getAttachment("mopsession") : null;
    }
View Full Code Here

Examples of org.exoplatform.commons.chromattic.SessionContext

     * </p>
     *
     * @return a session to the model.
     */
    public POMSession openSession() {
        SessionContext context = configurator.openContext();
        return (POMSession) context.getAttachment("mopsession");
    }
View Full Code Here

Examples of org.jboss.ejb3.context.spi.SessionContext

   @Resource
   private SessionContext ctx;

   public Class<?> getInvokedBusinessInterface()
   {
      SessionContext currentCtx = CurrentEJBContext.get(SessionContext.class);
      if(currentCtx != ctx)
         throw new IllegalStateException("Encountered wrong ctx " + currentCtx + ", expected " + ctx);
      return ctx.getInvokedBusinessInterface();
   }
View Full Code Here

Examples of org.jboss.seam.contexts.SessionContext

     
      List<String> conversationIdStack = new ArrayList<String>();
      conversationIdStack.add("2");
      ConversationEntries entries = new ConversationEntries();
      entries.createConversationEntry("2", conversationIdStack);
      SessionContext sessionContext = new SessionContext( new ServletRequestSessionMap( (HttpServletRequest) facesContext.getExternalContext().getRequest() ) );
      sessionContext.set( Seam.getComponentName(ConversationEntries.class), entries );
     
      SeamPhaseListener phases = new SeamPhaseListener();

      assert !Contexts.isEventContextActive();
      assert !Contexts.isSessionContextActive();
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.