public abstract class AbstractConfidentialityHandler extends Object implements HttpHandler
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractConfidentialityHandler(HttpHandler next) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
confidentialityRequired(HttpServerExchange exchange)
Use the HttpServerExchange to identify if confidentiality is required.
|
protected abstract URI |
getRedirectURI(HttpServerExchange exchange)
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.
|
void |
handleRequest(HttpServerExchange exchange)
Handle the request.
|
protected boolean |
isConfidential(HttpServerExchange exchange)
Use the HttpServerExchange supplied to check if this request is already 'sufficiently' confidential.
|
protected AbstractConfidentialityHandler(HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionprotected boolean isConfidential(HttpServerExchange exchange)
exchange - - The HttpServerExchange for the request being processed.protected boolean confidentialityRequired(HttpServerExchange exchange)
exchange - - The HttpServerExchange for the request being processed.protected abstract URI getRedirectURI(HttpServerExchange exchange) throws URISyntaxException
exchange - - The HttpServerExchange for the request being processed.URI to redirect to.URISyntaxExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.