hudson.model
Class FullDuplexHttpChannel

java.lang.Object
  extended by hudson.model.FullDuplexHttpChannel

public abstract class FullDuplexHttpChannel
extends Object

Builds a Channel on top of two HTTP streams (one used for each direction.)

Author:
Kohsuke Kawaguchi

Field Summary
static boolean DIY_CHUNKING
          Set to true if the servlet container doesn't support chunked encoding.
 
Constructor Summary
FullDuplexHttpChannel(UUID uuid, boolean restricted)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIY_CHUNKING

public static boolean DIY_CHUNKING
Set to true if the servlet container doesn't support chunked encoding.

Constructor Detail

FullDuplexHttpChannel

public FullDuplexHttpChannel(UUID uuid,
                             boolean restricted)
                      throws IOException
Throws:
IOException
Method Detail

download

public void download(org.kohsuke.stapler.StaplerRequest req,
                     org.kohsuke.stapler.StaplerResponse rsp)
              throws InterruptedException,
                     IOException
This is where we send the data to the client.

If this connection is lost, we'll abort the channel.

Throws:
InterruptedException
IOException

main

protected abstract void main(hudson.remoting.Channel channel)
                      throws IOException,
                             InterruptedException
Throws:
IOException
InterruptedException

upload

public void upload(org.kohsuke.stapler.StaplerRequest req,
                   org.kohsuke.stapler.StaplerResponse rsp)
            throws InterruptedException,
                   IOException
This is where we receive inputs from the client.

Throws:
InterruptedException
IOException

getChannel

public hudson.remoting.Channel getChannel()


Copyright © 2004-2013. All Rights Reserved.