Class SecuredRedirectHandler
- All Implemented Interfaces:
- Handler, HandlerContainer, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle
SecuredRedirectHandler redirects from http to https.
SecuredRedirectHandler uses the information present in HttpConfiguration
attempting to redirect to the HttpConfiguration.getSecureScheme() and
HttpConfiguration.getSecurePort() for any request that
ServletRequest.isSecure() is false.
- 
Nested Class SummaryNested classes/interfaces inherited from class AbstractHandlerAbstractHandler.ErrorDispatchHandlerNested classes/interfaces inherited from class AbstractLifeCycleAbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface ContainerContainer.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface DumpableDumpable.DumpableContainerNested classes/interfaces inherited from interface LifeCycleLifeCycle.Listener
- 
Field SummaryFields inherited from class HandlerWrapper_handler
- 
Constructor SummaryConstructorsConstructorDescriptionUses moved temporarily code (302) as the redirect code.SecuredRedirectHandler(int code) Use supplied code as the redirect code.
- 
Method SummaryMethods inherited from class HandlerWrapperdestroy, expandChildren, getHandler, getHandlers, getTail, insertHandler, setAsParent, setHandlerMethods inherited from class AbstractHandlerContainerexpandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass, setServerMethods inherited from class AbstractHandlerdoError, doStart, doStop, getServerMethods inherited from class ContainerLifeCycleaddBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeansMethods inherited from class AbstractLifeCyclegetEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop, toStringMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ContainergetCachedBeans, getEventListenersMethods inherited from interface Dumpable.DumpableContainerisDumpableMethods inherited from interface LifeCycleaddEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
- 
Constructor Details- 
SecuredRedirectHandlerpublic SecuredRedirectHandler()Uses moved temporarily code (302) as the redirect code.
- 
SecuredRedirectHandlerpublic SecuredRedirectHandler(int code) Use supplied code as the redirect code.- Parameters:
- code- the redirect code to use in the response
- Throws:
- IllegalArgumentException- if parameter is an invalid redirect code
 
 
- 
- 
Method Details- 
handlepublic void handle(String target, Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException Description copied from interface:HandlerHandle a request.- Specified by:
- handlein interface- Handler
- Overrides:
- handlein class- HandlerWrapper
- Parameters:
- target- The target of the request - either a URI or a name.
- baseRequest- The original unwrapped request object.
- request- The request either as the- Requestobject or a wrapper of that request.
- response- The response as the- Responseobject or a wrapper of that request.
- Throws:
- IOException- if unable to handle the request or response processing
- javax.servlet.ServletException- if unable to handle the request or response due to underlying servlet issue
 
 
-