53 Commits

Author SHA1 Message Date
Spring Operator
2af7a74ce8 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 43 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-25 12:49:55 -04:00
Spring Operator
deb1fa9844 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/ with 1 occurrences migrated to:
  https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/ ([https](https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/) result 200).
* http://www.apache.org/licenses/LICENSE-2.0.txt with 1 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0.txt ([https](https://www.apache.org/licenses/LICENSE-2.0.txt) result 200).
* http://springsource.org with 1 occurrences migrated to:
  https://springsource.org ([https](https://springsource.org) result 301).
* http://repo.spring.io/libs-milestone with 1 occurrences migrated to:
  https://repo.spring.io/libs-milestone ([https](https://repo.spring.io/libs-milestone) result 302).
* http://repo.spring.io/plugins-release with 1 occurrences migrated to:
  https://repo.spring.io/plugins-release ([https](https://repo.spring.io/plugins-release) result 302).
2019-03-20 13:11:31 -04:00
Artem Bilan
8b9922d16c The S3 keyExpression assertions improvement 2016-08-29 14:54:04 -04:00
Artem Bilan
8e2fb5e921 Add start/stop queues management for SQS Adapter
Provide delegates for the SC-AWS `SimpleMessageListenerContainer` `start/stop/isRunning` method for individual queues.

