Class SinglePortConfidentialityHandler

    • Constructor Detail

      • SinglePortConfidentialityHandler

        public SinglePortConfidentialityHandler​(HttpHandler next,
                                                int redirectPort)
    • Method Detail

      • getRedirectURI

        protected java.net.URI getRedirectURI​(HttpServerExchange exchange)
                                       throws java.net.URISyntaxException
        Description copied from class: AbstractConfidentialityHandler
        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.
        Specified by:
        getRedirectURI in class AbstractConfidentialityHandler
        Parameters:
        exchange - - The HttpServerExchange for the request being processed.
        Returns:
        The URI to redirect to.
        Throws:
        java.net.URISyntaxException
      • getRedirectURI

        protected java.net.URI getRedirectURI​(HttpServerExchange exchange,
                                              int port)
                                       throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException