public class PutObjectRequest extends AbstractRequest
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AMZ_META_HEADER |
Constructor and Description |
---|
PutObjectRequest(java.lang.String bucketName,
java.lang.String objectName,
java.nio.channels.SeekableByteChannel channel,
long size)
Deprecated.
|
PutObjectRequest(java.lang.String bucketName,
java.lang.String objectName,
java.nio.channels.SeekableByteChannel channel,
java.lang.String job,
long offset,
long size) |
PutObjectRequest(java.lang.String bucketName,
java.lang.String objectName,
java.nio.channels.SeekableByteChannel channel,
java.util.UUID job,
long offset,
long size) |
PutObjectRequest(java.lang.String bucketName,
java.lang.String objectName,
java.lang.String job,
long offset,
long size,
java.io.InputStream stream) |
PutObjectRequest(java.lang.String bucketName,
java.lang.String objectName,
java.util.UUID job,
long offset,
long size,
java.io.InputStream stream) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBucketName() |
java.nio.channels.SeekableByteChannel |
getChannel() |
ChecksumType |
getChecksum() |
ChecksumType.Type |
getChecksumType() |
java.lang.String |
getJob() |
java.lang.String |
getObjectName() |
long |
getOffset() |
java.lang.String |
getPath() |
long |
getSize() |
java.io.InputStream |
getStream() |
HttpVerb |
getVerb() |
PutObjectRequest |
withChecksum(ChecksumType checksum)
Set a MD5 checksum for the request.
|
PutObjectRequest |
withChecksum(ChecksumType checksum,
ChecksumType.Type checksumType) |
PutObjectRequest |
withJob(java.lang.String job) |
PutObjectRequest |
withJob(java.util.UUID job) |
PutObjectRequest |
withMetaData(java.lang.String key,
java.lang.String value) |
PutObjectRequest |
withOffset(long offset) |
getContentType, getHeaders, getQueryParams, updateQueryParam
public static final java.lang.String AMZ_META_HEADER
@Deprecated public PutObjectRequest(java.lang.String bucketName, java.lang.String objectName, java.nio.channels.SeekableByteChannel channel, long size)
PutObjectRequest(String, String, SeekableByteChannel, UUID, long, long)
insteadpublic PutObjectRequest(java.lang.String bucketName, java.lang.String objectName, java.nio.channels.SeekableByteChannel channel, java.util.UUID job, long offset, long size)
public PutObjectRequest(java.lang.String bucketName, java.lang.String objectName, java.nio.channels.SeekableByteChannel channel, java.lang.String job, long offset, long size)
public PutObjectRequest(java.lang.String bucketName, java.lang.String objectName, java.util.UUID job, long offset, long size, java.io.InputStream stream)
public PutObjectRequest(java.lang.String bucketName, java.lang.String objectName, java.lang.String job, long offset, long size, java.io.InputStream stream)
public PutObjectRequest withJob(java.util.UUID job)
public PutObjectRequest withJob(java.lang.String job)
public PutObjectRequest withOffset(long offset)
public PutObjectRequest withChecksum(ChecksumType checksum)
public PutObjectRequest 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 PutObjectRequest withMetaData(java.lang.String key, java.lang.String value)
public HttpVerb getVerb()
public java.lang.String getPath()
public long getSize()
getSize
in interface Ds3Request
getSize
in class AbstractRequest
public java.io.InputStream getStream()
getStream
in interface Ds3Request
getStream
in class AbstractRequest
public java.nio.channels.SeekableByteChannel getChannel()
public java.lang.String getBucketName()
public java.lang.String getObjectName()
public java.lang.String getJob()
public long getOffset()