| Modifier and Type | Field and Description |
|---|---|
| private final HttpHandler |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | Returns: true if the request requires confidentiality, false otherwise.- The exchange)HttpServerExchange for the request being processed.Use the HttpServerExchange to identify if confidentiality is required. |
| protected abstract URI | Returns: TheURI to redirect to.- The exchange)HttpServerExchange for the request being processed.All sub-classes are required to provide an implementation of this method, using the HttpServerExchange for the current request return the address to use for a redirect should confidentiality be required and the request not be confidential. |
| public void | handleRequest(HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| protected boolean | Returns: true if the request is 'sufficiently' confidential, false otherwise.- The exchange)HttpServerExchange for the request being processed.Use the HttpServerExchange supplied to check if this request is already 'sufficiently' confidential. |
| next | back to summary |
|---|---|
| private final HttpHandler next | |
| AbstractConfidentialityHandler | back to summary |
|---|---|
| protected AbstractConfidentialityHandler(final HttpHandler next) | |
| confidentialityRequired | back to summary |
|---|---|
| protected boolean confidentialityRequired(final HttpServerExchange exchange) Use the HttpServerExchange to identify if confidentiality is required. This method currently returns true for all requests, sub-classes can override this to provide a custom check. Todo we should deprecate this and just use a predicate to decide to execute the handler instead
| |
| getRedirectURI | back to summary |
|---|---|
| protected abstract URI getRedirectURI(final HttpServerExchange exchange) throws URISyntaxException All sub-classes are required to provide an implementation of this method, using the HttpServerExchange for the current request return the address to use for a redirect should confidentiality be required and the request not be confidential.
| |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| isConfidential | back to summary |
|---|---|
| protected boolean isConfidential(final HttpServerExchange exchange) Use the HttpServerExchange supplied to check if this request is already 'sufficiently' confidential. Here we say 'sufficiently' as sub-classes can override this and maybe even go so far as querying the actual SSLSession.
| |