Tabnine Logo
FilterDefinition.shouldFilter
Code IndexAdd Tabnine to your IDE (free)

How to use
shouldFilter
method
in
com.google.inject.servlet.FilterDefinition

Best Java code snippets using com.google.inject.servlet.FilterDefinition.shouldFilter (Showing top 6 results out of 315)

origin: com.google.inject.extensions/guice-servlet

public Filter getFilterIfMatching(HttpServletRequest request) {
 final String path = ServletUtils.getContextRelativePath(request);
 if (shouldFilter(path)) {
  return filter.get();
 } else {
  return null;
 }
}
origin: com.jwebmp.inject.extensions/guice-servlet

public Filter getFilterIfMatching(HttpServletRequest request) {
 final String path = ServletUtils.getContextRelativePath(request);
 if (shouldFilter(path)) {
  return filter.get();
 } else {
  return null;
 }
}
origin: com.google.code.guice/guice-servlet

public void doFilter(ServletRequest servletRequest,
  ServletResponse servletResponse, FilterChainInvocation filterChainInvocation)
  throws IOException, ServletException {
 final String path = ((HttpServletRequest) servletRequest).getServletPath();
 if (shouldFilter(path)) {
  filter.get()
     .doFilter(servletRequest, servletResponse, filterChainInvocation);
 } else {
  //otherwise proceed down chain anyway
  filterChainInvocation.doFilter(servletRequest, servletResponse);
 }
}
origin: org.sonatype.sisu.inject/guice-servlet

Filter getFilterIfMatching(HttpServletRequest request) {
 final String path = ServletUtils.getContextRelativePath(request);
 if (shouldFilter(path)) {
  Filter reference = filter.get();
  if (logger.isLoggable(Level.FINEST)) {
   logger.finest("Filtering " + path + " with " + reference);
  }
  return reference;
 } else {
  return null;
 }
}
origin: mycila/guice

public void doFilter(ServletRequest servletRequest,
           ServletResponse servletResponse, FilterChainInvocation filterChainInvocation)
  throws IOException, ServletException {
  final HttpServletRequest request = (HttpServletRequest) servletRequest;
  final String path = request.getRequestURI().substring(request.getContextPath().length());
  if (shouldFilter(path)) {
    filter.get()
      .doFilter(servletRequest, servletResponse, filterChainInvocation);
  } else {
    //otherwise proceed down chain anyway
    filterChainInvocation.doFilter(servletRequest, servletResponse);
  }
}
origin: com.mycila.guice.extensions/mycila-guice-servlet

public void doFilter(ServletRequest servletRequest,
           ServletResponse servletResponse, FilterChainInvocation filterChainInvocation)
  throws IOException, ServletException {
  final HttpServletRequest request = (HttpServletRequest) servletRequest;
  final String path = request.getRequestURI().substring(request.getContextPath().length());
  if (shouldFilter(path)) {
    filter.get()
      .doFilter(servletRequest, servletResponse, filterChainInvocation);
  } else {
    //otherwise proceed down chain anyway
    filterChainInvocation.doFilter(servletRequest, servletResponse);
  }
}
com.google.inject.servletFilterDefinitionshouldFilter

Popular methods of FilterDefinition

  • destroy
  • <init>
  • init
  • getFilterIfMatching
  • doFilter
  • acceptExtensionVisitor
  • getFilter

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Vim 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