Package io.undertow.security.handlers
Class SinglePortConfidentialityHandler
java.lang.Object
io.undertow.security.handlers.AbstractConfidentialityHandler
io.undertow.security.handlers.SinglePortConfidentialityHandler
- All Implemented Interfaces:
HttpHandler
An extension to
AbstractConfidentialityHandler that uses the Host header from the incoming message and specifies the
confidential address by just switching the port.- Author:
- Darran Lofthouse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected URIgetRedirectURI(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 URIgetRedirectURI(HttpServerExchange exchange, int port) Methods inherited from class io.undertow.security.handlers.AbstractConfidentialityHandler
confidentialityRequired, handleRequest, isConfidential
-
Constructor Details
-
SinglePortConfidentialityHandler
-
-
Method Details
-
getRedirectURI
Description copied from class:AbstractConfidentialityHandlerAll 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.- Specified by:
getRedirectURIin classAbstractConfidentialityHandler- Parameters:
exchange- - TheHttpServerExchangefor the request being processed.- Returns:
- The
URIto redirect to. - Throws:
URISyntaxException
-
getRedirectURI
- Throws:
URISyntaxException
-