public class RedirectAbsoluteXServletHandler extends Object implements IXServletSimpleHandler
IXServletSimpleHandler that does a redirect to a fixed URL.| Constructor and Description |
|---|
RedirectAbsoluteXServletHandler(com.helger.commons.url.ISimpleURL aTargetURL)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleRequest(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope,
com.helger.servlet.response.UnifiedResponse aUnifiedResponse)
This is the main request handling method.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateUnifiedResponse, getLastModificationDateTime, getSupportedETag, initRequestState, onException, onRequestBegin, onRequestEndonServletDestroy, onServletInitpublic RedirectAbsoluteXServletHandler(@Nonnull com.helger.commons.url.ISimpleURL aTargetURL)
aTargetURL - The URL to redirect to. Is interpreted as an absolute URL.public void handleRequest(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull com.helger.servlet.response.UnifiedResponse aUnifiedResponse) throws Exception
IXServletSimpleHandlerhandleRequest in interface IXServletSimpleHandleraRequestScope - The request scope to use. There is no direct access to the
HttpServletResponse. Everything must be handled with the
unified response! Never null.aUnifiedResponse - The response object to be filled. Never null.Exception - In case of an errorCopyright © 2017–2019 Philip Helger. All rights reserved.