Class DownloadOptions


  • public class DownloadOptions
    extends Object
    Download options used to determine how the data is returned or if it is returned depending on various conditional options
    Author:
    Jeremy Unruh
    • Method Detail

      • range

        public DownloadOptions range​(Range... ranges)
        Download select ranges of bytes
        Parameters:
        ranges - one or more Range objects
        Returns:
        DownloadOptions for method chaining
      • header

        public DownloadOptions header​(String name,
                                      Object value)
        Adds a user specified header name and value
        Parameters:
        name - the header name
        value - the header value
        Returns:
        DownloadOptions for method chaining
      • conditions

        public DownloadOptions conditions​(IfCondition... condition)
        Adds one or more If based conditions to the header chain to offer conditional matching before the data is streamed
        Parameters:
        condition - one or more IfCondition objects
        Returns:
        DownloadOptions for method chaining
      • getHeaders

        public List<HeaderNameValue> getHeaders()
        Returns:
        all headers configured from this options object