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
    Return the active request count for the route.
    void
    dec()
    Decrement active request count for the route.
    void
    Handle the request.
    void
    inc()
    Increment active request count for the route.
    boolean
    Return true if all segments are literal.
    boolean
    matches(String requestUri)
    Return true if it matches the request URI.
    Return the raw path expression.
    boolean
    Return true if one of the segments is the wildcard match or accepting slashes.
    Return the path parameter map given the uri.
    int
    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.
    • literal

      boolean literal()
      Return true if all segments are literal.
    • 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.