T - Context type.public class AnnotatedLargeText<T>
extends org.kohsuke.stapler.framework.io.LargeText
LargeText that handles annotations by ConsoleAnnotator.
In addition to run each line through ConsoleAnnotationOutputStream for adding markup,
this class persists ConsoleAnnotator into a byte sequence and send it to the client
as an HTTP header. The client JavaScript sends it back next time it fetches the following output.
The serialized ConsoleAnnotator is encrypted to avoid malicious clients from instantiating
arbitrary ConsoleAnnotators.
| Constructor and Description |
|---|
AnnotatedLargeText(org.kohsuke.stapler.framework.io.ByteBuffer memory,
Charset charset,
boolean completed,
T context) |
AnnotatedLargeText(File file,
Charset charset,
boolean completed,
T context) |
| Modifier and Type | Method and Description |
|---|---|
void |
doProgressiveHtml(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
void |
doProgressiveText(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Aliasing what I think was a wrong name in
LargeText |
protected void |
setContentType(org.kohsuke.stapler.StaplerResponse rsp) |
long |
writeHtmlTo(long start,
Writer w) |
long |
writeLogTo(long start,
OutputStream out)
Strips annotations using a
PlainTextConsoleOutputStream. |
long |
writeLogTo(long start,
Writer w) |
long |
writeRawLogTo(long start,
OutputStream out)
Calls
LargeText.writeLogTo(long, OutputStream) without stripping annotations as writeLogTo(long, OutputStream) would. |
public AnnotatedLargeText(File file, Charset charset, boolean completed, T context)
public void doProgressiveHtml(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
IOExceptionpublic void doProgressiveText(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
LargeTextIOExceptionprotected void setContentType(org.kohsuke.stapler.StaplerResponse rsp)
setContentType in class org.kohsuke.stapler.framework.io.LargeTextpublic long writeLogTo(long start,
Writer w)
throws IOException
writeLogTo in class org.kohsuke.stapler.framework.io.LargeTextIOExceptionpublic long writeLogTo(long start,
OutputStream out)
throws IOException
PlainTextConsoleOutputStream.
writeLogTo in class org.kohsuke.stapler.framework.io.LargeTextIOExceptionpublic long writeRawLogTo(long start,
OutputStream out)
throws IOException
LargeText.writeLogTo(long, OutputStream) without stripping annotations as writeLogTo(long, OutputStream) would.IOExceptionpublic long writeHtmlTo(long start,
Writer w)
throws IOException
IOExceptionCopyright © 2019. All rights reserved.