Package jenkins.util

Class FullDuplexHttpService

java.lang.Object
jenkins.util.FullDuplexHttpService
Direct Known Subclasses:
FullDuplexHttpChannel

public abstract class FullDuplexHttpService extends Object
Server-side counterpart to FullDuplexHttpStream.

To use, bind this to an endpoint with RootAction (you will also need a CrumbExclusion).

Since:
2.54
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    HTTP response that allows a client to use this service.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static long
    Controls the time out of waiting for the 2nd HTTP request to arrive.
    static boolean
    Set to true if the servlet container doesn't support chunked encoding.
    protected final UUID
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    download(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp)
    This is where we send the data to the client.
    protected abstract void
    run(InputStream upload, OutputStream download)
     
    void
    upload(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp)
    This is where we receive inputs from the client.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DIY_CHUNKING

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static boolean DIY_CHUNKING
      Set to true if the servlet container doesn't support chunked encoding.
    • CONNECTION_TIMEOUT

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static long CONNECTION_TIMEOUT
      Controls the time out of waiting for the 2nd HTTP request to arrive.
    • uuid

      protected final UUID uuid
  • Constructor Details

    • FullDuplexHttpService

      protected FullDuplexHttpService(UUID uuid)
  • Method Details