Class SecuredRedirectHandler

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
All Implemented Interfaces:
Handler, Handler.Container, Handler.Singleton, Request.Handler, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.LifeCycle, org.eclipse.jetty.util.thread.Invocable

public class SecuredRedirectHandler extends Handler.Wrapper
Forces a redirect to the secure form of the resource before allowed to access the resource.

SecuredRedirectHandler enforces that all requests passing through it must have Request.isSecure() set to true.

SecuredRedirectHandler will send a Redirect HTTP Response (default to 302: Moved Temporarily) with the information present in the HttpConfiguration for the connector that the response is being processed on. The Location response header will be built from HttpConfiguration.getSecureScheme() and HttpConfiguration.getSecurePort()