public abstract class FullDuplexHttpService extends Object
FullDuplexHttpStream
.Modifier and Type | Class and Description |
---|---|
static class |
FullDuplexHttpService.Response
HTTP response that allows a client to use this service.
|
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.
|
protected UUID |
uuid |
Modifier | Constructor and Description |
---|---|
protected |
FullDuplexHttpService(UUID uuid) |
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.
|
protected abstract void |
run(InputStream upload,
OutputStream download) |
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
protected final UUID uuid
protected FullDuplexHttpService(UUID uuid)
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 run(InputStream upload, OutputStream download) throws IOException, InterruptedException
IOException
InterruptedException
public void upload(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws InterruptedException, IOException
InterruptedException
IOException
Copyright © 2004–2017. All rights reserved.