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
  • Field Details

    • logger

      private static org.apache.commons.logging.Log logger
    • session

      protected Session session
    • dataHandlers

      protected static Map dataHandlers
    • SOURCE

      private static final int SOURCE
      See Also:
    • SINK

      private static final int SINK
      See Also:
  • Constructor Details

    • AbstractDataChannel

      public AbstractDataChannel(Session session)
  • 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

      public DataChannelReader getDataChannelSource(TransferContext context) throws Exception
      Throws:
      Exception
    • getDataChannelSink

      public DataChannelWriter getDataChannelSink(TransferContext context) throws Exception
      Throws:
      Exception
    • getHandlerID

      private static String getHandlerID(int transferMode, int transferType, int type)