public class AllowedMethodsHandler extends Object implements HttpHandler
Modifier and Type | Class and Description |
---|---|
static class | AllowedMethodsHandler.Builder |
Constructor and Description |
---|
AllowedMethodsHandler(HttpHandler next, HttpString... allowedMethods) |
AllowedMethodsHandler(HttpHandler next, Set<HttpString> allowedMethods) |
Modifier and Type | Method and 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
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
public Set<HttpString> getAllowedMethods()
Copyright © 2015 JBoss by Red Hat. All rights reserved.