Class AnjayDownload.Configuration

  • Enclosing class:
    AnjayDownload

    public static final class AnjayDownload.Configuration
    extends java.lang.Object
    Configuration for AnjayDownload.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.Optional<Anjay.CoapUdpTxParams> coapTxParams
      CoAP transmission parameters object.
      java.util.Optional<byte[]> etag
      If startOffset is not 0, etag should be set to a value returned by the server during the transfer before it got interrupted.
      java.util.Optional<AnjayAbstractSecurityConfig> securityConfig
      DTLS security configuration.
      int startOffset
      If the download gets interrupted for some reason, and the client is aware of how much data it managed to successfully download, it can resume the transfer from a specific offset.
      java.lang.String url
      coap://, coaps://, http:// or https:// URL.
    • Constructor Summary

      Constructors 
      Constructor Description
      Configuration()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • url

        public java.lang.String url
        coap://, coaps://, http:// or https:// URL. Required.
      • etag

        public java.util.Optional<byte[]> etag
        If startOffset is not 0, etag should be set to a value returned by the server during the transfer before it got interrupted.
      • startOffset

        public int startOffset
        If the download gets interrupted for some reason, and the client is aware of how much data it managed to successfully download, it can resume the transfer from a specific offset.
      • securityConfig

        public java.util.Optional<AnjayAbstractSecurityConfig> securityConfig
        DTLS security configuration. Required if coaps:// is used, ignored for coap:// transfers.
      • coapTxParams

        public java.util.Optional<Anjay.CoapUdpTxParams> coapTxParams
        CoAP transmission parameters object. If empty, downloader will inherit parameters from Anjay.
    • Constructor Detail

      • Configuration

        public Configuration()