Package com.networknt.router
Class RouterHandler
- java.lang.Object
-
- com.networknt.router.RouterHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class RouterHandler extends Object implements io.undertow.server.HttpHandler
This is a wrapper class for ProxyHandler as it is implemented as final. This class implements the HttpHandler which can be injected into the handler.yml configuration file as another option for the handler injection. The other option is to use RouterHandlerProvider in service.yml file.- Author:
- Steve Hu
-
-
Field Summary
Fields Modifier and Type Field Description protected ProxyHandlerproxyHandler
-
Constructor Summary
Constructors Constructor Description RouterHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(io.undertow.server.HttpServerExchange httpServerExchange)voidreload()
-
-
-
Field Detail
-
proxyHandler
protected ProxyHandler proxyHandler
-
-