public class SinglePortConfidentialityHandler extends AbstractConfidentialityHandler
AbstractConfidentialityHandler
that uses the Host header from the incoming message and specifies the confidential address by just switching the port.Constructor and Description |
---|
SinglePortConfidentialityHandler(HttpHandler next, int redirectPort) |
Modifier and Type | Method and Description |
---|---|
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. |
protected URI | getRedirectURI(HttpServerExchange exchange, int port) |
confidentialityRequired, handleRequest, isConfidential
public SinglePortConfidentialityHandler(HttpHandler next, int redirectPort)
protected URI getRedirectURI(HttpServerExchange exchange) throws URISyntaxException
AbstractConfidentialityHandler
getRedirectURI
in class AbstractConfidentialityHandler
exchange
- - The HttpServerExchange
for the request being processed.URI
to redirect to.URISyntaxException
protected URI getRedirectURI(HttpServerExchange exchange, int port) throws URISyntaxException
URISyntaxException
Copyright © 2015 JBoss by Red Hat. All rights reserved.