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 ConsoleAnnotator
s.
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
IOException
public void doProgressiveText(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
LargeText
IOException
protected void setContentType(org.kohsuke.stapler.StaplerResponse rsp)
setContentType
in class org.kohsuke.stapler.framework.io.LargeText
@CheckReturnValue public long writeLogTo(long start, Writer w) throws IOException
writeLogTo
in class org.kohsuke.stapler.framework.io.LargeText
IOException
@CheckReturnValue public long writeLogTo(long start, OutputStream out) throws IOException
PlainTextConsoleOutputStream
.
writeLogTo
in class org.kohsuke.stapler.framework.io.LargeText
IOException
@CheckReturnValue public long writeRawLogTo(long start, OutputStream out) throws IOException
LargeText.writeLogTo(long, OutputStream)
without stripping annotations as writeLogTo(long, OutputStream)
would.IOException
@CheckReturnValue public long writeHtmlTo(long start, Writer w) throws IOException
IOException
Copyright © 2004–2021. All rights reserved.