public class AuthenticationConstraintHandler extends Object implements HttpHandler
Constructor and Description |
---|
AuthenticationConstraintHandler(HttpHandler next) |
Modifier and Type | Method and 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 © 2020 JBoss by Red Hat. All rights reserved.