Package org.jboss.weld.context.http

Examples of org.jboss.weld.context.http.HttpSessionContext


  public static QueueSession getSessionFrom(Message message) {
    return message.getResource(QueueSession.class, "Session");
  }

  public static HttpSessionContext getSessionContext(Message message) {
    HttpSessionContext context = getSessionFrom(message)
            .getAttribute(HttpSessionContext.class, HttpSessionContext.class.getName());

    if (context == null) {
      getSessionFrom(message)
              .setAttribute(HttpSessionContext.class.getName(),
View Full Code Here


    return context;
  }

  public static void associateSessionContext(Message message) {
    HttpSessionContext ctx = getSessionContext(message);
    ctx.associate(getHttpServletRequest(message));
  }
View Full Code Here

  public static QueueSession getSessionFrom(Message message) {
    return message.getResource(QueueSession.class, "Session");
  }

  public static HttpSessionContext getSessionContext(Message message) {
    HttpSessionContext context = getSessionFrom(message)
            .getAttribute(HttpSessionContext.class, HttpSessionContext.class.getName());

    if (context == null) {
      getSessionFrom(message)
              .setAttribute(HttpSessionContext.class.getName(),
View Full Code Here

    return context;
  }

  public static void associateSessionContext(Message message) {
    HttpSessionContext ctx = getSessionContext(message);
    ctx.associate(getHttpServletRequest(message));
  }
View Full Code Here

TOP

Related Classes of org.jboss.weld.context.http.HttpSessionContext

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.