程序包 cool.scx.mvc

类 ScxMvc

java.lang.Object
cool.scx.mvc.ScxMvc

public final class ScxMvc extends Object
  • 构造器详细资料

    • ScxMvc

      public ScxMvc()
    • ScxMvc

      public ScxMvc(ScxMvcOptions options)
  • 方法详细资料

    • routingContext

      public static io.vertx.ext.web.RoutingContext routingContext()
      获取当前线程的 RoutingContext (只限在 scx mapping 注解的方法及其调用链上)
      返回:
      当前线程的 RoutingContext
    • registerHttpRoutes

      public ScxMvc registerHttpRoutes(io.vertx.ext.web.Router router, org.springframework.beans.factory.BeanFactory beanFactory, List<Class<?>> classList)
    • registerWebSocketRoutes

      public ScxMvc registerWebSocketRoutes(ScxWebSocketRouter router, org.springframework.beans.factory.BeanFactory beanFactory, List<Class<?>> classList)
    • setInterceptor

      public ScxMvc setInterceptor(ScxMvcInterceptor scxMappingInterceptor)
    • addExceptionHandler

      public ScxMvc addExceptionHandler(ScxHttpRouterExceptionHandler scxHttpRouterExceptionHandler)
    • addParameterHandler

      public ScxMvc addParameterHandler(ScxMvcParameterHandler scxMappingMethodParameterHandler)
    • addReturnValueHandler

      public ScxMvc addReturnValueHandler(ScxMvcReturnValueHandler returnValueHandler)
    • addExceptionHandler

      public ScxMvc addExceptionHandler(int index, ScxHttpRouterExceptionHandler scxHttpRouterExceptionHandler)
    • addParameterHandler

      public ScxMvc addParameterHandler(int index, ScxMvcParameterHandler scxMappingMethodParameterHandler)
    • addReturnValueHandler

      public ScxMvc addReturnValueHandler(int index, ScxMvcReturnValueHandler returnValueHandler)
    • templateHandler

      public ScxTemplateHandler templateHandler()
    • findExceptionHandler

      public ScxHttpRouterExceptionHandler findExceptionHandler(Throwable throwable)
    • bindErrorHandler

      public ScxMvc bindErrorHandler(io.vertx.ext.web.Router vertxRouter)