congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RequestContextFilter.initContextHolders
Code IndexAdd Tabnine to your IDE (free)

How to use
initContextHolders
method
in
org.springframework.web.filter.RequestContextFilter

Best Java code snippets using org.springframework.web.filter.RequestContextFilter.initContextHolders (Showing top 4 results out of 315)

origin: spring-projects/spring-framework

@Override
protected void doFilterInternal(
    HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
    throws ServletException, IOException {
  ServletRequestAttributes attributes = new ServletRequestAttributes(request, response);
  initContextHolders(request, attributes);
  try {
    filterChain.doFilter(request, response);
  }
  finally {
    resetContextHolders();
    if (logger.isTraceEnabled()) {
      logger.trace("Cleared thread-bound request context: " + request);
    }
    attributes.requestCompleted();
  }
}
origin: org.springframework/spring-web

@Override
protected void doFilterInternal(
    HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
    throws ServletException, IOException {
  ServletRequestAttributes attributes = new ServletRequestAttributes(request, response);
  initContextHolders(request, attributes);
  try {
    filterChain.doFilter(request, response);
  }
  finally {
    resetContextHolders();
    if (logger.isTraceEnabled()) {
      logger.trace("Cleared thread-bound request context: " + request);
    }
    attributes.requestCompleted();
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

@Override
protected void doFilterInternal(
    HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
    throws ServletException, IOException {
  ServletRequestAttributes attributes = new ServletRequestAttributes(request, response);
  initContextHolders(request, attributes);
  try {
    filterChain.doFilter(request, response);
  }
  finally {
    resetContextHolders();
    if (logger.isTraceEnabled()) {
      logger.trace("Cleared thread-bound request context: " + request);
    }
    attributes.requestCompleted();
  }
}
origin: apache/servicemix-bundles

@Override
protected void doFilterInternal(
    HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
    throws ServletException, IOException {
  ServletRequestAttributes attributes = new ServletRequestAttributes(request, response);
  initContextHolders(request, attributes);
  try {
    filterChain.doFilter(request, response);
  }
  finally {
    resetContextHolders();
    if (logger.isDebugEnabled()) {
      logger.debug("Cleared thread-bound request context: " + request);
    }
    attributes.requestCompleted();
  }
}
org.springframework.web.filterRequestContextFilterinitContextHolders

Popular methods of RequestContextFilter

  • resetContextHolders
  • <init>
  • doFilter
  • init
  • setThreadContextInheritable
    Set whether to expose the LocaleContext and RequestAttributes as inheritable for child threads (usin

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • setContentView (Activity)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JFrame (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top Sublime Text plugins
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