public class DownloadOptions extends Object
Modifier and Type | Method and Description |
---|---|
DownloadOptions |
conditions(IfCondition... condition)
Adds one or more If based conditions to the header chain to offer conditional matching
before the data is streamed
|
static DownloadOptions |
create() |
List<HeaderNameValue> |
getHeaders() |
DownloadOptions |
header(String name,
Object value)
Adds a user specified header name and value
|
DownloadOptions |
range(Range... ranges)
Download select ranges of bytes
|
public static DownloadOptions create()
public DownloadOptions range(Range... ranges)
ranges
- one or more Range objectspublic DownloadOptions header(String name, Object value)
name
- the header namevalue
- the header valuepublic DownloadOptions conditions(IfCondition... condition)
condition
- one or more IfCondition objectshttp://www.ietf.org/rfc/rfc2616.txt
public List<HeaderNameValue> getHeaders()
Copyright © 2017. All rights reserved.