public abstract class FullDuplexHttpChannel extends Object
Channel
on top of two HTTP streams (one used for each direction.)Modifier and Type | Field and Description |
---|---|
static long |
CONNECTION_TIMEOUT
Controls the time out of waiting for the 2nd HTTP request to arrive.
|
static boolean |
DIY_CHUNKING
Set to true if the servlet container doesn't support chunked encoding.
|
Constructor and Description |
---|
FullDuplexHttpChannel(UUID uuid,
boolean restricted) |
Modifier and Type | Method and Description |
---|---|
void |
download(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
This is where we send the data to the client.
|
hudson.remoting.Channel |
getChannel() |
protected abstract void |
main(hudson.remoting.Channel channel) |
void |
upload(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
This is where we receive inputs from the client.
|
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static boolean DIY_CHUNKING
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static long CONNECTION_TIMEOUT
public FullDuplexHttpChannel(UUID uuid, boolean restricted) throws IOException
IOException
public void download(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws InterruptedException, IOException
If this connection is lost, we'll abort the channel.
InterruptedException
IOException
protected abstract void main(hudson.remoting.Channel channel) throws IOException, InterruptedException
IOException
InterruptedException
public void upload(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws InterruptedException, IOException
InterruptedException
IOException
public hudson.remoting.Channel getChannel()
Copyright © 2015. All rights reserved.