Package com.unitesk.aspectrace.html
Class HtmlReportPage.Streamable
- java.lang.Object
-
- com.unitesk.aspectrace.ReportEntity
-
- com.unitesk.aspectrace.html.ReportPage
-
- com.unitesk.aspectrace.html.HtmlReportPage
-
- com.unitesk.aspectrace.html.HtmlReportPage.Streamable
-
- Direct Known Subclasses:
FsmGraphProcessor.FsmPage
- Enclosing class:
- HtmlReportPage
public abstract static class HtmlReportPage.Streamable extends HtmlReportPage
A streamable page. If the methoduseStream()
returnsfalse
then the page behaves like a normal page.
Otherwise the methodgeneratePageBody(PrintWriter)
is never called. The methodstartBody(PrintWriter)
prepares a stream generation of a main page body. The methodfinishBody(PrintWriter)
finishes all necessary generation of the body page.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.unitesk.aspectrace.html.HtmlReportPage
HtmlReportPage.Streamable
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.PrintWriter
pw
-
Fields inherited from class com.unitesk.aspectrace.html.HtmlReportPage
pageRefs
-
Fields inherited from class com.unitesk.aspectrace.html.ReportPage
DEFAULT_CHARSET
-
-
Constructor Summary
Constructors Constructor Description Streamable()
Streamable(java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishBody(java.io.PrintWriter pw)
Ends body generation.void
finishGeneration(java.io.PrintWriter pw)
Ends page generation.void
generatePageBody(java.io.PrintWriter pw)
Generates a page body.void
startBody(java.io.PrintWriter pw)
Starts body generation.void
startGeneration(java.io.PrintWriter pw)
Saves PrintWriter and starts page generation.boolean
useStream()
If method returns false then page behaves like a normal page.-
Methods inherited from class com.unitesk.aspectrace.html.HtmlReportPage
addPageRef, addPageRef, encodeSimple, generate, generateHeadContents, generatePage, generatePageHead, generatePageTail, generateRef, generateRefs, generateRefSection, generateTextRef, getCharset, getGenerator, getMasterPage, getParentMark, getParentPage, getPath, getRelativeRef, getStyle, getTitle, setMasterPage, setParent, setStyle, setTitle
-
Methods inherited from class com.unitesk.aspectrace.html.ReportPage
buildRefs, getRelativePath, getRelativePathFrom, getRelativePathFrom, getRelativePathTo, getRelativePathTo, setCharset, setGenerator, setPath
-
Methods inherited from class com.unitesk.aspectrace.ReportEntity
getAspect, getAssociatedChannel, getTagMarks, setAssociatedChannel, setTagMarks
-
-
-
-
Method Detail
-
useStream
public boolean useStream()
If method returns false then page behaves like a normal page.
-
generatePageBody
public void generatePageBody(java.io.PrintWriter pw)
Generates a page body. The method would be called only ifuseStream()
== false- Specified by:
generatePageBody
in classHtmlReportPage
-
startGeneration
public void startGeneration(java.io.PrintWriter pw)
Saves PrintWriter and starts page generation.Standard scheme:
Head
startBody()
-
finishGeneration
public void finishGeneration(java.io.PrintWriter pw)
Ends page generation.Standard scheme:
finishBody()
RefSection
Tail
-
startBody
public void startBody(java.io.PrintWriter pw)
Starts body generation.
-
finishBody
public void finishBody(java.io.PrintWriter pw)
Ends body generation.
-
-