Class ScxHttpRouter

java.lang.Object
cool.scx.http.routing.RouterImpl
cool.scx.app.ScxHttpRouter
All Implemented Interfaces:
cool.scx.http.routing.Router, Consumer<cool.scx.http.ScxHttpServerRequest>

public final class ScxHttpRouter extends cool.scx.http.routing.RouterImpl
ScxHttp 路由 内部使用 Router 进行具体路由的处理
Version:
0.0.1
Author:
scx567888
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    cool.scx.http.routing.handler.CorsHandler
     
    cool.scx.http.routing.Route
     

    Methods inherited from class cool.scx.http.routing.RouterImpl

    accept, addRoute, errorHandler, getRoutes

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Consumer

    andThen

    Methods inherited from interface cool.scx.http.routing.Router

    route, route, webSocketRoute, webSocketRoute
  • Constructor Details

    • ScxHttpRouter

      public ScxHttpRouter(Scx scx)
  • Method Details

    • corsHandler

      public cool.scx.http.routing.handler.CorsHandler corsHandler()
    • corsHandlerRoute

      public cool.scx.http.routing.Route corsHandlerRoute()