Constructor and Description |
---|
S3Configuration() |
Modifier and Type | Method and Description |
---|---|
String |
getAccessKey() |
com.amazonaws.services.s3.AmazonS3 |
getAmazonS3Client() |
String |
getAmazonS3Endpoint() |
String |
getBucketName() |
String |
getFileName() |
S3Operations |
getOperation() |
long |
getPartSize() |
String |
getPolicy() |
String |
getPrefix() |
String |
getProxyHost() |
Integer |
getProxyPort() |
String |
getRegion() |
String |
getSecretKey() |
String |
getServerSideEncryption() |
String |
getStorageClass() |
boolean |
isAutocloseBody() |
boolean |
isDeleteAfterRead() |
boolean |
isDeleteAfterWrite() |
boolean |
isIncludeBody() |
boolean |
isMultiPartUpload() |
boolean |
isPathStyleAccess() |
void |
setAccessKey(String accessKey)
Amazon AWS Access Key
|
void |
setAmazonS3Client(com.amazonaws.services.s3.AmazonS3 amazonS3Client)
Reference to a `com.amazonaws.services.sqs.AmazonS3` in the link:registry.html[Registry].
|
void |
setAmazonS3Endpoint(String amazonS3Endpoint)
The region with which the AWS-S3 client wants to work with.
|
void |
setAutocloseBody(boolean autocloseBody)
If this option is true and includeBody is true, then the S3Object.close() method will be called on exchange completion
This option is strongly related to includeBody option.
|
void |
setBucketName(String bucketName)
Name of the bucket.
|
void |
setDeleteAfterRead(boolean deleteAfterRead)
Delete objects from S3 after they have been retrieved.
|
void |
setDeleteAfterWrite(boolean deleteAfterWrite)
*Camel 2.11.0*: Delete file object after the S3 file has been uploaded
|
void |
setFileName(String fileName)
To get the object from the bucket with the given file name
|
void |
setIncludeBody(boolean includeBody)
If it is true, the exchange body will be set to a stream to the contents of the file.
|
void |
setMultiPartUpload(boolean multiPartUpload)
*Camel 2.15.0*: If it is true, camel will upload the file with multi part format, the part size is decided by the option of `partSize`
|
void |
setOperation(S3Operations operation)
*Camel 2.18*: The operation to do in case the user don't want to do only an upload
|
void |
setPartSize(long partSize)
*Camel 2.15.0*: Setup the partSize which is used in multi part upload, the default size is 25M.
|
void |
setPathStyleAccess(boolean pathStyleAccess)
Whether or not the S3 client should use path style access
|
void |
setPolicy(String policy)
*Camel 2.8.4*: The policy for this queue to set in the `com.amazonaws.services.s3.AmazonS3#setBucketPolicy()` method.
|
void |
setPrefix(String prefix)
*Camel 2.10.1*: The prefix which is used in the com.amazonaws.services.s3.model.ListObjectsRequest
to only consume objects we are interested in.
|
void |
setProxyHost(String proxyHost)
*Camel 2.16*: To define a proxy host when instantiating the SQS client
|
void |
setProxyPort(Integer proxyPort)
*Camel 2.16*: Specify a proxy port to be used inside the client definition.
|
void |
setRegion(String region)
The region where the bucket is located.
|
void |
setSecretKey(String secretKey)
Amazon AWS Secret Key
|
void |
setServerSideEncryption(String serverSideEncryption)
*Camel 2.16*: Sets the server-side encryption algorithm when encrypting the object using AWS-managed keys.
|
void |
setStorageClass(String storageClass)
*Camel 2.8.4*: The storage class to set in the `com.amazonaws.services.s3.model.PutObjectRequest` request.
|
public long getPartSize()
public void setPartSize(long partSize)
public boolean isMultiPartUpload()
public void setMultiPartUpload(boolean multiPartUpload)
public void setAmazonS3Endpoint(String amazonS3Endpoint)
public String getAmazonS3Endpoint()
public String getAccessKey()
public void setAccessKey(String accessKey)
public String getSecretKey()
public void setSecretKey(String secretKey)
public com.amazonaws.services.s3.AmazonS3 getAmazonS3Client()
public void setAmazonS3Client(com.amazonaws.services.s3.AmazonS3 amazonS3Client)
public String getPrefix()
public void setPrefix(String prefix)
public String getBucketName()
public void setBucketName(String bucketName)
public String getFileName()
public void setFileName(String fileName)
public String getRegion()
public void setRegion(String region)
public void setIncludeBody(boolean includeBody)
public boolean isIncludeBody()
public boolean isDeleteAfterRead()
public void setDeleteAfterRead(boolean deleteAfterRead)
S3Constants.BUCKET_NAME
and S3Constants.KEY
headers, or only the S3Constants.KEY
header.public boolean isDeleteAfterWrite()
public void setDeleteAfterWrite(boolean deleteAfterWrite)
public String getPolicy()
public void setPolicy(String policy)
public String getStorageClass()
public void setStorageClass(String storageClass)
public String getServerSideEncryption()
public void setServerSideEncryption(String serverSideEncryption)
public String getProxyHost()
public void setProxyHost(String proxyHost)
public Integer getProxyPort()
public void setProxyPort(Integer proxyPort)
public void setPathStyleAccess(boolean pathStyleAccess)
public boolean isPathStyleAccess()
public S3Operations getOperation()
public void setOperation(S3Operations operation)
public boolean isAutocloseBody()
public void setAutocloseBody(boolean autocloseBody)
Apache Camel