public abstract class AbstractDataChannel extends java.lang.Object implements DataChannel
Modifier and Type | Field and Description |
---|---|
protected static java.util.Map |
dataHandlers |
private static org.apache.commons.logging.Log |
logger |
protected Session |
session |
private static int |
SINK |
private static int |
SOURCE |
Constructor and Description |
---|
AbstractDataChannel(Session session) |
Modifier and Type | Method and Description |
---|---|
DataChannelWriter |
getDataChannelSink(TransferContext context) |
DataChannelReader |
getDataChannelSource(TransferContext context) |
private static java.lang.String |
getHandlerID(int transferMode,
int transferType,
int type) |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, startTransfer, startTransfer
private static org.apache.commons.logging.Log logger
protected Session session
protected static java.util.Map dataHandlers
private static final int SOURCE
private static final int SINK
public AbstractDataChannel(Session session)
public static void registerHandler(int transferMode, int transferType, int type, java.lang.Class clazz) throws java.lang.Exception
java.lang.Exception
public boolean isDataSourceModeSupported()
public boolean isDataSinkModeSupported()
public DataChannelReader getDataChannelSource(TransferContext context) throws java.lang.Exception
java.lang.Exception
public DataChannelWriter getDataChannelSink(TransferContext context) throws java.lang.Exception
java.lang.Exception
private static java.lang.String getHandlerID(int transferMode, int transferType, int type)