|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.aoindustries.website.framework.ErrorReportingServlet
com.aoindustries.website.framework.WebPage
com.aoindustries.website.framework.RedirectWebPage
public class RedirectWebPage
Redirects to the configured URL.
| Field Summary |
|---|
| Fields inherited from class com.aoindustries.website.framework.WebPage |
|---|
emptyWebPageArray, reHTMLPattern |
| Fields inherited from class com.aoindustries.website.framework.ErrorReportingServlet |
|---|
BUFFER_SIZE |
| Constructor Summary | |
|---|---|
RedirectWebPage(LoggerAccessor logAccessor,
javax.servlet.ServletContext context,
WebPage parent,
java.lang.String path,
boolean useEncryption,
java.lang.String description,
java.lang.String keywords,
java.lang.String navImageAlt,
java.lang.String title)
Performs a redirect. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Gets the description of this page. |
java.lang.String |
getKeywords()
Gets the keywords for this page. |
java.lang.String |
getNavImageAlt(WebSiteRequest req)
Gets the text for the navigation image to use to represent this page. |
WebPage |
getParent()
Gets the parent of this page or null for none. |
java.lang.String |
getRedirectURL(WebSiteRequest req)
Gets the URL to direct to. |
java.lang.String |
getTitle()
Gets the title of the web page in order to generate the HTML. |
java.lang.String |
getURLPath()
Gets the path of for the URL relative to the top of the site. |
protected WebSiteRequest |
getWebSiteRequest(javax.servlet.http.HttpServletRequest req)
Gets the WebSiteRequest that handles authentication and other details
of this site. |
boolean |
useEncryption()
Determines if this page should be sent encrypted. |
| Methods inherited from class com.aoindustries.website.framework.ErrorReportingServlet |
|---|
doGet, doPost, getGetCount, getLastModified, getLastModifiedCount, getLogger, getLogger, getLogger, getLoggerAccessor, getPostCount, getUptime, log, log |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, init |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RedirectWebPage(LoggerAccessor logAccessor,
javax.servlet.ServletContext context,
WebPage parent,
java.lang.String path,
boolean useEncryption,
java.lang.String description,
java.lang.String keywords,
java.lang.String navImageAlt,
java.lang.String title)
path - the path relative to the top of the application, without a preceeding slash (/)| Method Detail |
|---|
protected WebSiteRequest getWebSiteRequest(javax.servlet.http.HttpServletRequest req)
throws java.io.IOException,
java.sql.SQLException
WebPageWebSiteRequest that handles authentication and other details
of this site.
getWebSiteRequest in class WebPagejava.io.IOException
java.sql.SQLExceptionpublic WebPage getParent()
WebPagenull for none.
getParent in class WebPagepublic boolean useEncryption()
WebPage
useEncryption in class WebPage
public java.lang.String getRedirectURL(WebSiteRequest req)
throws java.io.IOException
WebPage
getRedirectURL in class WebPagenull for
no redirect.
java.io.IOExceptionpublic java.lang.String getURLPath()
WebPage
getURLPath in class WebPagepublic java.lang.String getDescription()
WebPage
getDescription in class WebPagepublic java.lang.String getKeywords()
WebPage
getKeywords in class WebPagepublic java.lang.String getNavImageAlt(WebSiteRequest req)
WebPagegetShortTitle.
getNavImageAlt in class WebPageWebPage.getShortTitle(),
WebPage.getNavImageSuffix(com.aoindustries.website.framework.WebSiteRequest),
WebPage.getNavImageURL(com.aoindustries.website.framework.WebSiteRequest, javax.servlet.http.HttpServletResponse, java.lang.Object)public java.lang.String getTitle()
WebPage
getTitle in class WebPage
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||