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 e90f6f69ff7429df71cb64e4162325f0d1dab0dc Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Nov 19 13:06:25 2019 +0100 CAMEL-14106 - Regen docs --- .../modules/ROOT/pages/aws-s3-component.adoc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/components/modules/ROOT/pages/aws-s3-component.adoc b/docs/components/modules/ROOT/pages/aws-s3-component.adoc index d7bc515..3652586 100644 --- a/docs/components/modules/ROOT/pages/aws-s3-component.adoc +++ b/docs/components/modules/ROOT/pages/aws-s3-component.adoc @@ -364,6 +364,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 @@ -520,6 +521,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`.