Package 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 java.lang.Object implements DataChannel
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Map
dataHandlers
protected Session
session
-
Constructor Summary
Constructors Constructor Description AbstractDataChannel(Session session)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataChannelWriter
getDataChannelSink(TransferContext context)
DataChannelReader
getDataChannelSource(TransferContext context)
boolean
isDataSinkModeSupported()
Tests if the client supports specified transfer type and mode (the client can write data in specific type and mode to the data connection)boolean
isDataSourceModeSupported()
Tests if the client supports specified transfer type and mode (the client can read data in specific type and mode from the data connection)static void
registerHandler(int transferMode, int transferType, int type, java.lang.Class clazz)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.globus.ftp.dc.DataChannel
close, startTransfer, startTransfer
-
-
-
-
Field Detail
-
session
protected Session session
-
dataHandlers
protected static java.util.Map dataHandlers
-
-
Constructor Detail
-
AbstractDataChannel
public AbstractDataChannel(Session session)
-
-
Method Detail
-
registerHandler
public static void registerHandler(int transferMode, int transferType, int type, java.lang.Class clazz) throws java.lang.Exception
- Throws:
java.lang.Exception
-
isDataSourceModeSupported
public boolean isDataSourceModeSupported()
Tests if the client supports specified transfer type and mode (the client can read data in specific type and 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 and mode to the data connection)
-
getDataChannelSource
public DataChannelReader getDataChannelSource(TransferContext context) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getDataChannelSink
public DataChannelWriter getDataChannelSink(TransferContext context) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-