Class Router
java.lang.Object
com.pixelservices.flash.components.http.routing.Router
-
Constructor Summary
ConstructorsConstructorDescriptionRouter
(String basePath, FlashServer server) Constructs a Router with a given base path and FlashServer instance.Router
(String basePath, FlashServer server, HandlerPoolManager poolManager) Constructs a Router with a given base path, FlashServer instance, and HandlerPoolManager. -
Method Summary
Modifier and TypeMethodDescription<T extends RequestHandler>
RouterRegisters a request handler class with the server.
-
Constructor Details
-
Router
Constructs a Router with a given base path and FlashServer instance.- Parameters:
basePath
- the base path for all routes registered with this routerserver
- the FlashServer instance to register routes with
-
Router
Constructs a Router with a given base path, FlashServer instance, and HandlerPoolManager.
-
-
Method Details
-
register
Registers a request handler class with the server.
-