|
||||||||
| 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.TreePage
public abstract class TreePage
| Field Summary | |
|---|---|
static java.lang.String |
MODE_AUTO
Indicates the TreePage should automatically select the correct mode, this is the default if the parameter is not provided. |
static java.lang.String |
MODE_GUI
Indicates the TreePage should display its contents in an interactive format. |
static java.lang.String |
MODE_TEXT
Indicates the TreePage should display its contents in a text-only format. |
static int |
TREE_LINE_COLOR
The color of the lines. |
static java.lang.String |
TREEPAGE_MODE
The parameter name to control the TreePage display mode. |
| Fields inherited from class com.aoindustries.website.framework.WebPage |
|---|
emptyWebPageArray, reHTMLPattern |
| Fields inherited from class com.aoindustries.website.framework.ErrorReportingServlet |
|---|
BUFFER_SIZE |
| Constructor Summary | |
|---|---|
TreePage(LoggerAccessor loggerAccessor)
|
|
TreePage(LoggerAccessor loggerAccessor,
java.lang.Object param)
|
|
TreePage(WebSiteRequest req)
|
|
| Method Summary | |
|---|---|
void |
doGet(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
By default, GET provides no content. |
void |
doGet(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
The layout is automatically applied to the page, then doGet is called. |
protected void |
doPost(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
By default, a post request is just sets up the content beginning and calls doPost |
long |
getLastModified(WebSiteRequest req)
The getLastModified defaults to -1. |
long |
getSearchLastModified()
Gets the last modified time for search indexing. |
protected abstract java.util.List<TreePageData> |
getTree(WebSiteRequest req)
Gets the tree to be displayed. |
static java.lang.String |
replaceHTML(java.lang.String S)
|
protected boolean |
useCodeFont(WebSiteRequest req)
|
abstract boolean |
useSmoothOutline(WebSiteRequest req)
|
| 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 |
| Field Detail |
|---|
public static final int TREE_LINE_COLOR
public static final java.lang.String TREEPAGE_MODE
public static final java.lang.String MODE_AUTO
public static final java.lang.String MODE_TEXT
public static final java.lang.String MODE_GUI
| Constructor Detail |
|---|
public TreePage(LoggerAccessor loggerAccessor)
public TreePage(WebSiteRequest req)
public TreePage(LoggerAccessor loggerAccessor,
java.lang.Object param)
| Method Detail |
|---|
public void doGet(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException
WebPagedoGet is called. To not have this automatically applied,
override this method. By the time this method is called, security checks, authentication, and redirects have been done.
doGet in class WebPagejavax.servlet.ServletException
java.io.IOException
java.sql.SQLExceptionWebPage.doGet(ChainWriter,WebSiteRequest,HttpServletResponse)
public long getSearchLastModified()
throws java.io.IOException,
java.sql.SQLException
WebPage-1,
no search index is built. This defaults to be a call to getLastModified
with a null WebSiteRequest.
getSearchLastModified in class WebPagejava.io.IOException
java.sql.SQLExceptionpublic long getLastModified(WebSiteRequest req)
WebPagegetLastModified defaults to -1.
getLastModified in class WebPage
public void doGet(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException,
java.sql.SQLException
WebPage
doGet in class WebPageout - the ChainWriter to send output toreq - the current WebSiteRequestresp - the HttpServletResponse for this request, is null when searching
java.io.IOException
java.sql.SQLException
protected void doPost(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException,
java.sql.SQLException
WebPagedoPost
doPost in class WebPagereq - the current WebSiteRequestresp - the HttpServletResponse for this request
java.io.IOException
java.sql.SQLExceptionWebPage.doPost(ChainWriter,WebSiteRequest,HttpServletResponse)
protected abstract java.util.List<TreePageData> getTree(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLExceptionprotected boolean useCodeFont(WebSiteRequest req)
public abstract boolean useSmoothOutline(WebSiteRequest req)
public static java.lang.String replaceHTML(java.lang.String S)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||