Package org.globus.ftp.dc
Class AbstractDataChannel
java.lang.Object
org.globus.ftp.dc.AbstractDataChannel
- All Implemented Interfaces:
DataChannel
- Direct Known Subclasses:
SimpleDataChannel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDataChannelSink
(TransferContext context) getDataChannelSource
(TransferContext context) boolean
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
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, 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 Details
-
session
-
dataHandlers
-
-
Constructor Details
-
AbstractDataChannel
-
-
Method Details
-
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 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
- Throws:
Exception
-
getDataChannelSink
- Throws:
Exception
-