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 Details

    • DispatcherHandler

      public DispatcherHandler()
  • Method Details

    • 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)
    • withMaxEntitySize

      public DispatcherHandler withMaxEntitySize(long maxEntitySize)
    • withLimit

      public DispatcherHandler withLimit(int limit)
    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Throws:
      Exception