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.InputStreamPage
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
- Direct Known Subclasses:
HtmlInputStreamPage
,ProcessPage
Reads everything from an input stream and puts it into a page.
The input stream must be encoded as
AnyDocument.ENCODING
.- 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.abstract InputStream
Gets the stream that the text should be read from.<__ extends FlowContent<__>>
__printStream
(WebSiteRequest req, HttpServletResponse resp, WebPageLayout layout, ContentEE<?> content, __ contentLine, InputStream in) Stream input to servlet output.static void
printStreamStatic
(Content<?, ?> content, InputStream in) 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, 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
-
InputStreamPage
public InputStreamPage()
-
-
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:
-
getInputStream
Gets the stream that the text should be read from.- Throws:
IOException
-
printStream
public <__ extends FlowContent<__>> __ printStream(WebSiteRequest req, HttpServletResponse resp, WebPageLayout layout, ContentEE<?> content, __ contentLine, InputStream in) throws ServletException, IOException Stream input to servlet output.- 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:
ServletException
IOException
-
printStreamStatic
- Throws:
IOException
-