Interface ValidatableContent


public interface ValidatableContent
Represents options for a transfer operation whose content integrity can be validated. Implemented by the various upload and download option types so that transfer content validation can be configured agnostically across many different operations.

This allows application code to enable or inspect content validation without needing to special-case every concrete option type. For example, a helper can accept a ValidatableContent and apply a single ContentValidationAlgorithm to any supported upload or download options instance.

See Also:
  • Method Details

    • getContentValidationAlgorithm

      ContentValidationAlgorithm getContentValidationAlgorithm()
      Gets the algorithm to use for transfer content validation. See ContentValidationAlgorithm for more details.
      Returns:
      The transfer validation checksum algorithm.
    • setContentValidationAlgorithm

      ValidatableContent setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)
      Sets the algorithm to use for transfer content validation. See ContentValidationAlgorithm for more details.
      Parameters:
      contentValidationAlgorithm - The transfer validation checksum algorithm.
      Returns:
      The updated options.