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