Module io.avaje.jex

Interface SpiRoutes


public interface SpiRoutes
Route matching and filter handling.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Interface Description
    static interface  SpiRoutes.Entry
    A route entry.
  • Method Summary

    Modifier and Type Method Description
    long activeRequests()
    Return the active request count.
    void after​(String pathInfo, SpiContext ctx)
    Execute all appropriate after filters for the given request URI.
    void before​(String pathInfo, SpiContext ctx)
    Execute all appropriate before filters for the given request URI.
    void dec()
    Decrement active request count for no route match.
    void inc()
    Increment active request count for no route match.
    SpiRoutes.Entry match​(Routing.Type type, String pathInfo)
    Find the matching handler entry given the type and request URI.
    void waitForIdle​(long maxSeconds)
    Wait for no active requests.
  • Method Details

    • match

      SpiRoutes.Entry match​(Routing.Type type, String pathInfo)
      Find the matching handler entry given the type and request URI.
    • before

      void before​(String pathInfo, SpiContext ctx)
      Execute all appropriate before filters for the given request URI.
    • after

      void after​(String pathInfo, SpiContext ctx)
      Execute all appropriate after filters for the given request URI.
    • inc

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

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

      long activeRequests()
      Return the active request count.
    • waitForIdle

      void waitForIdle​(long maxSeconds)
      Wait for no active requests.