You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/01/04 09:20:22 UTC

[camel] branch master updated (f5760e2 -> f253c4a)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from f5760e2  Upgrade AssertJ to version 3.9.0
     add a5cd6a7  CAMEL-12122: S3: Add createDownloadLink functionality
     new f253c4a  CAMEL-12122 - Fixed CS

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../camel-aws/src/main/docs/aws-s3-component.adoc  |  4 +-
 .../apache/camel/component/aws/s3/S3Constants.java |  2 +
 .../camel/component/aws/s3/S3Operations.java       |  3 +-
 .../apache/camel/component/aws/s3/S3Producer.java  | 44 ++++++++++++++++++++++
 4 files changed, 51 insertions(+), 2 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@camel.apache.org" <co...@camel.apache.org>'].

[camel] 01/01: CAMEL-12122 - Fixed CS

Posted by ac...@apache.org.
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 f253c4a8495a7469663edacb8ab9a090453a41a6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 4 10:19:41 2018 +0100

    CAMEL-12122 - Fixed CS
---
 .../apache/camel/component/aws/s3/S3Producer.java  | 32 +++++++++++-----------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/s3/S3Producer.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/s3/S3Producer.java
index 4467bc2..c7a2120 100644
--- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/s3/S3Producer.java
+++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/s3/S3Producer.java
@@ -16,8 +16,6 @@
  */
 package org.apache.camel.component.aws.s3;
 
-import static org.apache.camel.component.aws.common.AwsExchangeUtil.getMessageForResponse;
-
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.File;
@@ -30,19 +28,6 @@ import java.util.Date;
 import java.util.List;
 import java.util.Map;
 
-import org.apache.camel.Endpoint;
-import org.apache.camel.Exchange;
-import org.apache.camel.Message;
-import org.apache.camel.WrappedFile;
-import org.apache.camel.impl.DefaultProducer;
-import org.apache.camel.util.CastUtils;
-import org.apache.camel.util.FileUtil;
-import org.apache.camel.util.IOHelper;
-import org.apache.camel.util.ObjectHelper;
-import org.apache.camel.util.URISupport;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
 import com.amazonaws.HttpMethod;
 import com.amazonaws.services.cloudfront.model.InvalidArgumentException;
 import com.amazonaws.services.s3.AmazonS3;
@@ -66,6 +51,21 @@ import com.amazonaws.services.s3.model.PutObjectResult;
 import com.amazonaws.services.s3.model.StorageClass;
 import com.amazonaws.services.s3.model.UploadPartRequest;
 
+import org.apache.camel.Endpoint;
+import org.apache.camel.Exchange;
+import org.apache.camel.Message;
+import org.apache.camel.WrappedFile;
+import org.apache.camel.impl.DefaultProducer;
+import org.apache.camel.util.CastUtils;
+import org.apache.camel.util.FileUtil;
+import org.apache.camel.util.IOHelper;
+import org.apache.camel.util.ObjectHelper;
+import org.apache.camel.util.URISupport;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import static org.apache.camel.component.aws.common.AwsExchangeUtil.getMessageForResponse;
+
 /**
  * A Producer which sends messages to the Amazon Web Service Simple Storage
  * Service <a href="http://aws.amazon.com/s3/">AWS S3</a>
@@ -455,7 +455,7 @@ public class S3Producer extends DefaultProducer {
         long milliSeconds = expiration.getTime();
         
         Long expirationMillis = exchange.getIn().getHeader(S3Constants.DOWNLOAD_LINK_EXPIRATION, Long.class);
-        if(expirationMillis != null) {
+        if (expirationMillis != null) {
             milliSeconds += expirationMillis;
         } else {
             milliSeconds += 1000 * 60 * 60; // Default: Add 1 hour.

-- 
To stop receiving notification emails like this one, please contact
"commits@camel.apache.org" <co...@camel.apache.org>.