org.jclouds.blobstore.options

Class GetOptions

    • Constructor Detail

      • GetOptions

        public GetOptions()
    • Method Detail

      • range

        public GetOptions range(long start,
                       long end)
        download the specified range of the object.
        Parameters:
        start - first offset included in the response
        end - last offset included in the response (inclusive).
        Returns:
        itself to enable daisy-chaining of expressions
      • startAt

        public GetOptions startAt(long start)
        download the specified range of the object.
      • tail

        public GetOptions tail(long length)
        download the specified range of the object starting from the end of the object.
      • getIfModifiedSince

        public Date getIfModifiedSince()
        For use in the header If-Modified-Since

        Return the object only if it has been modified since the specified time, otherwise return a 304 (not modified).

        See Also:
        ifModifiedSince(Date)
      • getIfUnmodifiedSince

        public Date getIfUnmodifiedSince()
        For use in the header If-Unmodified-Since

        Return the object only if it has not been modified since the specified time, otherwise return a 412 (precondition failed).

        See Also:
        ifUnmodifiedSince(Date)
      • getIfMatch

        public String getIfMatch()
        For use in the request header: If-Match

        Return the object only if its payload tag (ETag) is the same as the eTag specified, otherwise return a 412 (precondition failed).

        See Also:
        ifETagMatches(String)
      • getIfNoneMatch

        public String getIfNoneMatch()
        For use in the request header: If-None-Match

        Return the object only if its payload tag (ETag) is different from the one specified, otherwise return a 304 (not modified).

        See Also:
        ifETagDoesntMatch(String)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object

Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.