Module io.avaje.jex

Interface SpiRoutes.Entry

Enclosing interface:
SpiRoutes

public static interface SpiRoutes.Entry
A route entry.
  • Method Summary

    Modifier and Type Method Description
    long activeRequests()
    Return the active request count for the route.
    void dec()
    Decrement active request count for the route.
    void handle​(Context ctx)
    Handle the request.
    void inc()
    Increment active request count for the route.
    boolean matches​(String requestUri)
    Return true if it matches the request URI.
    String matchPath()
    Return the raw path expression.
    boolean multiSlash()
    Return true if one of the segments is the wildcard match or accepting slashes.
    Map<String,​String> pathParams​(String uri)
    Return the path parameter map given the uri.
    int segmentCount()
    Return the segment count.
  • Method Details

    • matches

      boolean matches​(String requestUri)
      Return true if it matches the request URI.
    • handle

      void handle​(Context ctx)
      Handle the request.
    • pathParams

      Map<String,​String> pathParams​(String uri)
      Return the path parameter map given the uri.
    • matchPath

      String matchPath()
      Return the raw path expression.
    • segmentCount

      int segmentCount()
      Return the segment count.
    • multiSlash

      boolean multiSlash()
      Return true if one of the segments is the wildcard match or accepting slashes.
    • inc

      void inc()
      Increment active request count for the route.
    • dec

      void dec()
      Decrement active request count for the route.
    • activeRequests

      long activeRequests()
      Return the active request count for the route.