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.AutoListPage
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig
- Direct Known Subclasses:
DescriptionAutoListPage
Automatically generates a list of all pages.
- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
FieldsFields inherited from class com.aoapps.web.framework.WebPage
emptyWebPageArray, reHTMLPattern, SEARCH_TWO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<__ extends FlowContent<__>>
voiddoGet(WebSiteRequest req, HttpServletResponse resp, WebPageLayout layout, __ flow) By default, GET provides no content.<__ extends FlowContent<__>>
__printContentStart(WebSiteRequest req, HttpServletResponse resp, WebPageLayout layout, ContentEE<?> content, __ contentLine) Prints the content that will be put before the auto-generated list.static voidprintPageList(Union_TBODY_THEAD_TFOOT<?> tbody, WebSiteRequest req, HttpServletResponse resp, WebPage[] pages, WebPageLayout layout) Prints a list of pages.static voidprintPageList(Union_TBODY_THEAD_TFOOT<?> tbody, WebSiteRequest req, HttpServletResponse resp, WebPage parent, WebPageLayout layout) Prints an unordered list of the available pages.Methods inherited from class com.aoapps.web.framework.WebPage
canAccess, configureResources, doGet, doGet, doGet, doPost, doPost, doPost, doPost, doPostWithSearch, equals, equals, generateUrlPath, getAuthor, getAuthorHref, getAutonli, getCachedChildren, getChildren, getClassLastModified, getContentValign, getCopyright, getDescription, getDoctype, getDocument, getHtmlOutputStream, getIndent, getJavascriptSrc, getKeywords, getLastModified, getLastModified, getLastModifiedRecursive, getLastModifiedRecursive, getNavImageAlt, getNavImageSuffix, getNavImageUrl, getNextPage, getOnloadScript, getPageIndexInParent, getParent, getPreferredContentWidth, getPreviousPage, getRedirectType, getRedirectUrl, getRootPage, getSearchLastModified, getSerialization, getServletContext, getShortTitle, getTitle, getUptime, getUrlParams, getUrlPath, getUrlPattern, getWebPage, getWebPage, getWebPage, getWebPage, getWebPage, getWebPage, getWebPageAndChildrenLastModified, getWebPageLayout, getWebSiteRequest, 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
-
Field Details
-
NUM_COLS
public static final int NUM_COLSThe number of columns in each row.- See Also:
-
-
Constructor Details
-
AutoListPage
public AutoListPage()
-
-
Method Details
-
doGet
public <__ extends FlowContent<__>> void doGet(WebSiteRequest req, HttpServletResponse resp, WebPageLayout layout, __ flow) throws ServletException, IOException Description copied from class:WebPageBy default, GET provides no content.- 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:
-
printContentStart
public <__ extends FlowContent<__>> __ printContentStart(WebSiteRequest req, HttpServletResponse resp, WebPageLayout layout, ContentEE<?> content, __ contentLine) throws ServletException, IOException Prints the content that will be put before the auto-generated list.- Returns:
- The current
contentLine, which may have been replaced by a call toWebPageLayout.contentVerticalDivider(com.aoapps.web.framework.WebSiteRequest, javax.servlet.http.HttpServletResponse, com.aoapps.html.servlet.FlowContent)orWebPageLayout.contentVerticalDivider(com.aoapps.web.framework.WebSiteRequest, javax.servlet.http.HttpServletResponse, com.aoapps.html.servlet.FlowContent, int, int, int, java.lang.String, java.lang.String). - Throws:
ServletExceptionIOException
-
printPageList
public static void printPageList(Union_TBODY_THEAD_TFOOT<?> tbody, WebSiteRequest req, HttpServletResponse resp, WebPage[] pages, WebPageLayout layout) throws ServletException, IOException Prints a list of pages.- Throws:
ServletExceptionIOException
-
printPageList
public static void printPageList(Union_TBODY_THEAD_TFOOT<?> tbody, WebSiteRequest req, HttpServletResponse resp, WebPage parent, WebPageLayout layout) throws ServletException, IOException Prints an unordered list of the available pages.- Throws:
ServletExceptionIOException
-
