Interface ResultReceiver

All Known Implementing Classes:
CryptoServer

public interface ResultReceiver
Interface for classes which want to get information about the result of transfer operations.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Indicates that the result is from a communication test.
    static final String[]
     
    static final int
    Indicates the interruption of the transmission because an error has occurred on the receiver side.
    static final int
    Indicates that the previous transfer failed.
    static final int
    Indicates that the previous transfer was successful.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setResult(int result, String info)
    Sets the result and additional info of a transfer operation.
  • Field Details

    • PARTNER_RESPONSE

      static final int PARTNER_RESPONSE
      Indicates that the result is from a communication test. The additional information provides information about the availability of the requested key (OK) or its absence (NOK).
      See Also:
    • TRANSFER_FAILED

      static final int TRANSFER_FAILED
      Indicates that the previous transfer failed.
      See Also:
    • TRANSFER_VALID

      static final int TRANSFER_VALID
      Indicates that the previous transfer was successful.
      See Also:
    • TRANSFER_BREAK

      static final int TRANSFER_BREAK
      Indicates the interruption of the transmission because an error has occurred on the receiver side.
      See Also:
    • RESULT_STRINGS

      static final String[] RESULT_STRINGS
  • Method Details

    • setResult

      void setResult(int result, String info)
      Sets the result and additional info of a transfer operation.
      Parameters:
      result - the result of the transfer operation.
      info - an additional info if required.