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 voiddoGet(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 voiddoPost(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 ornullfor none.intGets 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 WebSiteRequestGets theWebSiteRequestthat 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, useSiteMapMethods inherited from class com.aoapps.web.resources.servlet.PageServlet
serviceMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTraceMethods 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:WebPageGets theWebSiteRequestthat handles authentication and other details of this site.- Specified by:
getWebSiteRequestin classWebPage- Throws:
ServletException
-
getParent
Description copied from class:WebPageGets the parent of this page ornullfor none. -
doGet
public final void doGet(WebSiteRequest req, HttpServletResponse resp, DocumentEE document) throws ServletException, IOException Never do GET, redirect-only.- Overrides:
doGetin classWebPage- Parameters:
req- theWebSiteRequestfor this request, ornullwhen searchingresp- theHttpServletResponsefor this request, ornullwhen searchingdocument- theDocumentEEto send output to- Throws:
ServletExceptionIOException- 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:
doGetin classWebPage- Parameters:
req- theWebSiteRequestfor this request, ornullwhen searchingresp- theHttpServletResponsefor this request, ornullwhen searchinglayout- theWebPageLayoutthat has been appliedflow- theFlowContentto send output to- Throws:
ServletExceptionIOException- See Also:
-
doPost
public final void doPost(WebSiteRequest req, HttpServletResponse resp, DocumentEE document) throws ServletException, IOException Never do POST, redirect-only.- Overrides:
doPostin classWebPage- Parameters:
req- theWebSiteRequestfor this request, ornullwhen searchingresp- theHttpServletResponsefor this request, ornullwhen searchingdocument- theDocumentEEto send output to- Throws:
ServletExceptionIOException- 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:
doPostin classWebPage- Parameters:
req- the currentWebSiteRequestresp- theHttpServletResponsefor this requestlayout- theWebPageLayoutthat has been appliedflow- theFlowContentto send output to- Throws:
ServletExceptionIOException- See Also:
-
getRedirectUrl
Description copied from class:WebPageGets the absolute or context-relative URL to direct to.- Overrides:
getRedirectUrlin classWebPage- Returns:
- the context-relative or absolute URL to redirect to or
nullfor no redirect. - Throws:
ServletException
-
getRedirectType
public int getRedirectType()Description copied from class:WebPageGets the redirect type, defaults to 302 (temporary).- Overrides:
getRedirectTypein classWebPage
-
getUrlPath
Description copied from class:WebPageGets the context-relative path for the URL.- Overrides:
getUrlPathin classWebPage
-
getDescription
Description copied from class:WebPageGets the description of this page. By default, the description of the parent page is used. May not contain HTML.- Overrides:
getDescriptionin classWebPage
-
getKeywords
Description copied from class:WebPageGets the keywords for this page. By default, no keywords.- Overrides:
getKeywordsin classWebPage
-
getTitle
Description copied from class:WebPageGets the title of the web page in order to generate the HTML. The title defaults to that of the parent page.
-
