HttpHandler
public class AuthenticationConstraintHandler extends Object implements HttpHandler
Constructor | Description |
---|---|
AuthenticationConstraintHandler(HttpHandler next) |
Modifier and Type | Method | Description |
---|---|---|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
protected boolean |
isAuthenticationRequired(HttpServerExchange exchange) |
Evaluate the current request and indicate if authentication is required for the current request.
|
public AuthenticationConstraintHandler(HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
HttpHandler.handleRequest(io.undertow.server.HttpServerExchange)
protected boolean isAuthenticationRequired(HttpServerExchange exchange)
exchange
- - the HttpServerExchange
for the current request to decide if authentication is required.Copyright © 2018. All rights reserved.