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
  • Constructor Details

    • AnnotatedLargeText

      public AnnotatedLargeText(File file, Charset charset, boolean completed, T context)
    • AnnotatedLargeText

      public AnnotatedLargeText(org.kohsuke.stapler.framework.io.ByteBuffer memory, Charset charset, boolean completed, T context)
  • Method Details