This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit ac3e430a47838a2443c3be6dfafdc081c85b23d2 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Nov 19 13:04:36 2019 +0100 CAMEL-14106 - A bit of docs and example --- .../camel-aws-s3/src/main/docs/aws-s3-component.adoc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc b/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc index 65907af..0b8d687 100644 --- a/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc +++ b/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc @@ -363,6 +363,7 @@ Camel-AWS s3 component provides the following operation on the producer side: - downloadLink - listObjects - getObject (this will return an S3Object instance) +- getObjectRange (this will return an S3Object instance) === Advanced AmazonS3 configuration @@ -519,6 +520,25 @@ This operation will list the objects in the mycamelbucket bucket This operation will return an S3Object instance related to the camelKey object in mycamelbucket bucket. +- GetObjectRange: this operation get a single object range in a specific bucket + +[source,java] +-------------------------------------------------------------------------------- + from("direct:start").process(new Processor() { + + @Override + public void process(Exchange exchange) throws Exception { + exchange.getIn().setHeader(S3Constants.KEY, "camelKey"); + exchange.getIn().setHeader(S3Constants.RANGE_START, "0"); + exchange.getIn().setHeader(S3Constants.RANGE_END, "9"); + } + }) + .to("aws-s3://mycamelbucket?amazonS3Client=#amazonS3Client&operation=getObjectRange") + .to("mock:result"); +-------------------------------------------------------------------------------- + +This operation will return an S3Object instance related to the camelKey object in mycamelbucket bucket, containing a the bytes from 0 to 9. + == Bucket Autocreation With the option `autoCreateBucket` users are able to avoid the autocreation of an S3 Bucket in case it doesn't exist. The default for this option is `true`.