Top Description Fields Constructors Methods
io.undertow.security.handlers

public Class SinglePortConfidentialityHandler

extends AbstractConfidentialityHandler
Class Inheritance
Imports
io.undertow.server.HttpHandler, .HttpServerExchange, io.undertow.util.NetworkUtils, java.net.URI, .URISyntaxException

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

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
SinglePortConfidentialityHandler(final HttpHandler next, final int redirectPort)

Method Summary

Modifier and TypeMethod and Description
protected URI
getRedirectURI(HttpServerExchange
- The HttpServerExchange for the request being processed.
exchange
)

Implements abstract io.undertow.security.handlers.AbstractConfidentialityHandler.getRedirectURI.

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(final HttpServerExchange exchange, final int port)

Inherited from io.undertow.security.handlers.AbstractConfidentialityHandler:
confidentialityRequiredhandleRequestisConfidential

Field Detail

redirectPortback to summary
private final int redirectPort

Constructor Detail

SinglePortConfidentialityHandlerback to summary
public SinglePortConfidentialityHandler(final HttpHandler next, final int redirectPort)

Method Detail

getRedirectURIback to summary
protected URI getRedirectURI(HttpServerExchange exchange) throws URISyntaxException

Implements abstract io.undertow.security.handlers.AbstractConfidentialityHandler.getRedirectURI.

Doc from io.undertow.security.handlers.AbstractConfidentialityHandler.getRedirectURI.

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.

Parameters
exchange:HttpServerExchange

- The HttpServerExchange for the request being processed.

Returns:URI

The URI to redirect to.

Annotations
@Override
getRedirectURIback to summary
protected URI getRedirectURI(final HttpServerExchange exchange, final int port) throws URISyntaxException