Package io.undertow.server.handlers
Class AllowedMethodsHandler
java.lang.Object
io.undertow.server.handlers.AllowedMethodsHandler
- All Implemented Interfaces:
HttpHandler
Handler that allows 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, String... allowedMethods) AllowedMethodsHandler(HttpHandler next, Set<String> allowedMethods) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(HttpServerExchange exchange) Handle the request.
-
Constructor Details
-
AllowedMethodsHandler
-
AllowedMethodsHandler
-
-
Method Details
-
handleRequest
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-
getAllowedMethods
-