Tabnine Logo
RequestBeanStore
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: weld/core

  public HttpServletRequest getHttpServletRequest() {
    if (getBeanStore() instanceof RequestBeanStore) {
      return Reflections.<RequestBeanStore>cast(getBeanStore()).getRequest();
    }
    return null;
  }
}
origin: weld/core

public boolean associate(HttpServletRequest request) {
  // At this point the bean store should never be set - see also HttpContextLifecycle#nestedInvocationGuard
  BoundBeanStore beanStore = getBeanStore();
  if (beanStore != null) {
    ContextLogger.LOG.beanStoreLeakDuringAssociation(this.getClass().getName(), request);
    if (ContextLogger.LOG.isDebugEnabled()) {
      ContextLogger.LOG.beanStoreLeakAffectedBeanIdentifiers(this.getClass().getName(), Iterables.toMultiRowString(beanStore));
    }
  }
  // We always associate a new bean store to avoid possible leaks (security threats)
  beanStore = new RequestBeanStore(request, namingScheme);
  setBeanStore(beanStore);
  beanStore.attach();
  return true;
}
origin: weld/core

public boolean associate(HttpServletRequest request) {
  // At this point the bean store should never be set - see also HttpContextLifecycle#nestedInvocationGuard
  BoundBeanStore beanStore = getBeanStore();
  if (beanStore != null) {
    ContextLogger.LOG.beanStoreLeakDuringAssociation(this.getClass().getName(), request);
    if (ContextLogger.LOG.isDebugEnabled()) {
      ContextLogger.LOG.beanStoreLeakAffectedBeanIdentifiers(this.getClass().getName(), Iterables.toMultiRowString(beanStore));
    }
  }
  // We always associate a new bean store to avoid possible leaks (security threats)
  beanStore = new RequestBeanStore(request, namingScheme);
  setBeanStore(beanStore);
  beanStore.attach();
  return true;
}
origin: weld/core

  public HttpServletRequest getHttpServletRequest() {
    if (getBeanStore() instanceof RequestBeanStore) {
      return Reflections.<RequestBeanStore>cast(getBeanStore()).getRequest();
    }
    return null;
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

public boolean associate(HttpServletRequest request) {
  // At this point the bean store should never be set - see also HttpContextLifecycle#nestedInvocationGuard
  BoundBeanStore beanStore = getBeanStore();
  if (beanStore != null) {
    ContextLogger.LOG.beanStoreLeakDuringAssociation(this.getClass().getName(), request);
    if (ContextLogger.LOG.isDebugEnabled()) {
      ContextLogger.LOG.beanStoreLeakAffectedBeanIdentifiers(this.getClass().getName(), Iterables.toMultiRowString(beanStore));
    }
  }
  // We always associate a new bean store to avoid possible leaks (security threats)
  beanStore = new RequestBeanStore(request, namingScheme);
  setBeanStore(beanStore);
  beanStore.attach();
  return true;
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

  public HttpServletRequest getHttpServletRequest() {
    if (getBeanStore() instanceof RequestBeanStore) {
      return Reflections.<RequestBeanStore>cast(getBeanStore()).getRequest();
    }
    return null;
  }
}
org.jboss.weld.module.web.context.beanstore.httpRequestBeanStore

Javadoc

A BeanStore that uses a HTTP request as backing storage.

This class is not threadsafe

Most used methods

  • <init>
  • getRequest

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JList (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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