HttpHandlerpublic class AllowedMethodsHandler extends Object implements HttpHandler
| Modifier and Type | Class | Description |
|---|---|---|
static class |
AllowedMethodsHandler.Builder |
| Constructor | Description |
|---|---|
AllowedMethodsHandler(HttpHandler next,
HttpString... allowedMethods) |
|
AllowedMethodsHandler(HttpHandler next,
Set<HttpString> allowedMethods) |
| Modifier and Type | Method | Description |
|---|---|---|
Set<HttpString> |
getAllowedMethods() |
|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
public AllowedMethodsHandler(HttpHandler next, Set<HttpString> allowedMethods)
public AllowedMethodsHandler(HttpHandler next, HttpString... allowedMethods)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionpublic Set<HttpString> getAllowedMethods()
Copyright © 2018. All rights reserved.