| Modifier and Type | Field and Description |
|---|---|
| private final HttpHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | handleRequest(HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| protected boolean | Returns: true if authentication is required, false otherwise.- the exchange)HttpServerExchange for the current request to decide if authentication is required.Evaluate the current request and indicate if authentication is required for the current request. |
| next | back to summary |
|---|---|
| private final HttpHandler next | |
| AuthenticationConstraintHandler | back to summary |
|---|---|
| public AuthenticationConstraintHandler(final HttpHandler next) | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| isAuthenticationRequired | back to summary |
|---|---|
| protected boolean isAuthenticationRequired(final HttpServerExchange exchange) Evaluate the current request and indicate if authentication is required for the current request. By default this will always return true, sub-classes will override this method to provide a more specific check.
| |