rabbit.httpio
Class BlockSender

java.lang.Object
  extended by rabbit.httpio.BaseSocketHandler
      extended by rabbit.httpio.BlockSender
All Implemented Interfaces:
SocketChannelHandler, WriteHandler

public class BlockSender
extends BaseSocketHandler
implements WriteHandler

A handler that writes data blocks.

Author:
Robert Olofsson

Constructor Summary
BlockSender(SocketChannel channel, NioHandler nioHandler, TrafficLogger tl, BufferHandle bufHandle, boolean chunking, BlockSentListener sender)
           
 
Method Summary
 void closed()
          Does nothing by default
 String getDescription()
           
 void timeout()
          Does nothing by default
 void write()
           
 
Methods inherited from class rabbit.httpio.BaseSocketHandler
closeDown, getBuffer, getBufferHandle, getChannel, getLogger, getTimeout, releaseBuffer, useSeparateThread, waitForRead, waitForWrite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.khelekore.rnio.SocketChannelHandler
getTimeout, useSeparateThread
 

Constructor Detail

BlockSender

public BlockSender(SocketChannel channel,
                   NioHandler nioHandler,
                   TrafficLogger tl,
                   BufferHandle bufHandle,
                   boolean chunking,
                   BlockSentListener sender)
            throws IOException
Throws:
IOException
Method Detail

getDescription

public String getDescription()
Specified by:
getDescription in interface SocketChannelHandler
Overrides:
getDescription in class BaseSocketHandler

timeout

public void timeout()
Description copied from class: BaseSocketHandler
Does nothing by default

Specified by:
timeout in interface SocketChannelHandler
Overrides:
timeout in class BaseSocketHandler

closed

public void closed()
Description copied from class: BaseSocketHandler
Does nothing by default

Specified by:
closed in interface SocketChannelHandler
Overrides:
closed in class BaseSocketHandler

write

public void write()
Specified by:
write in interface WriteHandler