Codota Logo
HttpRoutesImpl.matchByPattern
Code IndexAdd Codota to your IDE (free)

How to use
matchByPattern
method
in
org.rapidoid.http.impl.HttpRoutesImpl

Best Java code snippets using org.rapidoid.http.impl.HttpRoutesImpl.matchByPattern (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: rapidoid/rapidoid

private HandlerMatch matchByPattern(Map<PathPattern, HttpHandler> handlers, String path) {
  for (Map.Entry<PathPattern, HttpHandler> e : handlers.entrySet()) {
    PathPattern pattern = e.getKey();
    Map<String, String> params = pattern.match(path);
    if (params != null) {
      HttpHandler handler = e.getValue();
      Route route = handler.getRoute();
      return new HandlerMatchWithParams(handler, params, route);
    }
  }
  if (handlers != patternAnyHandlers) return matchByPattern(patternAnyHandlers, path);
  return null;
}
origin: rapidoid/rapidoid

  if (handler == null) handler = matchByPattern(patternGetHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternPostHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternPutHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternDeleteHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternPatchHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternOptionsHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternHeadHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternTraceHandlers, buf.get(path));
origin: org.rapidoid/rapidoid-http-fast

private HandlerMatch matchByPattern(Map<PathPattern, HttpHandler> handlers, String path) {
  for (Map.Entry<PathPattern, HttpHandler> e : handlers.entrySet()) {
    PathPattern pattern = e.getKey();
    Map<String, String> params = pattern.match(path);
    if (params != null) {
      HttpHandler handler = e.getValue();
      Route route = handler.getRoute();
      return new HandlerMatchWithParams(handler, params, route);
    }
  }
  if (handlers != patternAnyHandlers) return matchByPattern(patternAnyHandlers, path);
  return null;
}
origin: org.rapidoid/rapidoid-http-fast

  if (handler == null) handler = matchByPattern(patternGetHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternPostHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternPutHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternDeleteHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternPatchHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternOptionsHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternHeadHandlers, buf.get(path));
if (handler == null) handler = matchByPattern(patternTraceHandlers, buf.get(path));
org.rapidoid.http.implHttpRoutesImplmatchByPattern

Popular methods of HttpRoutesImpl

  • <init>
  • addGenericHandler
  • addOrRemove
  • all
  • builtInResourcesHandler
  • custom
  • deregister
  • find
  • findHandler
  • genericHandlers
  • hasRouteOrResource
  • httpVerbColor
  • hasRouteOrResource,
  • httpVerbColor,
  • initialize,
  • isEmpty,
  • lastChangedAt,
  • notifyChanged,
  • ready,
  • register,
  • remove

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Path (java.nio.file)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
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