Package io.undertow.server.handlers
Class AllowedMethodsHandler
java.lang.Object
io.undertow.server.handlers.AllowedMethodsHandler
- All Implemented Interfaces:
HttpHandler
Handler that whitelists certain HTTP methods. Only requests with a method in
the allowed methods set will be allowed to continue.
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAllowedMethodsHandler
(HttpHandler next, HttpString... allowedMethods) AllowedMethodsHandler
(HttpHandler next, Set<HttpString> allowedMethods) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleRequest
(HttpServerExchange exchange) Handle the request.toString()
-
Constructor Details
-
AllowedMethodsHandler
-
AllowedMethodsHandler
-
-
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
-
getAllowedMethods
-
toString
-