org.globus.ftp.dc
Class AbstractDataChannel
java.lang.Object
org.globus.ftp.dc.AbstractDataChannel
- All Implemented Interfaces:
- DataChannel
- Direct Known Subclasses:
- SimpleDataChannel
public abstract class AbstractDataChannel
- extends Object
- implements DataChannel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
protected Session session
dataHandlers
protected static Map dataHandlers
AbstractDataChannel
public AbstractDataChannel(Session session)
registerHandler
public static void registerHandler(int transferMode,
int transferType,
int type,
Class clazz)
throws Exception
- Throws:
Exception
isDataSourceModeSupported
public boolean isDataSourceModeSupported()
- Tests if the client supports specified transfer type and mode
(the client can read data in specific type & mode from the
data connection)
isDataSinkModeSupported
public boolean isDataSinkModeSupported()
- Tests if the client supports specified transfer type and mode
(the client can write data in specific type & mode to the
data connection)
getDataChannelSource
public DataChannelReader getDataChannelSource(TransferContext context)
throws Exception
- Throws:
Exception
getDataChannelSink
public DataChannelWriter getDataChannelSink(TransferContext context)
throws Exception
- Throws:
Exception