Package hudson.console
Class AnnotatedLargeText<T>
java.lang.Object
org.kohsuke.stapler.framework.io.LargeText
hudson.console.AnnotatedLargeText<T>
- Type Parameters:
T- Context type.
public class AnnotatedLargeText<T>
extends org.kohsuke.stapler.framework.io.LargeText
Extension to
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.
- Since:
- 1.349
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields inherited from class org.kohsuke.stapler.framework.io.LargeText
charset -
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedLargeText(File file, Charset charset, boolean completed, T context) AnnotatedLargeText(org.kohsuke.stapler.framework.io.ByteBuffer memory, Charset charset, boolean completed, T context) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoProgressiveHtml(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) voiddoProgressiveHtml(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Deprecated.voiddoProgressiveText(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Aliasing what I think was a wrong name inLargeTextvoiddoProgressiveText(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Deprecated.protected voidsetContentType(org.kohsuke.stapler.StaplerResponse rsp) Deprecated.protected voidsetContentType(org.kohsuke.stapler.StaplerResponse2 rsp) longwriteHtmlTo(long start, Writer w) longwriteLogTo(long start, OutputStream out) Strips annotations using aPlainTextConsoleOutputStream.longwriteLogTo(long start, Writer w) longwriteRawLogTo(long start, OutputStream out) CallsLargeText.writeLogTo(long, OutputStream)without stripping annotations aswriteLogTo(long, OutputStream)would.Methods inherited from class org.kohsuke.stapler.framework.io.LargeText
createWriter, createWriter, doProgressText, doProgressText, isComplete, length, markAsComplete, readAll
-
Constructor Details
-
AnnotatedLargeText
-
AnnotatedLargeText
-
-
Method Details
-
doProgressiveHtml
public void doProgressiveHtml(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException - Throws:
IOException- Since:
- 2.475
-
doProgressiveHtml
@Deprecated @StaplerNotDispatchable public void doProgressiveHtml(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException Deprecated.- Throws:
IOException
-
doProgressiveText
public void doProgressiveText(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException Aliasing what I think was a wrong name inLargeText- Throws:
IOException- Since:
- 2.475
-
doProgressiveText
@Deprecated public void doProgressiveText(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException Deprecated.- Throws:
IOException
-
setContentType
protected void setContentType(org.kohsuke.stapler.StaplerResponse2 rsp) - Overrides:
setContentTypein classorg.kohsuke.stapler.framework.io.LargeText- Since:
- 2.475
-
setContentType
Deprecated.- Overrides:
setContentTypein classorg.kohsuke.stapler.framework.io.LargeText
-
writeLogTo
- Overrides:
writeLogToin classorg.kohsuke.stapler.framework.io.LargeText- Throws:
IOException
-
writeLogTo
Strips annotations using aPlainTextConsoleOutputStream.- Overrides:
writeLogToin classorg.kohsuke.stapler.framework.io.LargeText- Throws:
IOException
-
writeRawLogTo
CallsLargeText.writeLogTo(long, OutputStream)without stripping annotations aswriteLogTo(long, OutputStream)would.- Throws:
IOException- Since:
- 1.577
-
writeHtmlTo
- Throws:
IOException
-
doProgressiveHtml(StaplerRequest2, StaplerResponse2)