public class ServletConfidentialityConstraintHandler extends SinglePortConfidentialityHandler
SinglePortConfidentialityHandler| Constructor and Description |
|---|
ServletConfidentialityConstraintHandler(ConfidentialPortManager portManager,
HttpHandler next) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
confidentialityRequired(HttpServerExchange exchange)
Use the HttpServerExchange to identify if confidentiality is required.
|
protected 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.
|
getRedirectURIpublic ServletConfidentialityConstraintHandler(ConfidentialPortManager portManager, HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerhandleRequest in class AbstractConfidentialityHandlerexchange - the HTTP request/response exchangeExceptionprotected boolean confidentialityRequired(HttpServerExchange exchange)
AbstractConfidentialityHandlerconfidentialityRequired in class AbstractConfidentialityHandlerexchange - - The HttpServerExchange for the request being processed.protected URI getRedirectURI(HttpServerExchange exchange) throws URISyntaxException
AbstractConfidentialityHandlergetRedirectURI in class SinglePortConfidentialityHandlerexchange - - The HttpServerExchange for the request being processed.URI to redirect to.URISyntaxExceptionprotected boolean isConfidential(HttpServerExchange exchange)
isConfidential in class AbstractConfidentialityHandlerexchange - - The HttpServerExchange for the request being processed.Copyright © 2017 JBoss by Red Hat. All rights reserved.