Package io.mangoo.routing.handlers
Class DispatcherHandler
- java.lang.Object
-
- io.mangoo.routing.handlers.DispatcherHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class DispatcherHandler extends Object implements io.undertow.server.HttpHandler
Main class for dispatching a request to the request chain. The request chain contains the following handlers in order: DispatcherHandler LimitHandler LocalHandler InboundCookiesHandler FormHandler RequestHandler OutboundCookiesHandler ResponseHandler- Author:
- svenkubiak
-
-
Constructor Summary
Constructors Constructor Description DispatcherHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DispatcherHandlerdispatch(Class<?> controllerClass, String controllerMethodName)voidhandleRequest(io.undertow.server.HttpServerExchange exchange)DispatcherHandlerisBlocking(boolean blocking)DispatcherHandlerwithAuthentication(boolean authentication)DispatcherHandlerwithAuthorization(boolean authorization)DispatcherHandlerwithBasicAuthentication(String username, String password)DispatcherHandlerwithLimit(int limit)
-
-
-
Method Detail
-
dispatch
public DispatcherHandler dispatch(Class<?> controllerClass, String controllerMethodName)
-
isBlocking
public DispatcherHandler isBlocking(boolean blocking)
-
withBasicAuthentication
public DispatcherHandler withBasicAuthentication(String username, String password)
-
withAuthentication
public DispatcherHandler withAuthentication(boolean authentication)
-
withAuthorization
public DispatcherHandler withAuthorization(boolean authorization)
-
withLimit
public DispatcherHandler withLimit(int limit)
-
-