Package io.undertow.server.handlers
Class DisallowedMethodsHandler
java.lang.Object
io.undertow.server.handlers.DisallowedMethodsHandler
- All Implemented Interfaces:
HttpHandler
Handler that blacklists certain HTTP methods.
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDisallowedMethodsHandler
(HttpHandler next, HttpString... disallowedMethods) DisallowedMethodsHandler
(HttpHandler next, Set<HttpString> disallowedMethods) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleRequest
(HttpServerExchange exchange) Handle the request.toString()
-
Constructor Details
-
DisallowedMethodsHandler
-
DisallowedMethodsHandler
-
-
Method Details
-
handleRequest
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-
toString
-