|
||||||||
| 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
public abstract class WebPage
The main web page provides the overall layout of the site. The rest of
the site overrides methods of this class, but cannot override the
reportingDoGet, reportingDoPost, or
reportingGetLastModified methods.
| Field Summary | |
|---|---|
protected static WebPage[] |
emptyWebPageArray
An empty array of WebPage objects to be used in returning no web pages. |
static gnu.regexp.RE |
reHTMLPattern
|
| Fields inherited from class com.aoindustries.website.framework.ErrorReportingServlet |
|---|
BUFFER_SIZE |
| Constructor Summary | |
|---|---|
WebPage(LoggerAccessor loggerAccessor)
|
|
WebPage(LoggerAccessor loggerAccessor,
java.lang.Object param)
|
|
WebPage(WebSiteRequest req)
|
|
| Method Summary | |
|---|---|
boolean |
canAccess(WebSiteUser user)
Determines if the provided user can access the page. |
void |
doGet(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
By default, GET provides no content. |
protected void |
doGet(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
The layout is automatically applied to the page, then doGet is called. |
protected void |
doPost(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
By default, a post request just calls doGet |
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 |
protected void |
doPostWithSearch(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
Handles any search posts, sends everything else on to doPost(WebSiteRequest,HttpServletResponse). |
boolean |
enforceEncryption()
Gets whether this page should enforce the current encrpyption requirement or not. |
boolean |
equals(java.lang.Object O)
Determines if this page equals another page. |
boolean |
equals(WebPage other)
Determines if this page equals another page. |
java.lang.String |
generateURLPath(WebPage page)
Generates a URL path for this or another page, please call getURLPath() instead. |
java.lang.String[] |
getAdditionalHeaders(WebSiteRequest req)
Gets additional headers for this page. |
java.lang.String |
getAuthor()
Gets the author of this page. |
WebPage[] |
getCachedPages(WebSiteRequest req)
Gets all of the pages that are children of this one in the page hierarchy. |
protected long |
getClassLastModified()
Gets the last modified time of the java class file. |
static long |
getClassLoaderUptime()
Gets the time that the classloader was instantiated. |
java.lang.String |
getContentVAlign(WebSiteRequest req)
Gets the vertical alignment of the content area. |
java.lang.String |
getCopyright(WebSiteRequest req,
WebPage requestPage)
Gets the copyright information for this page. |
java.lang.String |
getDescription()
Gets the description of this page. |
protected com.aoindustries.io.ChainWriter |
getHTMLChainWriter(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
Sets the content type, encoding to UTF-8, sets the additional headers, then returns the ChainWriter. |
protected java.io.OutputStream |
getHTMLOutputStream(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
Sets the content type, encoding to UTF-8, sets the additional headers, then returns the OutputStream. |
java.lang.Object |
getJavaScriptSrc(WebSiteRequest req)
Gets the JavaScript's that should have script src= tags generated, urls relative to top of context path/to/javascript.js. |
java.lang.String |
getKeywords()
Gets the keywords for this page. |
long |
getLastModified(WebSiteRequest req)
The getLastModified defaults to -1. |
static long |
getLastModifiedRecursive(java.io.File file)
Recursively gets the most recent modification time of a file or directory. |
long |
getLastModifiedRecursive(WebSiteRequest req)
Recursively gets the most recent modification time. |
java.lang.String |
getNavImageAlt(WebSiteRequest req)
Gets the text for the navigation image to use to represent this page. |
java.lang.String |
getNavImageSuffix(WebSiteRequest req)
Gets the text that will be placed in to the right of the navigation image. |
java.lang.String |
getNavImageURL(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.Object params)
Gets the URL associated with a nav image. |
WebPage |
getNextPage(WebSiteRequest req)
Gets the WebPage that follows this one in the parents
list of pages. |
java.lang.String |
getOnloadScript(WebSiteRequest req)
Gets the JavaScript that should be executed with the onload event of the body tag |
int |
getPageIndexInParent(WebSiteRequest req)
Gets the index of this page in the parents list of children pages. |
abstract WebPage |
getParent()
Gets the parent of this page or null for none. |
int |
getPreferredContentWidth(WebSiteRequest req)
Gets the preferred width of this content in pixels or -1 for no preference. |
WebPage |
getPreviousPage(WebSiteRequest req)
Gets the WebPage that proceeds this one in the parents
list of pages. |
java.lang.String |
getRedirectURL(WebSiteRequest req)
Gets the URL to direct to. |
WebPage |
getRootPage()
Gets the root page in the web page hierarchy. |
long |
getSearchLastModified()
Gets the last modified time for search indexing. |
javax.servlet.ServletContext |
getServletContext()
|
java.lang.String |
getShortTitle()
A short title is used showing a path to the current location in the site. |
java.lang.String |
getTitle()
Gets the title of the web page in order to generate the HTML. |
java.lang.Object |
getURLParams(WebSiteRequest req)
Gets parameters that are added to the query string of URLs generated for this page. |
java.lang.String |
getURLPath()
Gets the path of for the URL relative to the top of the site. |
java.lang.String |
getURLPattern()
Gets the URL pattern for this page as used in web.xml. |
WebPage |
getWebPage(java.lang.Class<? extends WebPage> clazz,
java.lang.Object param)
|
WebPage |
getWebPage(java.lang.Class<? extends WebPage> clazz,
WebSiteRequest req)
|
static WebPage |
getWebPage(javax.servlet.ServletContext context,
java.lang.Class<? extends WebPage> clazz,
java.lang.Object params)
Gets an instance of WebPage given the Class. |
static WebPage |
getWebPage(javax.servlet.ServletContext context,
java.lang.Class<? extends WebPage> clazz,
WebSiteRequest req)
Gets an instance of WebPage given the Class. |
long |
getWebPageAndChildrenLastModified(WebSiteRequest req)
Gets the most recent last modified time of this page and its immediate children. |
WebPageLayout |
getWebPageLayout(WebSiteRequest req)
Gets the current layout for this page. |
protected WebPage[] |
getWebPages(WebSiteRequest req)
Gets all of the children pages of this one in the page hierarchy. |
protected abstract WebSiteRequest |
getWebSiteRequest(javax.servlet.http.HttpServletRequest req)
Gets the WebSiteRequest that handles authentication and other details
of this site. |
int |
hashCode()
The default hashcode for a page is the hashcode of its classname. |
boolean |
includeNavImageAsParent()
Determine if the nav image for this page should remain visible, even when its children are displayed. |
boolean |
isHandler(java.lang.Object O)
Determines if this page is the instance that represents a certain set of parameters. |
boolean |
isHandler(WebSiteRequest req)
Determines if this page is the instance that should handle a particular request. |
static java.lang.Class<? extends WebPage> |
loadClass(java.lang.String className)
Dynamically loads new classes based on the source .class file's modified time. |
void |
printLoginForm(WebPage page,
com.aoindustries.security.LoginException loginException,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
Prints the form that is used to login. |
void |
printUnauthorizedPage(WebPage page,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
Prints the unauthorized page message. |
protected void |
reportingDoGet(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse resp)
First, resolves correct instance of WebPage. |
protected void |
reportingDoPost(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse resp)
First, resolves correct instance of WebPage. |
long |
reportingGetLastModified(javax.servlet.http.HttpServletRequest httpReq)
First, resolves correct instance of WebPage. |
void |
search(java.lang.String[] words,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse response,
java.util.List<SearchResult> results,
com.aoindustries.io.BetterByteArrayOutputStream bytes,
java.util.List<WebPage> finishedPages)
Searches this WebPage and all of its subordinate pages, returning the matches in a ArrayList with five elements per match. |
boolean |
showInLocationPath(WebSiteRequest req)
Determines if this page will be displayed in the location bar. |
void |
standardSearch(java.lang.String[] words,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse response,
java.util.List<SearchResult> results,
com.aoindustries.io.BetterByteArrayOutputStream bytes,
java.util.List<WebPage> finishedPages)
The standard implementation of the search functionality. |
boolean |
useEncryption()
Determines if this page should be sent encrypted. |
boolean |
useNavImage()
Determines whether or not to display the page in the left navigation. |
boolean |
useSiteMap()
Determines if this page will be displayed in the standard site map. |
| 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 |
|---|
protected static final WebPage[] emptyWebPageArray
WebPage objects to be used in returning no web pages.
public static gnu.regexp.RE reHTMLPattern
| Constructor Detail |
|---|
public WebPage(LoggerAccessor loggerAccessor)
public WebPage(WebSiteRequest req)
public WebPage(LoggerAccessor loggerAccessor,
java.lang.Object param)
| Method Detail |
|---|
public boolean canAccess(WebSiteUser user)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public void printLoginForm(WebPage page,
com.aoindustries.security.LoginException loginException,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public void printUnauthorizedPage(WebPage page,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException
javax.servlet.ServletException
java.io.IOException
java.sql.SQLException
public final long reportingGetLastModified(javax.servlet.http.HttpServletRequest httpReq)
throws java.io.IOException,
java.sql.SQLException
WebPage. Then, if security mode
mismatches, authentication failed, or the page is a redirect, returns -1
for unknown. Otherwise, call getLastModified(WebSiteRequest)
reportingGetLastModified in class ErrorReportingServletjava.io.IOException
java.sql.SQLExceptiongetLastModified(WebSiteRequest)
public long getLastModified(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
getLastModified defaults to -1.
java.io.IOException
java.sql.SQLException
protected final long getClassLastModified()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLExceptionWebSiteFrameworkConfiguration.getServletDirectory(),
ErrorReportingServlet.getUptime()
public long getWebPageAndChildrenLastModified(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public final long getLastModifiedRecursive(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLExceptionpublic static long getLastModifiedRecursive(java.io.File file)
public long getSearchLastModified()
throws java.io.IOException,
java.sql.SQLException
-1,
no search index is built. This defaults to be a call to getLastModified
with a null WebSiteRequest.
java.io.IOException
java.sql.SQLException
protected final void reportingDoGet(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException
WebPage. Next, handles security
mode, authentication check, and redirects. Anything left goes on to doGet.
reportingDoGet in class ErrorReportingServletjavax.servlet.ServletException
java.io.IOException
java.sql.SQLExceptiondoGet(WebSiteRequest,HttpServletResponse)
protected void doGet(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException
doGet 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.
javax.servlet.ServletException
java.io.IOException
java.sql.SQLExceptiondoGet(ChainWriter,WebSiteRequest,HttpServletResponse)
public void doGet(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException
out - the ChainWriter to send output toreq - the current WebSiteRequestresp - the HttpServletResponse for this request, is null when searching
javax.servlet.ServletException
java.io.IOException
java.sql.SQLException
protected final void reportingDoPost(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException
WebPage. Then, handles
security mode, authentication check, and redirects. Anything left goes
on to doPostWithSearch.
reportingDoPost in class ErrorReportingServletjavax.servlet.ServletException
java.io.IOException
java.sql.SQLExceptiondoPostWithSearch(WebSiteRequest,HttpServletResponse)
protected void doPostWithSearch(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException
doPost(WebSiteRequest,HttpServletResponse).
The search assumes the search parameters of search_query and search_target. Both
these values must be present for a search to be performed. Search target may be either "this_area"
or "entire_site", defaulting to "area" for any other value.
javax.servlet.ServletException
java.io.IOException
java.sql.SQLExceptiondoPost(WebSiteRequest,HttpServletResponse)
protected void doPost(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException
doPost
req - the current WebSiteRequestresp - the HttpServletResponse for this request
javax.servlet.ServletException
java.io.IOException
java.sql.SQLExceptiondoPost(ChainWriter,WebSiteRequest,HttpServletResponse)
protected void doPost(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException
doGet
out - the ChainWriter to write toreq - the current WebSiteRequestresp - the HttpServletResponse for this request
javax.servlet.ServletException
java.io.IOException
java.sql.SQLExceptiondoGet(ChainWriter,WebSiteRequest,HttpServletResponse)
public boolean enforceEncryption()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLExceptionpublic final boolean equals(java.lang.Object O)
equals in class java.lang.Objectequals(WebPage)public boolean equals(WebPage other)
hashCode()public int hashCode()
hashCode in class java.lang.Objectequals(WebPage)public java.lang.String[] getAdditionalHeaders(WebSiteRequest req)
public java.lang.String getAuthor()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public int getPreferredContentWidth(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
-1 for no preference.
It is up to the WebPageLayout to make use of this value. The preferred width
defaults to the preferred width of the parent page.
java.io.IOException
java.sql.SQLExceptionWebPageLayoutpublic java.lang.String getContentVAlign(WebSiteRequest req)
"top".
It is up to the WebPageLayout to make use of this value.
WebPageLayout
public java.lang.String getDescription()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public final WebPage getRootPage()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
protected final com.aoindustries.io.ChainWriter getHTMLChainWriter(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
ChainWriter.
java.io.IOExceptiongetAdditionalHeaders(com.aoindustries.website.framework.WebSiteRequest)
protected final java.io.OutputStream getHTMLOutputStream(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
OutputStream.
java.io.IOExceptiongetAdditionalHeaders(com.aoindustries.website.framework.WebSiteRequest)
public java.lang.Object getJavaScriptSrc(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
path/to/javascript.js.
req - the current WebSiteRequest
String[] for multiple includes,
a String for one,
or null for none
java.io.IOException
java.sql.SQLException
public java.lang.String getKeywords()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public java.lang.String getNavImageAlt(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
getShortTitle.
java.io.IOException
java.sql.SQLExceptiongetShortTitle(),
getNavImageSuffix(com.aoindustries.website.framework.WebSiteRequest),
getNavImageURL(com.aoindustries.website.framework.WebSiteRequest, javax.servlet.http.HttpServletResponse, java.lang.Object)
public java.lang.String getNavImageSuffix(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
getNavImageAlt and getNavImageSuffix,
the beginning is truncated and ... appended so that both fit the image.
java.io.IOException
java.sql.SQLExceptiongetNavImageAlt(com.aoindustries.website.framework.WebSiteRequest),
getNavImageURL(com.aoindustries.website.framework.WebSiteRequest, javax.servlet.http.HttpServletResponse, java.lang.Object)
public java.lang.String getNavImageURL(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.Object params)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLExceptiongetNavImageAlt(com.aoindustries.website.framework.WebSiteRequest),
getNavImageSuffix(com.aoindustries.website.framework.WebSiteRequest),
ChainWriter#encodeJavaScriptStringInXml(String,Writer)
public final int getPageIndexInParent(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public final WebPage getNextPage(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
WebPage that follows this one in the parents
list of pages.
WebPage or null if not found
java.io.IOException
java.sql.SQLException
public final WebPage getPreviousPage(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
WebPage that proceeds this one in the parents
list of pages.
WebPage or null if not found
java.io.IOException
java.sql.SQLExceptionpublic java.lang.String getOnloadScript(WebSiteRequest req)
req - the current WebSiteRequest
String or null for none
public WebPage[] getCachedPages(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
WebPage[] for
faster access. The actual list of pages is obtained from getWebPages.
Pages will also not be cached if the configuration property is set to anything
other than "true"
WebPage[] of all of the lower-level pages
java.io.IOException
java.sql.SQLExceptionWebSiteFrameworkConfiguration.useWebSiteCaching(),
getWebPages(WebSiteRequest)
public abstract WebPage getParent()
throws java.io.IOException,
java.sql.SQLException
null for none.
java.io.IOException
java.sql.SQLException
public java.lang.String getRedirectURL(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
null for
no redirect.
java.io.IOException
java.sql.SQLException
public java.lang.String getShortTitle()
throws java.io.IOException,
java.sql.SQLException
getTitle.
java.io.IOException
java.sql.SQLExceptiongetTitle()
public java.lang.String getTitle()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public java.lang.Object getURLParams(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public WebPage getWebPage(java.lang.Class<? extends WebPage> clazz,
WebSiteRequest req)
throws java.io.IOException
java.io.IOExceptiongetWebPage(ServletContext,Class,WebSiteRequest)
public static WebPage getWebPage(javax.servlet.ServletContext context,
java.lang.Class<? extends WebPage> clazz,
WebSiteRequest req)
throws java.io.IOException
WebPage given the Class.
Instances returned should never have the init method
called and should allocate a minimal set of resources.
Unless caching is disabled, the generated pages are stored in a
cache and resolved using the pages isHandler method.
context - the context the servlet will be run inclazz - the Class to get an instance ofreq - the request details are used to select the right instance
WebPage object of the given class that matches the request settings
java.lang.IllegalArgumentException - if unable to create the instance
java.io.IOExceptionWebSiteFrameworkConfiguration.useWebSiteCaching(),
isHandler(WebSiteRequest)
public WebPage getWebPage(java.lang.Class<? extends WebPage> clazz,
java.lang.Object param)
throws java.io.IOException
java.io.IOExceptiongetWebPage(ServletContext,Class,Object)
public static WebPage getWebPage(javax.servlet.ServletContext context,
java.lang.Class<? extends WebPage> clazz,
java.lang.Object params)
throws java.io.IOException
WebPage given the Class.
Instances returned should never have the init method
called and should allocate a minimal set of resources.
Unless caching is disabled, the generated pages are stored in a
cache and resolved using the pages isHander method.
context - the context the servlet will be run inclazz - the Class to get an instance ofparams - the parameters used to select the right instance
WebPage object of the given class that matches the request settings
java.lang.IllegalArgumentException - if unable to create the instance
java.io.IOExceptionWebSiteFrameworkConfiguration.useWebSiteCaching(),
isHandler(Object)public static long getClassLoaderUptime()
public static java.lang.Class<? extends WebPage> loadClass(java.lang.String className)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public WebPageLayout getWebPageLayout(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
WebPageLayout
java.io.IOException
java.sql.SQLException
protected WebPage[] getWebPages(WebSiteRequest req)
throws java.io.IOException,
java.sql.SQLException
getCachedWebPages. Subclasses will override and disable the caching
provided by getCachedWebPages when appropriate.
WebPage[] of all of the lower-level pages
java.io.IOException
java.sql.SQLExceptiongetCachedPages(com.aoindustries.website.framework.WebSiteRequest),
emptyWebPageArraypublic boolean isHandler(WebSiteRequest req)
true, meaning it is a handler for all requests
for this Class.
getWebPage(ServletContext,Class,WebSiteRequest)public boolean isHandler(java.lang.Object O)
true, meaning it is a handler for any parameters
for this Class.
getWebPage(ServletContext,Class,Object)
protected abstract WebSiteRequest getWebSiteRequest(javax.servlet.http.HttpServletRequest req)
throws java.io.IOException,
java.sql.SQLException
WebSiteRequest that handles authentication and other details
of this site.
java.io.IOException
java.sql.SQLException
public void search(java.lang.String[] words,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse response,
java.util.List<SearchResult> results,
com.aoindustries.io.BetterByteArrayOutputStream bytes,
java.util.List<WebPage> finishedPages)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException
ArrayList with five elements per match.
String for the absolute URL (including settings)FloatstandardSearch
words - all of the words that must matchreq - the WebSiteRequest containing the users preferencesresults - the ArrayList that contains the resultsbytes - the SearchOutputStream to use for internal processing
javax.servlet.ServletException
java.io.IOException
java.sql.SQLExceptionstandardSearch(java.lang.String[], com.aoindustries.website.framework.WebSiteRequest, javax.servlet.http.HttpServletResponse, java.util.List, com.aoindustries.io.BetterByteArrayOutputStream, java.util.List)
public final void standardSearch(java.lang.String[] words,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse response,
java.util.List<SearchResult> results,
com.aoindustries.io.BetterByteArrayOutputStream bytes,
java.util.List<WebPage> finishedPages)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException
javax.servlet.ServletException
java.io.IOException
java.sql.SQLExceptionsearch(java.lang.String[], com.aoindustries.website.framework.WebSiteRequest, javax.servlet.http.HttpServletResponse, java.util.List, com.aoindustries.io.BetterByteArrayOutputStream, java.util.List)
public boolean useEncryption()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLExceptionpublic boolean includeNavImageAsParent()
false.
public boolean useNavImage()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLExceptionpublic boolean useSiteMap()
public boolean showInLocationPath(WebSiteRequest req)
public javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletConfiggetServletContext in class javax.servlet.GenericServlet
public java.lang.String getCopyright(WebSiteRequest req,
WebPage requestPage)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public java.lang.String getURLPath()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public java.lang.String generateURLPath(WebPage page)
throws java.io.IOException,
java.sql.SQLException
WebPage of a site must implement this method.
java.io.IOException
java.sql.SQLException
public java.lang.String getURLPattern()
throws java.io.IOException,
java.sql.SQLException
web.xml.
java.io.IOException
java.sql.SQLException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||