public class GetObjectRequest extends AbstractRequest
Constructor and Description |
---|
GetObjectRequest(java.lang.String bucketName,
java.lang.String objectName,
java.lang.String job,
long offset,
java.io.OutputStream stream) |
GetObjectRequest(java.lang.String bucketName,
java.lang.String objectName,
java.util.UUID job,
long offset,
java.io.OutputStream stream) |
GetObjectRequest(java.lang.String bucketName,
java.lang.String objectName,
java.nio.channels.WritableByteChannel channel)
Deprecated.
|
GetObjectRequest(java.lang.String bucketName,
java.lang.String objectName,
java.nio.channels.WritableByteChannel channel,
java.lang.String job,
long offset) |
GetObjectRequest(java.lang.String bucketName,
java.lang.String objectName,
java.nio.channels.WritableByteChannel channel,
java.util.UUID job,
long offset) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBucketName() |
java.util.Collection<Range> |
getByteRanges() |
java.nio.channels.WritableByteChannel |
getChannel() |
ChecksumType |
getChecksum() |
ChecksumType.Type |
getChecksumType() |
java.lang.String |
getContentType() |
java.lang.String |
getJob() |
java.lang.String |
getObjectName() |
long |
getOffset() |
java.lang.String |
getPath() |
HttpVerb |
getVerb() |
GetObjectRequest |
withByteRanges(java.util.Collection<Range> byteRanges) |
GetObjectRequest |
withByteRanges(Range... byteRanges)
Sets a Range of bytes that should be retrieved from the object in the
format: 'Range: bytes=[start]-[end],...'.
|
GetObjectRequest |
withChecksum(ChecksumType checksum)
Set a MD5 checksum for the request.
|
GetObjectRequest |
withChecksum(ChecksumType checksum,
ChecksumType.Type checksumType) |
GetObjectRequest |
withJob(java.lang.String job) |
GetObjectRequest |
withJob(java.util.UUID job) |
GetObjectRequest |
withOffset(long offset) |
getHeaders, getQueryParams, getSize, getStream, updateQueryParam
@Deprecated public GetObjectRequest(java.lang.String bucketName, java.lang.String objectName, java.nio.channels.WritableByteChannel channel)
GetObjectRequest(String, String, WritableByteChannel, UUID, long)
insteadpublic GetObjectRequest(java.lang.String bucketName, java.lang.String objectName, java.nio.channels.WritableByteChannel channel, java.util.UUID job, long offset)
public GetObjectRequest(java.lang.String bucketName, java.lang.String objectName, java.nio.channels.WritableByteChannel channel, java.lang.String job, long offset)
public GetObjectRequest(java.lang.String bucketName, java.lang.String objectName, java.util.UUID job, long offset, java.io.OutputStream stream)
public GetObjectRequest(java.lang.String bucketName, java.lang.String objectName, java.lang.String job, long offset, java.io.OutputStream stream)
public GetObjectRequest withJob(java.util.UUID job)
public GetObjectRequest withJob(java.lang.String job)
public GetObjectRequest withOffset(long offset)
public GetObjectRequest withChecksum(ChecksumType checksum)
public GetObjectRequest withChecksum(ChecksumType checksum, ChecksumType.Type checksumType)
public ChecksumType getChecksum()
getChecksum
in interface Ds3Request
getChecksum
in class AbstractRequest
public ChecksumType.Type getChecksumType()
getChecksumType
in interface Ds3Request
getChecksumType
in class AbstractRequest
public GetObjectRequest withByteRanges(Range... byteRanges)
public GetObjectRequest withByteRanges(java.util.Collection<Range> byteRanges)
public HttpVerb getVerb()
public java.lang.String getPath()
public java.lang.String getContentType()
getContentType
in interface Ds3Request
getContentType
in class AbstractRequest
public java.nio.channels.WritableByteChannel getChannel()
public java.lang.String getBucketName()
public java.lang.String getObjectName()
public java.lang.String getJob()
public long getOffset()
public java.util.Collection<Range> getByteRanges()