类 ScxHttpRouter
java.lang.Object
cool.scx.core.http.ScxHttpRouter
ScxHttp 路由 内部使用 vertxRouter 进行具体路由的处理
- 版本:
- 1.11.8
- 作者:
- scx567888
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明addExceptionHandler(int index, ScxHttpRouterExceptionHandler scxHttpRouterExceptionHandler) 添加一个 异常处理器addExceptionHandler(ScxHttpRouterExceptionHandler scxHttpRouterExceptionHandler) 添加一个 异常处理器io.vertx.ext.web.handler.BodyHandleraio.vertx.ext.web.Routeaio.vertx.ext.web.handler.CorsHandleraio.vertx.ext.web.RouteafindExceptionHandler(Throwable throwable) aio.vertx.ext.web.Routera
-
构造器详细资料
-
ScxHttpRouter
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
a- 参数:
throwable- a- 返回:
- a
-