Package io.undertow.server.handlers
Class DisallowedMethodsHandler
- java.lang.Object
-
- io.undertow.server.handlers.DisallowedMethodsHandler
-
- All Implemented Interfaces:
HttpHandler
public class DisallowedMethodsHandler extends Object implements HttpHandler
Handler that blacklists certain HTTP methods.- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DisallowedMethodsHandler.Builder
-
Constructor Summary
Constructors Constructor Description DisallowedMethodsHandler(HttpHandler next, HttpString... disallowedMethods)
DisallowedMethodsHandler(HttpHandler next, Set<HttpString> disallowedMethods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleRequest(HttpServerExchange exchange)
Handle the request.String
toString()
-
-
-
Constructor Detail
-
DisallowedMethodsHandler
public DisallowedMethodsHandler(HttpHandler next, Set<HttpString> disallowedMethods)
-
DisallowedMethodsHandler
public DisallowedMethodsHandler(HttpHandler next, HttpString... disallowedMethods)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-
-