Class ScxRouteHandler

java.lang.Object
cool.scx.web.ScxRouteHandler
All Implemented Interfaces:
cool.scx.function.Function1Void<cool.scx.http.routing.RoutingContext, Throwable>, cool.scx.http.routing.Route

public final class ScxRouteHandler extends Object implements cool.scx.http.routing.Route, cool.scx.function.Function1Void<cool.scx.http.routing.RoutingContext, Throwable>
ScxRouteHandler
Version:
0.0.1
Author:
scx567888
  • Field Details

    • method

      public final cool.scx.reflect.MethodInfo method
    • isVoid

      public final boolean isVoid
    • instance

      public final Object instance
    • clazz

      public final Class<?> clazz
  • Method Details

    • apply

      public void apply(cool.scx.http.routing.RoutingContext context) throws Throwable
      Specified by:
      apply in interface cool.scx.function.Function1Void<cool.scx.http.routing.RoutingContext, Throwable>
      Throws:
      Throwable
    • accept0

      public void accept0(cool.scx.http.routing.RoutingContext context) throws Throwable
      Throws:
      Throwable
    • path

      public String path()
      Specified by:
      path in interface cool.scx.http.routing.Route
    • methods

      public Set<cool.scx.http.method.HttpMethod> methods()
      Specified by:
      methods in interface cool.scx.http.routing.Route
    • typeMatcher

      public cool.scx.http.routing.TypeMatcher typeMatcher()
      Specified by:
      typeMatcher in interface cool.scx.http.routing.Route
    • pathMatcher

      public cool.scx.http.routing.PathMatcher pathMatcher()
      Specified by:
      pathMatcher in interface cool.scx.http.routing.Route
    • methodMatcher

      public cool.scx.http.routing.MethodMatcher methodMatcher()
      Specified by:
      methodMatcher in interface cool.scx.http.routing.Route
    • order

      public int order()
      Specified by:
      order in interface cool.scx.http.routing.Route
    • handler

      public cool.scx.function.Function1Void<cool.scx.http.routing.RoutingContext, Throwable> handler()
      Specified by:
      handler in interface cool.scx.http.routing.Route