Codota Logo
HttpConversationContextImpl
Code IndexAdd Codota to your IDE (free)

How to use
HttpConversationContextImpl
in
org.jboss.weld.module.web.context.http

Best Java code snippets using org.jboss.weld.module.web.context.http.HttpConversationContextImpl (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
protected BoundBeanStore createSessionBeanStore(NamingScheme namingScheme, HttpSession session) {
  return new EagerSessionBeanStore(namingScheme, session, getServiceRegistry());
}
origin: weld/core

@Override
protected Object getSessionAttribute(HttpServletRequest request, String name, boolean create) {
  if (create || SessionHolder.getSessionIfExists() != null) {
    return getSessionFromRequest(request, true).getAttribute(name);
  } else {
    return null;
  }
}
origin: weld/core

@Override
protected void initialize(String cid) {
  this.initialized.set(Boolean.TRUE);
  super.initialize(cid);
}
origin: weld/core

@Override
public boolean destroy(HttpSession session) {
  if (isAssociated()) {
    checkContextInitialized();
  }
  return super.destroy(session);
}
origin: weld/core

@Override
public void activate() {
  if (!isAssociated()) {
    throw ConversationLogger.LOG.mustCallAssociateBeforeActivate();
  }
  if (!isActive()) {
    super.setActive(true);
  } else {
    ConversationLogger.LOG.contextAlreadyActive(getRequest());
  }
  // Reset the initialized flag - a thread which is not cleaned up properly (e.g. async processing on
  // Tomcat) may break the lazy initialization otherwise
  this.initialized.set(null);
}
origin: weld/core

@Override
public void deactivate() {
  try {
    if (isInitialized()) {
      try {
        super.deactivate();
      } finally {
        this.initialized.set(null);
      }
    } else {
      // Only deactivate the context, i.e. remove state threadlocal
      removeState();
    }
  } finally {
    this.transientConversationInitializationCallback.set(null);
  }
}
origin: weld/core

@Override
public boolean destroy(HttpSession session) {
  if (isAssociated()) {
    checkContextInitialized();
  }
  return super.destroy(session);
}
origin: weld/core

@Override
public void activate() {
  if (!isAssociated()) {
    throw ConversationLogger.LOG.mustCallAssociateBeforeActivate();
  }
  if (!isActive()) {
    super.setActive(true);
  } else {
    ConversationLogger.LOG.contextAlreadyActive(getRequest());
  }
  // Reset the initialized flag - a thread which is not cleaned up properly (e.g. async processing on
  // Tomcat) may break the lazy initialization otherwise
  this.initialized.set(null);
}
origin: weld/core

@Override
public void deactivate() {
  try {
    if (isInitialized()) {
      try {
        super.deactivate();
      } finally {
        this.initialized.set(null);
      }
    } else {
      // Only deactivate the context, i.e. remove state threadlocal
      removeState();
    }
  } finally {
    this.transientConversationInitializationCallback.set(null);
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
protected void setSessionAttribute(HttpServletRequest request, String name, Object value, boolean create) {
  if (create || SessionHolder.getSessionIfExists() != null) {
    getSessionFromRequest(request, true).setAttribute(name, value);
  }
}
origin: weld/core

@Override
protected BoundBeanStore createRequestBeanStore(NamingScheme namingScheme, HttpServletRequest request) {
  return new LazySessionBeanStore(request, namingScheme, false, getServiceRegistry());
}
origin: weld/core

@Override
protected void initialize(String cid) {
  this.initialized.set(Boolean.TRUE);
  super.initialize(cid);
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
public boolean destroy(HttpSession session) {
  if (isAssociated()) {
    checkContextInitialized();
  }
  return super.destroy(session);
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
public void activate() {
  if (!isAssociated()) {
    throw ConversationLogger.LOG.mustCallAssociateBeforeActivate();
  }
  if (!isActive()) {
    super.setActive(true);
  } else {
    ConversationLogger.LOG.contextAlreadyActive(getRequest());
  }
  // Reset the initialized flag - a thread which is not cleaned up properly (e.g. async processing on
  // Tomcat) may break the lazy initialization otherwise
  this.initialized.set(null);
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
public void deactivate() {
  try {
    if (isInitialized()) {
      try {
        super.deactivate();
      } finally {
        this.initialized.set(null);
      }
    } else {
      // Only deactivate the context, i.e. remove state threadlocal
      removeState();
    }
  } finally {
    this.transientConversationInitializationCallback.set(null);
  }
}
origin: weld/core

@Override
protected Object getSessionAttribute(HttpServletRequest request, String name, boolean create) {
  if (create || SessionHolder.getSessionIfExists() != null) {
    return getSessionFromRequest(request, true).getAttribute(name);
  } else {
    return null;
  }
}
origin: weld/core

@Override
protected BoundBeanStore createSessionBeanStore(NamingScheme namingScheme, HttpSession session) {
  return new EagerSessionBeanStore(namingScheme, session, getServiceRegistry());
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
protected void initialize(String cid) {
  this.initialized.set(Boolean.TRUE);
  super.initialize(cid);
}
origin: weld/core

@Override
protected void setSessionAttribute(HttpServletRequest request, String name, Object value, boolean create) {
  if (create || SessionHolder.getSessionIfExists() != null) {
    getSessionFromRequest(request, true).setAttribute(name, value);
  }
}
origin: weld/core

@Override
protected BoundBeanStore createRequestBeanStore(NamingScheme namingScheme, HttpServletRequest request) {
  return new LazySessionBeanStore(request, namingScheme, false, getServiceRegistry());
}
org.jboss.weld.module.web.context.httpHttpConversationContextImpl

Most used methods

  • deactivate
  • destroy
  • getServiceRegistry
  • getSessionFromRequest
  • initialize
  • setActive

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • orElseThrow (Optional)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Reference (javax.naming)
  • BoxLayout (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now