|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.httpio.TransferHandler
public class TransferHandler
A handler that transfers data from a Transferable to a socket channel. Since file transfers may take time we run in a separate thread.
| Constructor Summary | |
|---|---|
TransferHandler(NioHandler nioHandler,
Transferable t,
java.nio.channels.SocketChannel channel,
TrafficLogger tlFrom,
TrafficLogger tlTo,
TransferListener listener)
Create a new TransferHandler |
|
| Method Summary | |
|---|---|
void |
run()
|
void |
transfer()
Start the data transfer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransferHandler(NioHandler nioHandler,
Transferable t,
java.nio.channels.SocketChannel channel,
TrafficLogger tlFrom,
TrafficLogger tlTo,
TransferListener listener)
nioHandler - the NioHandler to use for network and background taskst - the resource to transferchannel - the Channel to transfer the resource totlFrom - the network statistics for the sourcetlTo - the network statistics for the sinklistener - the listener that will be notified when the transfer has
completed| Method Detail |
|---|
public void transfer()
public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||