congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
HttpConversationContextImpl
Code IndexAdd Tabnine 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)

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 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 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 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 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

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JPanel (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now