Codota Logo
Request.getMethod
Code IndexAdd Codota to your IDE (free)

How to use
getMethod
method
in
leap.web.Request

Best Java code snippets using leap.web.Request.getMethod (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: org.leapframework/leap-websecurity

  protected final String getCacheKey(Request request){
    return request.getMethod() + "$" + request.getPath();
  }
}
origin: org.leapframework/leap-websecurity

  private String genCacheKey(Request request){
    return request.getMethod()+"$"+request.getPath();
  }
}
origin: org.leapframework/leap-websecurity

private boolean matches(SecuredPath p,Request request){
  return p.matches(request) &&
        (p.getRoute() == null ||
          Strings.equals(p.getRoute().getMethod(),"*") ||
          Strings.equalsIgnoreCase(p.getRoute().getMethod(),request.getMethod()));
}
origin: org.leapframework/leap-websecurity

protected final boolean matches(SecuredPath p, Request request){
  return p.matches(request) &&
      (p.getRoute() == null ||
          Strings.equals(p.getRoute().getMethod(),"*") ||
          Strings.equalsIgnoreCase(p.getRoute().getMethod(),request.getMethod()));
}
origin: org.leapframework/leap-oauth2

  @Override
  public void handleRequest(Request request, Response response, OAuth2Params params,
               Consumer<AuthzAccessToken> callback) throws Throwable {
    if(!HTTP.Method.valueOf(request.getMethod()).isPost()){
      handleError(request,response,params,
          getOauth2Error(key -> OAuth2Errors.invalidRequestError(request,key,"this grant_type only accept post method."),INVALID_REQUEST_INVALID_HTTP_METHOD,"POST"));
      return;
    }
    AuthzClientCredentials credentials = new SamplingAuthzClientCredentials(params.getClientId(),params.getClientSecret());

    AuthzClient client = validateClientSecret(request, response,credentials);
    
    if(client == null){
      return;
    }

    callback.accept(tokenManager.createAccessToken(new SimpleAuthzAuthentication(params, client)));
  }
}
origin: org.leapframework/leap-oauth2-server

  @Override
  public void handleRequest(Request request, Response response, OAuth2Params params,
               Consumer<AuthzAccessToken> callback) throws Throwable {
    if(!HTTP.Method.valueOf(request.getMethod()).isPost()){
      handleError(request,response,params,
          getOauth2Error(key -> OAuth2Errors.invalidRequestError(request,key,"this grant_type only accept post method."),INVALID_REQUEST_INVALID_HTTP_METHOD,"POST"));
      return;
    }
    AuthzClientCredentials credentials = new SamplingAuthzClientCredentials(params.getClientId(),params.getClientSecret());

    AuthzClient client = validateClientSecret(request, response,credentials);
    
    if(client == null){
      return;
    }

    callback.accept(tokenManager.createAccessToken(new SimpleAuthzAuthentication(params, client)));
  }
}
leap.webRequestgetMethod

Popular methods of Request

  • getHeader
  • getParameter
  • getAttribute
  • getContextPath
  • getPath
  • getServletRequest
  • setAttribute
  • forwardToView
  • getMessageSource
  • getSession
  • getUri
  • getValidation
  • getUri,
  • getValidation,
  • tryGetCurrent,
  • getCharacterEncoding,
  • getContextUrl,
  • getLocale,
  • getParameters,
  • getQueryString,
  • getUriWithQueryString

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Reference (javax.naming)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now