Mark `SqsMessageDrivenChannelAdapter` with `@ManagedResource` and `@IntegrationManagedResource` to make those operation accessible from JMX/ControlBus
Cover the change with test-case
Provide some upgrades
Fix test for NPE from AWS SDK around `lastModified`: https://github.com/aws/aws-sdk-java/issues/822
2016-08-23 19:28:51 -04:00
Jim Krygowski
72821bfb8c GH-45: Fix S3 hierarchy support
Fixes GH-45 (https://github.com/spring-projects/spring-integration-aws/issues/45)

S3InboundFileSynchronizer failing when processing through S3 directories - modified approach for splitPathToBucketAndKey to account for the fact that there will be more than one forward slash in the path when subdirectories are used in an S3 bucket. Set up split operation to use the limit parameter to force the bucket identifier into the first element and the remainder of the text (the key) into the second element.

* modified unit test to include subdirectories.
*fixed additional usages of the split operation without the match limit parameter. DRY'd up some code. Cleaned up unit tests.

* added @author annotation at project lead's request.

Add some polishing
2016-08-11 16:32:06 -04:00
Spring Buildmaster
6a79933266 [artifactory-release] Next development version 2016-07-25 16:20:14 +00:00
Spring Buildmaster
5fcf343f99 [artifactory-release] Release version 1.0.0.RELEASE 2016-07-25 16:20:11 +00:00
Artem Bilan
b5292dc761 Introduce AwsHeaders.ACKNOWLEDGMENT for SQS 2016-07-14 17:31:23 -04:00
John Logan
b5e6cdaa95 GH-41: Fix broken S3 File upload
Fixes GH-41 (https://github.com/spring-projects/spring-integration-aws/issues/41)
Fixes GH-43 (https://github.com/spring-projects/spring-integration-aws/issues/43)

- Prior upload() code was trying to reset() a
  FileInputStream and then upload to S3, which
  resulted in zero uploaded bytes.
- Added dependency on spring-cloud-aws-core
  to resolve ResourceIdResolver reference.
- Fail if InputStream payload does not support
  mark/reset.
- Add metadata for byte array payload.

GH-41: Fix assert order per PR comments.
2016-07-13 16:48:53 -04:00
Gary Russell
07e8d59c1f CLA Hook 2016-07-11 15:37:13 +01:00
Artem Bilan
32070dbf92 Upgrade to Gradle 2.14 2016-06-23 12:55:47 -04:00
Kamil Przerwa
97988bdec5 GH-39: Allow text/plain for SNS Inbound
Fixes GH-39 (https://github.com/spring-projects/spring-integration-aws/issues/39)

Amazon SNS HTTP notifications are sent with the `content-type` header as `text/plain`, not `application/json` as it is expected by the `MappingJackson2HttpMessageConverter` by default.

*Added `text/plain` as supported content type for SNS inbound notification

* Corrections after review
2016-06-23 12:44:14 -04:00
Spring Buildmaster
0d52b9d352 [artifactory-release] Next development version 2016-06-14 21:31:28 +00:00
Spring Buildmaster
0f77a84fa5 [artifactory-release] Release version 1.0.0.M2 2016-06-14 21:31:25 +00:00
Patrick Fitzsimons
7be94b7690 GH-36: Add SqsMessageDrivenCA.queueStopTimeout
Fixes GH-36 (https://github.com/spring-projects/spring-integration-aws/issues/36)

* Add ability to set `queueStopTimeout` for `SimpleMessageListenerContainer` in `SqsMessageDrivenChannelAdapter`
* Update unit tests to test `queueStopTimeout`
* Ensure that we don't override the default `queueStopTimeout` with `0` `long`
* Upgrade to `SI-4.2.8`
2016-06-14 17:19:14 -04:00
Patrick Fitzsimons
d2aa5224ec Adding auto start up setter on sqsMessageDrivenChannelAdapter.java
Update tests in SqsMessageDrivenChannelAdapterParserTests to invoke setAutoStartup

Change setAutoStartUp to invoke super in SqsMessageDrivenChannelAdapter

Add override to SqsMessageDrivenChannelAdapter

Remove call to setAutoStartup in SqsMessageDrivenChannelAdapterParserTests
2016-06-08 21:47:05 -04:00
Artem Bilan
6abc1210a1 Add ResourceIdResolver support
I many cases we deal in application just with simple logical name for the target AWS entities, e.g. `myQueue`, `testBucket`.
Actually they must be resolved into the physical resources against the current environment.
E.g. the same  S3 `testBucket` ca be fully different in different regions.
 The SQS queue must be resolved into the resources with the current `Stack` context.
2016-05-27 15:05:00 -04:00
Artem Bilan
175cc06e0b Fix NPE in the S3Session and validate bucket 2016-05-19 12:02:25 -04:00
Artem Bilan
5d4bcb37db INTEXT-221: Document S3 Gateway & CheckStyle
JIRA: https://jira.spring.io/browse/INTEXT-221

Also apply Checkstyle for the project
Move testing to the `AssertJ`
Adjust `.travis.yml` for Gradle 2.13
Add `CODE_OF_CONDUCT.adoc`
2016-05-18 18:44:38 -04:00
Artem Bilan
f946a1d5e9 Some various fixes
* Upgrade to Gradle-2.13
* Add `org.gradle.daemon=true` option
* Upgrade to SC-AWS-1.1.0.RELEASE
* Upgrade to SI-4.2.6
* Make `spring-cloud-aws-messaging` as `optional` since not all SI-AWS users require messaging components and needs only S3, for example
2016-05-16 12:55:53 -04:00
Spring Buildmaster
7824b647cf [artifactory-release] Next development version 2016-04-14 02:25:16 +00:00
Spring Buildmaster
6261e15cbd [artifactory-release] Release version 1.0.0.BUILD-SNAPSHOT 2016-04-14 02:25:12 +00:00
Artem Bilan
6b4f28f9f5 Upgrade to slf4j.1.7.21 2016-04-13 22:17:40 -04:00
Artem Bilan
1c0b315462 Pre-release polishing 2016-04-13 16:33:26 -04:00
Artem Bilan
d73390191e Removed obsolete XSD types 2016-04-12 15:21:29 -04:00
Artem Bilan
29e255cc64 Add S3 MessageSource implementation
JIRA: https://jira.spring.io/browse/INTEXT-51,
https://jira.spring.io/browse/INTEXT-194,
https://jira.spring.io/browse/INTEXT-199

* Add S3 Inbound Channel Adapter fully based on the `AbstractInboundFileSynchronizer`,
`AbstractInboundFileSynchronizingMessageSource` implementation.
* Provide the standard SI `RemoteFileTemplate` and `SessionFactory` abstractions implementations.
* Upgrade to Gradle-2.12
* Provide Namespace support
* Ensure everything with tests
* Remove legacy, redundant implementation, infrastructure code for it and test-cases.
Everything in favor of the new implementation.
2016-04-04 19:59:02 -04:00
Artem Bilan
5167b36b4d Add S3MessageHandler Namespace Support
* Add `<int-aws:s3-outbound-channel-adapter>` and `<int-aws:s3-outbound-gateway>`
components. Their parsers and tests for them.
* Remove the old S3 Outbound Channel Adapter implementation and its tests

Rename `AwsNamespaceHandler` properly

`git mv -f File file` does the trick

Add `.travis.yml` to enable Travis CI on PRs
2016-03-30 11:05:33 -04:00
Artem Bilan
a0893cb88e Add S3MessageHandler
Implement the `S3MessageHandler` based on the `TransferManager`.
Provide `upload`, `download` and `copy` operations.
Support single file upload/download as well as directory structure.
The `S3MessageHandler` may behave as `one-way`, as well as `request-reply` component.
The former is blocked, the second is async.

See test-cases and JavaDocs for more info.
2016-03-28 17:07:19 -04:00
Erdur, Serkan
3fc01d8861 Fix duplicate attributes in the XSD definitions 2016-03-28 11:56:04 -04:00
Artem Bilan
b6c57b29be Upgrade to Spring Cloud AWS 1.1.0.M2 2016-02-23 13:59:26 -05:00
Prince Kannah
7e3271dfad Typo: Change nane --> name
Fix the typo in the java doc of `S3ObjectSummary.getBucketName()` from 'nane' --> 'name'.
2016-02-05 11:32:05 -05:00
Artem Bilan
0580642439 INTEXT-8: Add SNS Outbound Channel Adapter
JIRA: https://jira.spring.io/browse/INTEXT-8

Address PR comments
2016-01-12 12:19:35 -05:00
Karthik Palanivelu
dc66af65eb INTEXT-197: Lifecycle attrs for s3-outbound-c-a
JIRA: https://jira.spring.io/browse/INTEXT-197

* Modified the `org/springframework/integration/aws/config/xml/spring-integration-aws-1.0.xsd` to add `channelAdapterAttributes` to expose
`phase` attribute in `s3 outbound adapter`.
* Modified `AmazonS3OutboundChannelAdapterParserTests` - Added Unit Test Class to test the `channelAdapterAttributes`.
* Modified `s3-valid-outbound-cases.xml` - Added separate definition `withChannelAdapterAttributes` for phase attribute.

Polishing according PR comments
2015-10-20 16:44:45 -04:00
Karthik Palanivelu
c674a8dace INTEXT-187: add advice-chain for the outbound-c-a
JIRA: https://jira.spring.io/browse/INTEXT-187

* Modified the `spring-integration-aws-1.0.xsd` to accommodate `request-handler-advice-chain`
	in s3 outbound adapter after feedback.
* Modified `AmazonS3OutboundChannelAdapterParserTests` - Added Unit Test Class with Mock Object to test the request handler chain.
* Modified `s3-valid-outbound-cases.xml` - Added separate definition withHandlerChain with mock Operations.
2015-09-28 14:56:01 -04:00
Artem Bilan
16ef806598 INTEXT-147: Add SnsInboundChannelAdapter
JIRA: https://jira.spring.io/browse/INTEXT-147

INTEXT-147: Documentation

Upgrade dependencies
2015-09-23 15:40:57 -04:00
Li Wang
a7e5f67d04 INTEXT-189: Fix S3InboundChannelAdapterParser
JIRA: https://jira.spring.io/browse/INTEXT-189
2015-08-24 21:11:45 -07:00
Taylor Wicksell
e6e4a0b2d1 Remove IntEvalCtxAware usage for SI 4.2 support
Polishing
2015-08-18 20:19:10 -04:00
kjordan2001
716f63e3a9 GH-11: Base64 encoding instead of Hex
Fixes #11 (https://github.com/spring-projects/spring-integration-aws/issues/11)

Polishing
2015-07-17 15:46:16 -04:00
Artem Bilan
9ad2f53f65 Fix schemaZip Gradle task for Windows
Fixes: https://github.com/spring-projects/spring-integration-aws/issues/10
2015-03-26 16:00:00 +02:00
Rahul Pilani
a551224f9d INTEXT-141: Add SqsMessageHandler template ctor
JIRA: https://jira.spring.io/browse/INTEXT-141

Adding in a constructor to the `SqsMessageHandler` so that `QueueMessagingTemplate` can be configured independently.

Updated with comments

- Updated the `spring-integration-aws-1.0.xsd` to include the `queue-messaging-template` param.
- Updated the `SqsOutboundChannelAdapterParserTest` to look for the `queue-messaging-template` param, and validate that `sqs` and `resource-resolver-id` params are mutually exclusive to `queue-messaging-template`.
- Added tests for the parser.
- Added test for the new constructor.

Updated with feedback
- Validation for `sqs` parameter missing in xml config
- Made `SqsMessageHandlerWithQueueMessagingTemplateTests` use the same tests as `SqsMessageHandler` tests by moving the tests to a common parent class: `AbstractSqsMessageHandlerTest`
- Other minor fixes.

Whitespace and error message fixes.

Polishing
2015-03-10 08:43:09 +02:00
Artem Bilan
ec4a93142d INTEXT-7: Add SQS Adapters
JIRA: https://jira.spring.io/browse/INTEXT-7

Upgrade to Gradle 2.3

Minor Doc Polishing
2015-02-18 16:39:05 -05:00
Artem Bilan
d4dedef383 GH-3: Fix BeanFactory population for AS3MH
Fixes https://github.com/spring-projects/spring-integration-aws/issues/3

**Cherry-pick to 0.5.x**
2015-02-12 11:05:22 +02:00
Artem Bilan
7c091c84a4 INTEXT-136: Make based on Spring Cloud AWS
JIRA: https://jira.spring.io/browse/INTEXT-136

* Add `spring-cloud-aws` dependencies
* Remove all SES stuff, since Spring Cloud AWS provides implementations for `org.springframework.mail.MailSender`
2015-02-02 15:50:06 +02:00
Artem Bilan
1db1939b32 Initial commit 2014-11-17 13:39:25 +02:00
Christos Kapasakalidis
7840e3e523 INTEXT-80 - FIX S3 ConnectionPoolTimeoutException
JIRA: https://jira.spring.io/browse/INTEXT-80

When synchronizing to local directory, getObject was called without
ever closing the InputStream that the SDK opens causing an
"org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting
for connection" exception. To fix that, after synchronization, the
inputStream of the s3Object is closed, causing the s3 client to release
the connection.
2014-11-06 17:35:30 +02:00
Rob Harrop
4789e94a12 AWS: Updated to spring-integration to 4.0.3
Made the corresponding API changes.

Had to update jacoco to latest (0.7.1.blah) to get the tests to work correctly on OSX Java 8

Fixed JavaDoc errors show up by the Java 8 linter. Build passes

Bringing dependencies inline with Spring 4.0.6

Updated mockito to 1.9.5

Updated Hamcrest to 1.3

Updated aws-sdk to 1.8.7

Merge branch 'master' into integration-4.0

Reformatted gradle file inline with the existing standard

Switch back to using the milestone repo

Upgrade Gradle version to 1.12

Updated the schema references to use un-versioned refs

Updated author tags and copyright dates

AWS: SI-4.0 Polishing
2014-08-15 12:27:56 +03:00
Gunnar Hillert
26824b23d5 INTEXT-70 - Set code coverage plugin for Sonar
* Set the Sonar code coverage plugin explicitly to `jacoco`
2013-05-17 12:01:26 -04:00
Gunnar Hillert
f18549427a INTEXT-67 - Upgrade to Sonar-Runner
* Upgrade to Gradle 1.6
* Upgrade from Gradle plugin sonar to sonar-runner
* Upgrade Gradle wrapper
* Fix several Group Ids
2013-05-15 23:15:06 -04:00
Gunnar Hillert
527fca9bdd INTEXT-54 - AWS Fix Failing Tests
For reference: https://jira.springsource.org/browse/INTEXT-54
2013-03-12 00:55:08 -04:00
Gunnar Hillert
07b3efa3dc INTEXT-34 - Convert AWS Module to Gradle
For reference see: https://jira.springsource.org/browse/INTEXT-34
2013-03-11 17:38:34 -04:00