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