Tabnine Logo
RequestIgnore.matches
Code IndexAdd Tabnine to your IDE (free)

How to use
matches
method
in
leap.core.web.RequestIgnore

Best Java code snippets using leap.core.web.RequestIgnore.matches (Showing top 2 results out of 315)

origin: org.leapframework/leap-websecurity

@Override
public State preHandleRequest(Request request, Response response, ActionContext ac) throws Throwable {
  //Web security do not enabled.
  if(!config.isEnabled()){
    log.debug("Web security not enabled, ignore the interceptor");
    return State.CONTINUE;
  }
  //csrf
  if(State.isIntercepted(csrf.handleRequest(request, response))){
    return State.INTERCEPTED;
  }
  //cors
  if(config.isCorsIgnored() && cors.isPreflightRequest(request)) {
    return State.CONTINUE;
  }
  
  //TODO : cache 
  //Check is the request ignored.
  for(RequestIgnore ignore : config.getIgnores()) {
    if(ignore.matches(request)) {
      return State.CONTINUE;
    }
  }
  
  DefaultSecurityContextHolder context = new DefaultSecurityContextHolder(config, perm, request, ac);
  context.setSecuredPath(resolveSecuredPath(request,response,context,ac.getRoute()));
  return preHandleRequest(request, response, context);
}
origin: org.leapframework/leap-oauth2-webapp

if(ignore.matches(request)){
  return State.CONTINUE;
leap.core.webRequestIgnorematches

Popular methods of RequestIgnore

    Popular in Java

    • Start an intent from android
    • notifyDataSetChanged (ArrayAdapter)
    • setContentView (Activity)
    • runOnUiThread (Activity)
    • File (java.io)
      An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
    • InputStream (java.io)
      A readable source of bytes.Most clients will use input streams that read data from the file system (
    • Date (java.sql)
      A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
    • NoSuchElementException (java.util)
      Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
    • Scheduler (org.quartz)
      This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
    • Location (org.springframework.beans.factory.parsing)
      Class that models an arbitrary location in a Resource.Typically used to track the location of proble
    • CodeWhisperer 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