Class HttpGetterInfo

java.lang.Object
com.azure.storage.blob.HttpGetterInfo

public final class HttpGetterInfo extends Object
HttpGetterInfo is a passed to the getter function of a reliable download to specify parameters needed for the GET request.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of HttpGetterInfo.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the count of bytes used to calculate the end offset when creating the Range header. null is the default and indicates that the entire rest of the blob should be retrieved.
    Gets the eTag used when creating If-Match header. eTag is returned with any operation that modifies the resource and when retrieving properties.
    long
    Gets the start offset that is used when creating the Range header.
    setCount(Long count)
    Sets the count of bytes used to calculate the end offset when creating the Range header. null is the default and indicates that the entire rest of the blob should be retrieved.
    Sets the eTag used when creating If-Match header. eTag is returned with any operation that modifies the resource and when retrieving properties.
    setOffset(long offset)
    Sets the start offset that is used when creating the Range header.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HttpGetterInfo

      public HttpGetterInfo()
      Creates a new instance of HttpGetterInfo.
  • Method Details

    • getOffset

      public long getOffset()
      Gets the start offset that is used when creating the Range header. If unchanged this will default to 0.
      Returns:
      the start offset used when creating the Range header. Defaults to 0.
    • setOffset

      public HttpGetterInfo setOffset(long offset)
      Sets the start offset that is used when creating the Range header. If unchanged this will default to 0.
      Parameters:
      offset - Start offset
      Returns:
      the updated HttpGetterInfo object
    • getCount

      public Long getCount()
      Gets the count of bytes used to calculate the end offset when creating the Range header. null is the default and indicates that the entire rest of the blob should be retrieved.
      Returns:
      the count of bytes used to calculate the end offset when creating the Range header. null is the default and indicates that the entire rest of the blob should be retrieved.
    • setCount

      public HttpGetterInfo setCount(Long count)
      Sets the count of bytes used to calculate the end offset when creating the Range header. null is the default and indicates that the entire rest of the blob should be retrieved.
      Parameters:
      count - Count of bytes
      Returns:
      the updated HttpGetterInfo object
    • getETag

      public String getETag()
      Gets the eTag used when creating If-Match header. eTag is returned with any operation that modifies the resource and when retrieving properties. Defaults to null.
      Returns:
      the eTag used when creating If-Match header. eTag is returned with any operation that modifies the resource and when retrieving properties. Defaults to null.
    • setETag

      public HttpGetterInfo setETag(String eTag)
      Sets the eTag used when creating If-Match header. eTag is returned with any operation that modifies the resource and when retrieving properties. Defaults to null.
      Parameters:
      eTag - Resource's eTag
      Returns:
      the updated HttpGetterInfo object