Package com.avsystem.anjay
Class AnjayDownload.Configuration
- java.lang.Object
-
- com.avsystem.anjay.AnjayDownload.Configuration
-
- Enclosing class:
- AnjayDownload
public static final class AnjayDownload.Configuration extends java.lang.ObjectConfiguration forAnjayDownload.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Optional<Anjay.CoapUdpTxParams>coapTxParamsCoAP transmission parameters object.java.util.Optional<byte[]>etagIfstartOffsetis not 0, etag should be set to a value returned by the server during the transfer before it got interrupted.java.util.Optional<AnjayAbstractSecurityConfig>securityConfigDTLS security configuration.intstartOffsetIf 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.Stringurlcoap://,coaps://,http://orhttps://URL.
-
Constructor Summary
Constructors Constructor Description Configuration()
-
-
-
Field Detail
-
url
public java.lang.String url
coap://,coaps://,http://orhttps://URL. Required.
-
etag
public java.util.Optional<byte[]> etag
IfstartOffsetis 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 ifcoaps://is used, ignored forcoap://transfers.
-
coapTxParams
public java.util.Optional<Anjay.CoapUdpTxParams> coapTxParams
CoAP transmission parameters object. If empty, downloader will inherit parameters from Anjay.
-
-