类 ScxHttpRouter

java.lang.Object
cool.scx.core.http.ScxHttpRouter

public final class ScxHttpRouter extends Object
ScxHttp 路由 内部使用 vertxRouter 进行具体路由的处理
版本:
1.11.8
作者:
scx567888
  • 构造器详细资料

    • ScxHttpRouter

      public ScxHttpRouter(Scx scx)
      a
      参数:
      scx - a
  • 方法详细资料

    • vertxRouter

      public io.vertx.ext.web.Router vertxRouter()
      a
      返回:
      a
    • corsHandler

      public io.vertx.ext.web.handler.CorsHandler corsHandler()
      a
      返回:
      a
    • bodyHandler

      public io.vertx.ext.web.handler.BodyHandler bodyHandler()
      a
      返回:
      a
    • corsHandlerRoute

      public io.vertx.ext.web.Route corsHandlerRoute()
      a
      返回:
      a
    • bodyHandlerRoute

      public io.vertx.ext.web.Route bodyHandlerRoute()
      a
      返回:
      a
    • addExceptionHandler

      public ScxHttpRouter addExceptionHandler(ScxHttpRouterExceptionHandler scxHttpRouterExceptionHandler)
      添加一个 异常处理器
      参数:
      scxHttpRouterExceptionHandler - s
      返回:
      s
    • addExceptionHandler

      public ScxHttpRouter addExceptionHandler(int index, ScxHttpRouterExceptionHandler scxHttpRouterExceptionHandler)
      添加一个 异常处理器
      参数:
      index - 索引
      scxHttpRouterExceptionHandler - s
      返回:
      s
    • findExceptionHandler

      public ScxHttpRouterExceptionHandler findExceptionHandler(Throwable throwable)
      a
      参数:
      throwable - a
      返回:
      a