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