Class ScxWeb
java.lang.Object
cool.scx.web.ScxWeb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExceptionHandler(int index, ExceptionHandler handler) addExceptionHandler(ExceptionHandler exceptionHandler) addParameterHandler(int index, ParameterHandler handler) addParameterHandler(ParameterHandler handler) addReturnValueHandler(int index, ReturnValueHandler returnValueHandler) addReturnValueHandler(ReturnValueHandler returnValueHandler) bindErrorHandler(cool.scx.http.routing.Router vertxRouter) registerHttpRoutes(cool.scx.http.routing.Router router, Object... objects) registerWebSocketRoutes(cool.scx.http.routing.WebSocketRouter router, Object... objects) static cool.scx.http.routing.RoutingContext获取当前线程的 RoutingContext (只限在 scx mapping 注解的方法及其调用链上)setInterceptor(Interceptor newInterceptor)
-
Constructor Details
-
ScxWeb
public ScxWeb() -
ScxWeb
-
-
Method Details
-
routingContext
public static cool.scx.http.routing.RoutingContext routingContext()获取当前线程的 RoutingContext (只限在 scx mapping 注解的方法及其调用链上)- Returns:
- 当前线程的 RoutingContext
-
registerHttpRoutes
-
registerWebSocketRoutes
-
setInterceptor
-
addExceptionHandler
-
addParameterHandler
-
addReturnValueHandler
-
addExceptionHandler
-
addParameterHandler
-
addReturnValueHandler
-
templateHandler
-
bindErrorHandler
-