Class DisconnectResult

java.lang.Object
com.enterprisedt.net.ftp.async.AsyncResult
com.enterprisedt.net.ftp.async.DisconnectResult

public class DisconnectResult extends AsyncResult
Result returned from disconnect operation
Version:
$Revision$
Author:
Bruce Blackshaw
  • Field Details

  • Constructor Details

    • DisconnectResult

      public DisconnectResult(boolean immediate)
      Constructor
      Parameters:
      immediate - true for immediate (forced) disconnection
  • Method Details

    • isImmediate

      public boolean isImmediate()
      Should this be an immediate disconnection?
      Returns:
      true if immediate, false if not
    • getReason

      public int getReason()
      Get the reason for the disconnection
      Returns:
    • getReasonMsg

      public String getReasonMsg()
    • isAlreadyDisconnected

      public boolean isAlreadyDisconnected()
      Return true if already disconnected prior to current disconnection attempted.
      Returns:
    • setAlreadyDisconnected

      public void setAlreadyDisconnected(boolean alreadyDisconnected)
      Set the flag indicating if already disconnected
      Parameters:
      alreadyDisconnected - true if already disconnected when this result was created.
    • setReason

      public void setReason(int reason)
      Set the reason for the disconnect
      Parameters:
      reason - integer representing reason
    • endAsync

      public void endAsync() throws FTPException, IOException
      This method is called to complete the asynchronous operation. If the operation is not completed, this method will block until it has. It is normally called from within a callback, which ensures that the operation has indeed already completed.
      Throws:
      IOException
      FTPException