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.DumpURLs
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
Generates a list of all URLs in the site. This is useful for adding this site to
search engines.
- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Fields 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.Gets the description of this page.Gets the keywords for this page.long
getLastModified
(WebSiteRequest req, HttpServletResponse resp) The last modified time is -1 to always reload the list.long
Gets the last modified time for search indexing.getTitle
(WebSiteRequest req) Gets the title of the web page in order to generate the HTML.void
search
(String[] words, WebSiteRequest req, HttpServletResponse response, List<SearchResult> results, CharArrayWriter buffer, Set<WebPage> finishedPages) Do not include this in the search results.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, getDoctype, getDocument, getHtmlOutputStream, getIndent, getJavascriptSrc, getLastModified, getLastModifiedRecursive, getLastModifiedRecursive, getNavImageAlt, getNavImageSuffix, getNavImageUrl, getNextPage, getOnloadScript, getPageIndexInParent, getParent, getPreferredContentWidth, getPreviousPage, getRedirectType, getRedirectUrl, getRootPage, getSerialization, getServletContext, getShortTitle, getUptime, getUrlParams, getUrlPath, getUrlPattern, getWebPage, getWebPage, getWebPage, getWebPage, getWebPage, getWebPage, getWebPageAndChildrenLastModified, getWebPageLayout, getWebSiteRequest, hashCode, includeNavImageAsParent, isHandler, isHandler, loadClass, printLoginForm, printUnauthorizedPage, 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
-
DumpURLs
public DumpURLs()
-
-
Method Details
-
doGet
public <__ extends FlowContent<__>> void doGet(WebSiteRequest req, HttpServletResponse resp, WebPageLayout layout, __ flow) throws ServletException, IOException Description copied from class:WebPage
By default, GET provides no content.- 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:
-
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
-
getLastModified
The last modified time is -1 to always reload the list.- Overrides:
getLastModified
in classWebPage
- Throws:
ServletException
-
search
public void search(String[] words, WebSiteRequest req, HttpServletResponse response, List<SearchResult> results, CharArrayWriter buffer, Set<WebPage> finishedPages) Do not include this in the search results. -
getSearchLastModified
Description copied from class:WebPage
Gets the last modified time for search indexing. The index will be recreated if the search last modified time is changed. If this method returns-1
, no search index is built. This defaults to be a call togetLastModified
with nullWebSiteRequest
andHttpServletResponse
.- Overrides:
getSearchLastModified
in classWebPage
- Throws:
ServletException
-
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.
-