Package cool.scx.core
Class ScxHttpRouter
java.lang.Object
io.vertx.ext.web.impl.RouterImpl
cool.scx.core.ScxHttpRouter
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest>,io.vertx.ext.web.Router
public final class ScxHttpRouter
extends io.vertx.ext.web.impl.RouterImpl
ScxHttp 路由 内部使用 vertxRouter 进行具体路由的处理
- Version:
- 1.11.8
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.ext.web.handler.BodyHandleraio.vertx.ext.web.Routeaio.vertx.ext.web.handler.CorsHandleraio.vertx.ext.web.RouteaMethods inherited from class io.vertx.ext.web.impl.RouterImpl
allowForward, clear, connect, connect, connectWithRegex, delete, delete, deleteWithRegex, errorHandler, get, get, getAllowForward, getRoutes, getWithRegex, handle, handleContext, handleFailure, head, head, headWithRegex, metadata, modifiedHandler, mountSubRouter, options, options, optionsWithRegex, patch, patch, patchWithRegex, post, post, postWithRegex, put, put, putMetadata, putWithRegex, route, route, route, routeWithRegex, routeWithRegex, toString, trace, trace, traceWithRegexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.vertx.ext.web.Router
getMetadata
-
Constructor Details
-
ScxHttpRouter
-
-
Method Details
-
corsHandler
public io.vertx.ext.web.handler.CorsHandler corsHandler()a- Returns:
- a
-
bodyHandler
public io.vertx.ext.web.handler.BodyHandler bodyHandler()a- Returns:
- a
-
corsHandlerRoute
public io.vertx.ext.web.Route corsHandlerRoute()a- Returns:
- a
-
bodyHandlerRoute
public io.vertx.ext.web.Route bodyHandlerRoute()a- Returns:
- a
-