java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.aoapps.web.resources.servlet.PageServlet
com.aoapps.web.framework.WebPage
com.aoapps.web.framework.RedirectWebPage
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
Redirects to the configured URL.
- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Fields inherited from class com.aoapps.web.framework.WebPage
emptyWebPageArray, reHTMLPattern, SEARCH_TWO
-
Constructor Summary
ConstructorsConstructorDescriptionRedirectWebPage
(ServletContext context, WebPage parent, String path, int redirectType, String description, String keywords, String navImageAlt, String title) Performs a redirect. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
doGet
(WebSiteRequest req, HttpServletResponse resp, DocumentEE document) Never do GET, redirect-only.final <__ extends FlowContent<__>>
voiddoGet
(WebSiteRequest req, HttpServletResponse resp, WebPageLayout layout, __ flow) Never do GET, redirect-only.final void
doPost
(WebSiteRequest req, HttpServletResponse resp, DocumentEE document) Never do POST, redirect-only.final <__ extends FlowContent<__>>
voiddoPost
(WebSiteRequest req, HttpServletResponse resp, WebPageLayout layout, __ flow) Never do POST, redirect-only.Gets the description of this page.Gets the keywords for this page.Gets the text for the navigation image to use to represent this page.Gets the parent of this page ornull
for none.int
Gets the redirect type, defaults to 302 (temporary).Gets the absolute or context-relative URL to direct to.getTitle
(WebSiteRequest req) Gets the title of the web page in order to generate the HTML.Gets the context-relative path for the URL.protected WebSiteRequest
Gets theWebSiteRequest
that handles authentication and other details of this site.Methods inherited from class com.aoapps.web.framework.WebPage
canAccess, configureResources, doGet, doGet, doPost, doPost, doPostWithSearch, equals, equals, generateUrlPath, getAuthor, getAuthorHref, getAutonli, getCachedChildren, getChildren, getClassLastModified, getContentValign, getCopyright, getDoctype, getDocument, getHtmlOutputStream, getIndent, getJavascriptSrc, getLastModified, getLastModified, getLastModifiedRecursive, getLastModifiedRecursive, getNavImageSuffix, getNavImageUrl, getNextPage, getOnloadScript, getPageIndexInParent, getPreferredContentWidth, getPreviousPage, getRootPage, getSearchLastModified, getSerialization, getServletContext, getShortTitle, getUptime, getUrlParams, getUrlPattern, getWebPage, getWebPage, getWebPage, getWebPage, getWebPage, getWebPage, getWebPageAndChildrenLastModified, getWebPageLayout, hashCode, includeNavImageAsParent, isHandler, isHandler, loadClass, printLoginForm, printUnauthorizedPage, search, service, setHeaders, showInLocationPath, standardSearch, useNavImage, useSiteMap
Methods inherited from class com.aoapps.web.resources.servlet.PageServlet
service
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, init, log, log
-
Constructor Details
-
Method Details
-
getWebSiteRequest
Description copied from class:WebPage
Gets theWebSiteRequest
that handles authentication and other details of this site.- Specified by:
getWebSiteRequest
in classWebPage
- Throws:
ServletException
-
getParent
Description copied from class:WebPage
Gets the parent of this page ornull
for none. -
doGet
public final void doGet(WebSiteRequest req, HttpServletResponse resp, DocumentEE document) throws ServletException, IOException Never do GET, redirect-only.- Overrides:
doGet
in classWebPage
- Parameters:
req
- theWebSiteRequest
for this request, ornull
when searchingresp
- theHttpServletResponse
for this request, ornull
when searchingdocument
- theDocumentEE
to send output to- Throws:
ServletException
IOException
- See Also:
-
doGet
public final <__ extends FlowContent<__>> void doGet(WebSiteRequest req, HttpServletResponse resp, WebPageLayout layout, __ flow) throws ServletException, IOException Never do GET, redirect-only.- Overrides:
doGet
in classWebPage
- Parameters:
req
- theWebSiteRequest
for this request, ornull
when searchingresp
- theHttpServletResponse
for this request, ornull
when searchinglayout
- theWebPageLayout
that has been appliedflow
- theFlowContent
to send output to- Throws:
ServletException
IOException
- See Also:
-
doPost
public final void doPost(WebSiteRequest req, HttpServletResponse resp, DocumentEE document) throws ServletException, IOException Never do POST, redirect-only.- Overrides:
doPost
in classWebPage
- Parameters:
req
- theWebSiteRequest
for this request, ornull
when searchingresp
- theHttpServletResponse
for this request, ornull
when searchingdocument
- theDocumentEE
to send output to- Throws:
ServletException
IOException
- See Also:
-
doPost
public final <__ extends FlowContent<__>> void doPost(WebSiteRequest req, HttpServletResponse resp, WebPageLayout layout, __ flow) throws ServletException, IOException Never do POST, redirect-only.- Overrides:
doPost
in classWebPage
- Parameters:
req
- the currentWebSiteRequest
resp
- theHttpServletResponse
for this requestlayout
- theWebPageLayout
that has been appliedflow
- theFlowContent
to send output to- Throws:
ServletException
IOException
- See Also:
-
getRedirectUrl
Description copied from class:WebPage
Gets the absolute or context-relative URL to direct to.- Overrides:
getRedirectUrl
in classWebPage
- Returns:
- the context-relative or absolute URL to redirect to or
null
for no redirect. - Throws:
ServletException
-
getRedirectType
public int getRedirectType()Description copied from class:WebPage
Gets the redirect type, defaults to 302 (temporary).- Overrides:
getRedirectType
in classWebPage
-
getUrlPath
Description copied from class:WebPage
Gets the context-relative path for the URL.- Overrides:
getUrlPath
in classWebPage
-
getDescription
Description copied from class:WebPage
Gets the description of this page. By default, the description of the parent page is used. May not contain HTML.- Overrides:
getDescription
in classWebPage
-
getKeywords
Description copied from class:WebPage
Gets the keywords for this page. By default, no keywords.- Overrides:
getKeywords
in classWebPage
-
getTitle
Description copied from class:WebPage
Gets the title of the web page in order to generate the HTML. The title defaults to that of the parent page.
-