Java Globus API: Class SocketBox

org.globus.ftp.dc
Class SocketBox

java.lang.Object
  |
  +--org.globus.ftp.dc.SocketBox

public class SocketBox
extends Object

A container for Socket, making it available to pass a null socket reference. We use asynchronously active connect task to initialize socket, and active start transfer task to run it. We need to pass the socket reference, which is sometimes null (before initialization). This is a sane way to do it; a simple socket container.


Constructor Summary
SocketBox()
           
 
Method Summary
 Socket getSocket()
           
 void setSocket(Socket newSocket)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketBox

public SocketBox()
Method Detail

setSocket

public void setSocket(Socket newSocket)

getSocket

public Socket getSocket()