INTEXT-34 - Convert AWS Module to Gradle
For reference see: https://jira.springsource.org/browse/INTEXT-34
This commit is contained in:
289
build.gradle
Normal file
289
build.gradle
Normal file
@@ -0,0 +1,289 @@
|
|||||||
|
description = 'Spring Integration AWS Support'
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
maven { url 'https://repo.springsource.org/plugins-snapshot' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
apply plugin: 'java'
|
||||||
|
apply from: "${rootProject.projectDir}/publish-maven.gradle"
|
||||||
|
apply plugin: 'eclipse'
|
||||||
|
apply plugin: 'idea'
|
||||||
|
|
||||||
|
group = 'org.springframework.integration'
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven { url 'http://repo.springsource.org/libs-milestone' }
|
||||||
|
maven { url 'http://repo.springsource.org/plugins-release' }
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceCompatibility=1.6
|
||||||
|
targetCompatibility=1.6
|
||||||
|
|
||||||
|
// See http://www.gradle.org/docs/current/userguide/dependency_management.html#sub:configurations
|
||||||
|
// and http://www.gradle.org/docs/current/dsl/org.gradle.api.artifacts.ConfigurationContainer.html
|
||||||
|
configurations {
|
||||||
|
jacoco //Configuration Group used by Sonar to provide Code Coverage using JaCoCo
|
||||||
|
}
|
||||||
|
|
||||||
|
ext {
|
||||||
|
apacheHttpclientVersion='4.1.1'
|
||||||
|
awsSdkVersion='1.3.32'
|
||||||
|
commonsCodecVersion='1.5'
|
||||||
|
commonsIoVersion='2.0.1'
|
||||||
|
javaMailVersion='1.4.4'
|
||||||
|
jacksonVersion='1.9.11'
|
||||||
|
junitVersion='4.11'
|
||||||
|
log4jVersion = '1.2.12'
|
||||||
|
mockitoVersion='1.9.0'
|
||||||
|
springIntegrationVersion = '2.2.2.RELEASE'
|
||||||
|
springVersion = '3.1.4.RELEASE'
|
||||||
|
|
||||||
|
idPrefix = 'aws'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ext.javadocLinks = [
|
||||||
|
"http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/"
|
||||||
|
] as String[]
|
||||||
|
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
|
||||||
|
compile "org.springframework.integration:spring-integration-core:$springIntegrationVersion"
|
||||||
|
compile "com.amazonaws:aws-java-sdk:$awsSdkVersion"
|
||||||
|
compile "commons-codec:commons-codec:$commonsCodecVersion"
|
||||||
|
compile "commons-io:commons-io:$commonsIoVersion"
|
||||||
|
compile "org.codehaus.jackson:jackson-core-asl:$jacksonVersion"
|
||||||
|
compile "org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion"
|
||||||
|
compile "org.apache.httpcomponents:httpclient:$apacheHttpclientVersion"
|
||||||
|
compile "org.apache.httpcomponents:httpcore:$apacheHttpclientVersion"
|
||||||
|
|
||||||
|
//Amazon SES Support
|
||||||
|
compile ("org.springframework.integration:spring-integration-mail:$springIntegrationVersion", optional)
|
||||||
|
compile ("javax.mail:mail:$javaMailVersion", optional)
|
||||||
|
|
||||||
|
testCompile "org.springframework.integration:spring-integration-test:$springIntegrationVersion"
|
||||||
|
testCompile "org.hamcrest:hamcrest-all:1.1"
|
||||||
|
testCompile "junit:junit-dep:$junitVersion"
|
||||||
|
testCompile "org.mockito:mockito-all:$mockitoVersion"
|
||||||
|
testCompile "org.springframework:spring-test:$springVersion"
|
||||||
|
testCompile "log4j:log4j:$log4jVersion"
|
||||||
|
|
||||||
|
jacoco group: "org.jacoco", name: "org.jacoco.agent", version: "0.6.2.201302030002", classifier: "runtime"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
eclipse {
|
||||||
|
project {
|
||||||
|
natures += 'org.springframework.ide.eclipse.core.springnature'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
javadoc {
|
||||||
|
group = 'Documentation'
|
||||||
|
description = 'Generates the Javadoc API documentation.'
|
||||||
|
title = "${rootProject.description} ${version} API"
|
||||||
|
|
||||||
|
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED
|
||||||
|
options.author = true
|
||||||
|
options.header = project.description
|
||||||
|
options.overview = 'src/api/overview.html'
|
||||||
|
options.stylesheetFile = file("src/api/stylesheet.css")
|
||||||
|
options.splitIndex = true
|
||||||
|
options.links(project.ext.javadocLinks)
|
||||||
|
|
||||||
|
source = sourceSets.main.allJava
|
||||||
|
classpath = project.sourceSets.main.compileClasspath
|
||||||
|
destinationDir = new File(buildDir, "api")
|
||||||
|
|
||||||
|
// suppress warnings due to cross-module @see and @link references;
|
||||||
|
// note that global 'api' task does display all warnings.
|
||||||
|
logging.captureStandardError LogLevel.INFO
|
||||||
|
logging.captureStandardOutput LogLevel.INFO // suppress "## warnings" message
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
test {
|
||||||
|
resources {
|
||||||
|
srcDirs = ['src/test/resources', 'src/test/java']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// enable all compiler warnings; individual projects may customize further
|
||||||
|
ext.xLintArg = '-Xlint:all'
|
||||||
|
[compileJava, compileTestJava]*.options*.compilerArgs = [xLintArg]
|
||||||
|
|
||||||
|
test {
|
||||||
|
// suppress all console output during testing unless running `gradle -i`
|
||||||
|
logging.captureStandardOutput(LogLevel.INFO)
|
||||||
|
jvmArgs "-javaagent:${configurations.jacoco.asPath}=destfile=${buildDir}/jacoco.exec,includes=*"
|
||||||
|
}
|
||||||
|
|
||||||
|
task sourcesJar(type: Jar) {
|
||||||
|
classifier = 'sources'
|
||||||
|
from sourceSets.main.allJava
|
||||||
|
}
|
||||||
|
|
||||||
|
task javadocJar(type: Jar) {
|
||||||
|
classifier = 'javadoc'
|
||||||
|
from javadoc
|
||||||
|
}
|
||||||
|
|
||||||
|
artifacts {
|
||||||
|
archives sourcesJar
|
||||||
|
archives javadocJar
|
||||||
|
}
|
||||||
|
|
||||||
|
apply plugin: 'sonar'
|
||||||
|
apply plugin: 'sonar-runner' //New for Gradle 1.5
|
||||||
|
|
||||||
|
sonar {
|
||||||
|
|
||||||
|
if (rootProject.hasProperty('sonarHostUrl')) {
|
||||||
|
server.url = rootProject.sonarHostUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
database {
|
||||||
|
if (rootProject.hasProperty('sonarJdbcUrl')) {
|
||||||
|
url = rootProject.sonarJdbcUrl
|
||||||
|
}
|
||||||
|
if (rootProject.hasProperty('sonarJdbcDriver')) {
|
||||||
|
driverClassName = rootProject.sonarJdbcDriver
|
||||||
|
}
|
||||||
|
if (rootProject.hasProperty('sonarJdbcUsername')) {
|
||||||
|
username = rootProject.sonarJdbcUsername
|
||||||
|
}
|
||||||
|
if (rootProject.hasProperty('sonarJdbcPassword')) {
|
||||||
|
password = rootProject.sonarJdbcPassword
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
project {
|
||||||
|
dynamicAnalysis = "reuseReports"
|
||||||
|
withProjectProperties { props ->
|
||||||
|
props["sonar.core.codeCoveragePlugin"] = "jacoco"
|
||||||
|
props["sonar.jacoco.reportPath"] = "${buildDir.name}/jacoco.exec"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.info("Sonar parameters used: server.url='${server.url}'; database.url='${database.url}'; database.driverClassName='${database.driverClassName}'; database.username='${database.username}'")
|
||||||
|
}
|
||||||
|
|
||||||
|
task schemaZip(type: Zip) {
|
||||||
|
group = 'Distribution'
|
||||||
|
classifier = 'schema'
|
||||||
|
description = "Builds -${classifier} archive containing all " +
|
||||||
|
"XSDs for deployment at static.springframework.org/schema."
|
||||||
|
|
||||||
|
def Properties schemas = new Properties();
|
||||||
|
def shortName = idPrefix.replaceFirst("${idPrefix}-", '')
|
||||||
|
|
||||||
|
project.sourceSets.main.resources.find {
|
||||||
|
it.path.endsWith('META-INF/spring.schemas')
|
||||||
|
}?.withInputStream { schemas.load(it) }
|
||||||
|
|
||||||
|
for (def key : schemas.keySet()) {
|
||||||
|
File xsdFile = project.sourceSets.main.resources.find {
|
||||||
|
it.path.endsWith(schemas.get(key))
|
||||||
|
}
|
||||||
|
assert xsdFile != null
|
||||||
|
into ("integration/${shortName}") {
|
||||||
|
from xsdFile.path
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
task docsZip(type: Zip) {
|
||||||
|
group = 'Distribution'
|
||||||
|
classifier = 'docs'
|
||||||
|
description = "Builds -${classifier} archive containing the JavaDoc api " +
|
||||||
|
"for deployment at static.springframework.org/spring-integration/docs."
|
||||||
|
|
||||||
|
from('.') {
|
||||||
|
include 'README.md'
|
||||||
|
}
|
||||||
|
|
||||||
|
from (javadoc) {
|
||||||
|
into 'api'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
task distZip(type: Zip, dependsOn: [docsZip, schemaZip]) {
|
||||||
|
group = 'Distribution'
|
||||||
|
classifier = 'dist'
|
||||||
|
description = "Builds -${classifier} archive, containing all jars and docs, " +
|
||||||
|
"suitable for community download page."
|
||||||
|
|
||||||
|
ext.baseDir = "${project.name}-${project.version}";
|
||||||
|
|
||||||
|
from('src/dist') {
|
||||||
|
include 'license.txt'
|
||||||
|
include 'notice.txt'
|
||||||
|
into "${baseDir}"
|
||||||
|
}
|
||||||
|
|
||||||
|
from('.') {
|
||||||
|
include 'README.md'
|
||||||
|
into "${baseDir}"
|
||||||
|
}
|
||||||
|
|
||||||
|
from(zipTree(schemaZip.archivePath)) {
|
||||||
|
into "${baseDir}/schema"
|
||||||
|
}
|
||||||
|
|
||||||
|
into ("${baseDir}/libs") {
|
||||||
|
from project.jar
|
||||||
|
from project.sourcesJar
|
||||||
|
from project.javadocJar
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create an optional "with dependencies" distribution.
|
||||||
|
// Not published by default; only for use when building from source.
|
||||||
|
task depsZip(type: Zip, dependsOn: distZip) { zipTask ->
|
||||||
|
group = 'Distribution'
|
||||||
|
classifier = 'dist-with-deps'
|
||||||
|
description = "Builds -${classifier} archive, containing everything " +
|
||||||
|
"in the -${distZip.classifier} archive plus all dependencies."
|
||||||
|
|
||||||
|
from zipTree(distZip.archivePath)
|
||||||
|
|
||||||
|
gradle.taskGraph.whenReady { taskGraph ->
|
||||||
|
if (taskGraph.hasTask(":${zipTask.name}")) {
|
||||||
|
def projectName = rootProject.name
|
||||||
|
def artifacts = new HashSet()
|
||||||
|
|
||||||
|
rootProject.configurations.runtime.resolvedConfiguration.resolvedArtifacts.each { artifact ->
|
||||||
|
def dependency = artifact.moduleVersion.id
|
||||||
|
if (!projectName.equals(dependency.name)) {
|
||||||
|
artifacts << artifact.file
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
zipTask.from(artifacts) {
|
||||||
|
into "${distZip.baseDir}/deps"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
artifacts {
|
||||||
|
archives distZip
|
||||||
|
archives docsZip
|
||||||
|
archives schemaZip
|
||||||
|
}
|
||||||
|
|
||||||
|
task dist(dependsOn: assemble) {
|
||||||
|
group = 'Distribution'
|
||||||
|
description = 'Builds -dist, -docs and -schema distribution archives.'
|
||||||
|
}
|
||||||
|
|
||||||
|
task wrapper(type: Wrapper) {
|
||||||
|
description = 'Generates gradlew[.bat] scripts'
|
||||||
|
gradleVersion = '1.5-rc-1'
|
||||||
|
}
|
||||||
1
gradle.properties
Normal file
1
gradle.properties
Normal file
@@ -0,0 +1 @@
|
|||||||
|
version=0.5.0.BUILD-SNAPSHOT
|
||||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
6
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
6
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#Mon Mar 11 17:28:12 EDT 2013
|
||||||
|
distributionBase=GRADLE_USER_HOME
|
||||||
|
distributionPath=wrapper/dists
|
||||||
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
zipStorePath=wrapper/dists
|
||||||
|
distributionUrl=http\://services.gradle.org/distributions/gradle-1.5-rc-1-bin.zip
|
||||||
164
gradlew
vendored
Executable file
164
gradlew
vendored
Executable file
@@ -0,0 +1,164 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
##
|
||||||
|
## Gradle start up script for UN*X
|
||||||
|
##
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
DEFAULT_JVM_OPTS=""
|
||||||
|
|
||||||
|
APP_NAME="Gradle"
|
||||||
|
APP_BASE_NAME=`basename "$0"`
|
||||||
|
|
||||||
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
|
MAX_FD="maximum"
|
||||||
|
|
||||||
|
warn ( ) {
|
||||||
|
echo "$*"
|
||||||
|
}
|
||||||
|
|
||||||
|
die ( ) {
|
||||||
|
echo
|
||||||
|
echo "$*"
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
# OS specific support (must be 'true' or 'false').
|
||||||
|
cygwin=false
|
||||||
|
msys=false
|
||||||
|
darwin=false
|
||||||
|
case "`uname`" in
|
||||||
|
CYGWIN* )
|
||||||
|
cygwin=true
|
||||||
|
;;
|
||||||
|
Darwin* )
|
||||||
|
darwin=true
|
||||||
|
;;
|
||||||
|
MINGW* )
|
||||||
|
msys=true
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# For Cygwin, ensure paths are in UNIX format before anything is touched.
|
||||||
|
if $cygwin ; then
|
||||||
|
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Attempt to set APP_HOME
|
||||||
|
# Resolve links: $0 may be a link
|
||||||
|
PRG="$0"
|
||||||
|
# Need this for relative symlinks.
|
||||||
|
while [ -h "$PRG" ] ; do
|
||||||
|
ls=`ls -ld "$PRG"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
PRG="$link"
|
||||||
|
else
|
||||||
|
PRG=`dirname "$PRG"`"/$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
SAVED="`pwd`"
|
||||||
|
cd "`dirname \"$PRG\"`/" >&-
|
||||||
|
APP_HOME="`pwd -P`"
|
||||||
|
cd "$SAVED" >&-
|
||||||
|
|
||||||
|
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||||
|
|
||||||
|
# Determine the Java command to use to start the JVM.
|
||||||
|
if [ -n "$JAVA_HOME" ] ; then
|
||||||
|
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||||
|
# IBM's JDK on AIX uses strange locations for the executables
|
||||||
|
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||||
|
else
|
||||||
|
JAVACMD="$JAVA_HOME/bin/java"
|
||||||
|
fi
|
||||||
|
if [ ! -x "$JAVACMD" ] ; then
|
||||||
|
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||||
|
|
||||||
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
location of your Java installation."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
JAVACMD="java"
|
||||||
|
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
|
|
||||||
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
location of your Java installation."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Increase the maximum file descriptors if we can.
|
||||||
|
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
|
||||||
|
MAX_FD_LIMIT=`ulimit -H -n`
|
||||||
|
if [ $? -eq 0 ] ; then
|
||||||
|
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||||
|
MAX_FD="$MAX_FD_LIMIT"
|
||||||
|
fi
|
||||||
|
ulimit -n $MAX_FD
|
||||||
|
if [ $? -ne 0 ] ; then
|
||||||
|
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For Darwin, add options to specify how the application appears in the dock
|
||||||
|
if $darwin; then
|
||||||
|
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For Cygwin, switch paths to Windows format before running java
|
||||||
|
if $cygwin ; then
|
||||||
|
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||||
|
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||||
|
|
||||||
|
# We build the pattern for arguments to be converted via cygpath
|
||||||
|
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||||
|
SEP=""
|
||||||
|
for dir in $ROOTDIRSRAW ; do
|
||||||
|
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||||
|
SEP="|"
|
||||||
|
done
|
||||||
|
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||||
|
# Add a user-defined pattern to the cygpath arguments
|
||||||
|
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||||
|
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||||
|
fi
|
||||||
|
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||||
|
i=0
|
||||||
|
for arg in "$@" ; do
|
||||||
|
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||||
|
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||||
|
|
||||||
|
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||||
|
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||||
|
else
|
||||||
|
eval `echo args$i`="\"$arg\""
|
||||||
|
fi
|
||||||
|
i=$((i+1))
|
||||||
|
done
|
||||||
|
case $i in
|
||||||
|
(0) set -- ;;
|
||||||
|
(1) set -- "$args0" ;;
|
||||||
|
(2) set -- "$args0" "$args1" ;;
|
||||||
|
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||||
|
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||||
|
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||||
|
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||||
|
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||||
|
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||||
|
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
|
||||||
|
function splitJvmOpts() {
|
||||||
|
JVM_OPTS=("$@")
|
||||||
|
}
|
||||||
|
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
|
||||||
|
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
|
||||||
|
|
||||||
|
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
|
||||||
90
gradlew.bat
vendored
Normal file
90
gradlew.bat
vendored
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
@if "%DEBUG%" == "" @echo off
|
||||||
|
@rem ##########################################################################
|
||||||
|
@rem
|
||||||
|
@rem Gradle startup script for Windows
|
||||||
|
@rem
|
||||||
|
@rem ##########################################################################
|
||||||
|
|
||||||
|
@rem Set local scope for the variables with windows NT shell
|
||||||
|
if "%OS%"=="Windows_NT" setlocal
|
||||||
|
|
||||||
|
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
set DEFAULT_JVM_OPTS=
|
||||||
|
|
||||||
|
set DIRNAME=%~dp0
|
||||||
|
if "%DIRNAME%" == "" set DIRNAME=.
|
||||||
|
set APP_BASE_NAME=%~n0
|
||||||
|
set APP_HOME=%DIRNAME%
|
||||||
|
|
||||||
|
@rem Find java.exe
|
||||||
|
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||||
|
|
||||||
|
set JAVA_EXE=java.exe
|
||||||
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
|
if "%ERRORLEVEL%" == "0" goto init
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
echo location of your Java installation.
|
||||||
|
|
||||||
|
goto fail
|
||||||
|
|
||||||
|
:findJavaFromJavaHome
|
||||||
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
|
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||||
|
|
||||||
|
if exist "%JAVA_EXE%" goto init
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||||
|
echo.
|
||||||
|
echo Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
echo location of your Java installation.
|
||||||
|
|
||||||
|
goto fail
|
||||||
|
|
||||||
|
:init
|
||||||
|
@rem Get command-line arguments, handling Windowz variants
|
||||||
|
|
||||||
|
if not "%OS%" == "Windows_NT" goto win9xME_args
|
||||||
|
if "%@eval[2+2]" == "4" goto 4NT_args
|
||||||
|
|
||||||
|
:win9xME_args
|
||||||
|
@rem Slurp the command line arguments.
|
||||||
|
set CMD_LINE_ARGS=
|
||||||
|
set _SKIP=2
|
||||||
|
|
||||||
|
:win9xME_args_slurp
|
||||||
|
if "x%~1" == "x" goto execute
|
||||||
|
|
||||||
|
set CMD_LINE_ARGS=%*
|
||||||
|
goto execute
|
||||||
|
|
||||||
|
:4NT_args
|
||||||
|
@rem Get arguments from the 4NT Shell from JP Software
|
||||||
|
set CMD_LINE_ARGS=%$
|
||||||
|
|
||||||
|
:execute
|
||||||
|
@rem Setup the command line
|
||||||
|
|
||||||
|
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||||
|
|
||||||
|
@rem Execute Gradle
|
||||||
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
||||||
|
|
||||||
|
:end
|
||||||
|
@rem End local scope for the variables with windows NT shell
|
||||||
|
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||||
|
|
||||||
|
:fail
|
||||||
|
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||||
|
rem the _cmd.exe /c_ return code!
|
||||||
|
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||||
|
exit /b 1
|
||||||
|
|
||||||
|
:mainEnd
|
||||||
|
if "%OS%"=="Windows_NT" endlocal
|
||||||
|
|
||||||
|
:omega
|
||||||
227
pom.xml
227
pom.xml
@@ -1,227 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
|
||||||
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>org.springframework.integration</groupId>
|
|
||||||
<artifactId>spring-integration-aws</artifactId>
|
|
||||||
<version>0.5.0.BUILD-SNAPSHOT</version>
|
|
||||||
<name>Spring Integration Amazon Web Services Support</name>
|
|
||||||
<licenses>
|
|
||||||
<license>
|
|
||||||
<name>The Apache Software License, Version 2.0</name>
|
|
||||||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
|
||||||
<distribution>repo</distribution>
|
|
||||||
</license>
|
|
||||||
</licenses>
|
|
||||||
|
|
||||||
<prerequisites>
|
|
||||||
<maven>2.2.1</maven>
|
|
||||||
</prerequisites>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<spring.integration.version>2.2.0.RELEASE</spring.integration.version>
|
|
||||||
<spring.test.version>3.1.3.RELEASE</spring.test.version>
|
|
||||||
<aws.sdk.version>1.3.32</aws.sdk.version>
|
|
||||||
<commons.codec.version>1.5</commons.codec.version>
|
|
||||||
<commons.logging.version>1.1.1</commons.logging.version>
|
|
||||||
<commons.io.version>2.0.1</commons.io.version>
|
|
||||||
<java.mail.version>1.4.4</java.mail.version>
|
|
||||||
<jackson.version>1.9.11</jackson.version>
|
|
||||||
<apache.httpclient.version>4.1.1</apache.httpclient.version>
|
|
||||||
<hamcrest.version>1.1</hamcrest.version>
|
|
||||||
<junit.version>4.11</junit.version>
|
|
||||||
<mockito.version>1.9.0</mockito.version>
|
|
||||||
<project.build.sourceEncoding>UTF8</project.build.sourceEncoding>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/java</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*</include>
|
|
||||||
</includes>
|
|
||||||
<excludes>
|
|
||||||
<exclude>**/*.java</exclude>
|
|
||||||
</excludes>
|
|
||||||
</resource>
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/resources</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*</include>
|
|
||||||
</includes>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
<testResources>
|
|
||||||
<testResource>
|
|
||||||
<directory>src/test/java</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*</include>
|
|
||||||
</includes>
|
|
||||||
<excludes>
|
|
||||||
<exclude>**/*.java</exclude>
|
|
||||||
</excludes>
|
|
||||||
</testResource>
|
|
||||||
<testResource>
|
|
||||||
<directory>src/test/resources</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*</include>
|
|
||||||
</includes>
|
|
||||||
</testResource>
|
|
||||||
</testResources>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<version>3.0</version>
|
|
||||||
<configuration>
|
|
||||||
<source>1.6</source>
|
|
||||||
<target>1.6</target>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<version>2.13</version>
|
|
||||||
<configuration>
|
|
||||||
<includes>
|
|
||||||
<include>**/*Tests.java</include>
|
|
||||||
</includes>
|
|
||||||
<excludes>
|
|
||||||
<exclude>**/*Abstract*.java</exclude>
|
|
||||||
<exclude>**/*AWSTests.java</exclude>
|
|
||||||
</excludes>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>springsource-libs-milestone</id>
|
|
||||||
<name>Spring Framework Maven Milestone Repository</name>
|
|
||||||
<url>https://repo.springsource.org/libs-milestone</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.amazonaws</groupId>
|
|
||||||
<artifactId>aws-java-sdk</artifactId>
|
|
||||||
<version>${aws.sdk.version}</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-codec</groupId>
|
|
||||||
<artifactId>commons-codec</artifactId>
|
|
||||||
<version>${commons.codec.version}</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-logging</groupId>
|
|
||||||
<artifactId>commons-logging</artifactId>
|
|
||||||
<version>${commons.logging.version}</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-io</groupId>
|
|
||||||
<artifactId>commons-io</artifactId>
|
|
||||||
<version>${commons.io.version}</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>javax.mail</groupId>
|
|
||||||
<artifactId>mail</artifactId>
|
|
||||||
<version>${java.mail.version}</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.integration</groupId>
|
|
||||||
<artifactId>spring-integration-core</artifactId>
|
|
||||||
<version>${spring.integration.version}</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.integration</groupId>
|
|
||||||
<artifactId>spring-integration-mail</artifactId>
|
|
||||||
<version>${spring.integration.version}</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.codehaus.jackson</groupId>
|
|
||||||
<artifactId>jackson-core-asl</artifactId>
|
|
||||||
<version>${jackson.version}</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.codehaus.jackson</groupId>
|
|
||||||
<artifactId>jackson-mapper-asl</artifactId>
|
|
||||||
<version>${jackson.version}</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.httpcomponents</groupId>
|
|
||||||
<artifactId>httpclient</artifactId>
|
|
||||||
<version>${apache.httpclient.version}</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.httpcomponents</groupId>
|
|
||||||
<artifactId>httpcore</artifactId>
|
|
||||||
<version>${apache.httpclient.version}</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.integration</groupId>
|
|
||||||
<artifactId>spring-integration-test</artifactId>
|
|
||||||
<version>${spring.integration.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.hamcrest</groupId>
|
|
||||||
<artifactId>hamcrest-core</artifactId>
|
|
||||||
<version>${hamcrest.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>junit</groupId>
|
|
||||||
<artifactId>junit</artifactId>
|
|
||||||
<version>${junit.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.mockito</groupId>
|
|
||||||
<artifactId>mockito-all</artifactId>
|
|
||||||
<version>${mockito.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.mockito</groupId>
|
|
||||||
<artifactId>mockito-core</artifactId>
|
|
||||||
<version>${mockito.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework</groupId>
|
|
||||||
<artifactId>spring-test</artifactId>
|
|
||||||
<version>${spring.test.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
|
||||||
</project>
|
|
||||||
66
publish-maven.gradle
Normal file
66
publish-maven.gradle
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
apply plugin: 'maven'
|
||||||
|
|
||||||
|
ext.optionalDeps = []
|
||||||
|
ext.providedDeps = []
|
||||||
|
|
||||||
|
ext.optional = { optionalDeps << it }
|
||||||
|
ext.provided = { providedDeps << it }
|
||||||
|
|
||||||
|
install {
|
||||||
|
repositories.mavenInstaller {
|
||||||
|
customizePom(pom, project)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def customizePom(pom, gradleProject) {
|
||||||
|
pom.whenConfigured { generatedPom ->
|
||||||
|
// respect 'optional' and 'provided' dependencies
|
||||||
|
gradleProject.optionalDeps.each { dep ->
|
||||||
|
generatedPom.dependencies.find { it.artifactId == dep.name }?.optional = true
|
||||||
|
}
|
||||||
|
gradleProject.providedDeps.each { dep ->
|
||||||
|
generatedPom.dependencies.find { it.artifactId == dep.name }?.scope = 'provided'
|
||||||
|
}
|
||||||
|
|
||||||
|
// eliminate test-scoped dependencies (no need in maven central poms)
|
||||||
|
generatedPom.dependencies.removeAll { dep ->
|
||||||
|
dep.scope == 'test'
|
||||||
|
}
|
||||||
|
|
||||||
|
// add all items necessary for maven central publication
|
||||||
|
generatedPom.project {
|
||||||
|
name = gradleProject.description
|
||||||
|
description = gradleProject.description
|
||||||
|
url = 'https://github.com/SpringSource/spring-integration-extensions'
|
||||||
|
organization {
|
||||||
|
name = 'SpringSource'
|
||||||
|
url = 'http://springsource.org'
|
||||||
|
}
|
||||||
|
licenses {
|
||||||
|
license {
|
||||||
|
name 'The Apache Software License, Version 2.0'
|
||||||
|
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
||||||
|
distribution 'repo'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scm {
|
||||||
|
url = 'https://github.com/SpringSource/spring-integration-extensions'
|
||||||
|
connection = 'scm:git:git://github.com/SpringSource/spring-integration-extensions'
|
||||||
|
developerConnection = 'scm:git:git://github.com/SpringSource/spring-integration-extensions'
|
||||||
|
}
|
||||||
|
|
||||||
|
developers {
|
||||||
|
developer {
|
||||||
|
id = 'amolnayak311'
|
||||||
|
name = 'Amol Nayak'
|
||||||
|
email = 'amolnayak311@gmail.com'
|
||||||
|
}
|
||||||
|
developer {
|
||||||
|
id = 'ghillert'
|
||||||
|
name = 'Gunnar Hillert'
|
||||||
|
email = 'ghillert@vmware.com'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
22
src/api/overview.html
Normal file
22
src/api/overview.html
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
This document is the API specification for the Spring Integration AWS Extension
|
||||||
|
<hr/>
|
||||||
|
<div id="overviewBody">
|
||||||
|
<p>
|
||||||
|
For further API reference and developer documentation, see the
|
||||||
|
<a href="http://static.springsource.org/spring-integration/reference" target="_top">Spring
|
||||||
|
Integration reference documentation</a>.
|
||||||
|
That documentation contains more detailed, developer-targeted
|
||||||
|
descriptions, with conceptual overviews, definitions of terms,
|
||||||
|
workarounds, and working code examples.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
If you are interested in commercial training, consultancy, and
|
||||||
|
support for Spring Integration, please visit <a href="http://www.springsource.com" target="_top">
|
||||||
|
http://www.springsource.com</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
541
src/api/stylesheet.css
Normal file
541
src/api/stylesheet.css
Normal file
@@ -0,0 +1,541 @@
|
|||||||
|
/* Javadoc style sheet */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Overall document style
|
||||||
|
*/
|
||||||
|
body {
|
||||||
|
background-color:#ffffff;
|
||||||
|
color:#353833;
|
||||||
|
font-family:Arial, Helvetica, sans-serif;
|
||||||
|
font-size:76%;
|
||||||
|
margin:0;
|
||||||
|
}
|
||||||
|
a:link, a:visited {
|
||||||
|
text-decoration:none;
|
||||||
|
color:#4c6b87;
|
||||||
|
}
|
||||||
|
a:hover, a:focus {
|
||||||
|
text-decoration:none;
|
||||||
|
color:#bb7a2a;
|
||||||
|
}
|
||||||
|
a:active {
|
||||||
|
text-decoration:none;
|
||||||
|
color:#4c6b87;
|
||||||
|
}
|
||||||
|
a[name] {
|
||||||
|
color:#353833;
|
||||||
|
}
|
||||||
|
a[name]:hover {
|
||||||
|
text-decoration:none;
|
||||||
|
color:#353833;
|
||||||
|
}
|
||||||
|
pre {
|
||||||
|
font-size:1.3em;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size:1.8em;
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
font-size:1.5em;
|
||||||
|
}
|
||||||
|
h3 {
|
||||||
|
font-size:1.4em;
|
||||||
|
}
|
||||||
|
h4 {
|
||||||
|
font-size:1.3em;
|
||||||
|
}
|
||||||
|
h5 {
|
||||||
|
font-size:1.2em;
|
||||||
|
}
|
||||||
|
h6 {
|
||||||
|
font-size:1.1em;
|
||||||
|
}
|
||||||
|
ul {
|
||||||
|
list-style-type:disc;
|
||||||
|
}
|
||||||
|
code, tt {
|
||||||
|
font-size:1.2em;
|
||||||
|
}
|
||||||
|
dt code {
|
||||||
|
font-size:1.2em;
|
||||||
|
}
|
||||||
|
table tr td dt code {
|
||||||
|
font-size:1.2em;
|
||||||
|
vertical-align:top;
|
||||||
|
}
|
||||||
|
sup {
|
||||||
|
font-size:.6em;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Document title and Copyright styles
|
||||||
|
*/
|
||||||
|
.clear {
|
||||||
|
clear:both;
|
||||||
|
height:0px;
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
.aboutLanguage {
|
||||||
|
float:right;
|
||||||
|
padding:0px 21px;
|
||||||
|
font-size:.8em;
|
||||||
|
z-index:200;
|
||||||
|
margin-top:-7px;
|
||||||
|
}
|
||||||
|
.legalCopy {
|
||||||
|
margin-left:.5em;
|
||||||
|
}
|
||||||
|
.bar a, .bar a:link, .bar a:visited, .bar a:active {
|
||||||
|
color:#FFFFFF;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
.bar a:hover, .bar a:focus {
|
||||||
|
color:#bb7a2a;
|
||||||
|
}
|
||||||
|
.tab {
|
||||||
|
background-color:#0066FF;
|
||||||
|
background-image:url(resources/titlebar.gif);
|
||||||
|
background-position:left top;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
color:#ffffff;
|
||||||
|
padding:8px;
|
||||||
|
width:5em;
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Navigation bar styles
|
||||||
|
*/
|
||||||
|
.bar {
|
||||||
|
background-image:url(resources/background.gif);
|
||||||
|
background-repeat:repeat-x;
|
||||||
|
color:#FFFFFF;
|
||||||
|
padding:.8em .5em .4em .8em;
|
||||||
|
height:auto;/*height:1.8em;*/
|
||||||
|
font-size:1em;
|
||||||
|
margin:0;
|
||||||
|
}
|
||||||
|
.topNav {
|
||||||
|
background-image:url(resources/background.gif);
|
||||||
|
background-repeat:repeat-x;
|
||||||
|
color:#FFFFFF;
|
||||||
|
float:left;
|
||||||
|
padding:0;
|
||||||
|
width:100%;
|
||||||
|
clear:right;
|
||||||
|
height:2.8em;
|
||||||
|
padding-top:10px;
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
.bottomNav {
|
||||||
|
margin-top:10px;
|
||||||
|
background-image:url(resources/background.gif);
|
||||||
|
background-repeat:repeat-x;
|
||||||
|
color:#FFFFFF;
|
||||||
|
float:left;
|
||||||
|
padding:0;
|
||||||
|
width:100%;
|
||||||
|
clear:right;
|
||||||
|
height:2.8em;
|
||||||
|
padding-top:10px;
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
.subNav {
|
||||||
|
background-color:#dee3e9;
|
||||||
|
border-bottom:1px solid #9eadc0;
|
||||||
|
float:left;
|
||||||
|
width:100%;
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
.subNav div {
|
||||||
|
clear:left;
|
||||||
|
float:left;
|
||||||
|
padding:0 0 5px 6px;
|
||||||
|
}
|
||||||
|
ul.navList, ul.subNavList {
|
||||||
|
float:left;
|
||||||
|
margin:0 25px 0 0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
ul.navList li{
|
||||||
|
list-style:none;
|
||||||
|
float:left;
|
||||||
|
padding:3px 6px;
|
||||||
|
}
|
||||||
|
ul.subNavList li{
|
||||||
|
list-style:none;
|
||||||
|
float:left;
|
||||||
|
font-size:90%;
|
||||||
|
}
|
||||||
|
.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited {
|
||||||
|
color:#FFFFFF;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
.topNav a:hover, .bottomNav a:hover {
|
||||||
|
text-decoration:none;
|
||||||
|
color:#bb7a2a;
|
||||||
|
}
|
||||||
|
.navBarCell1Rev {
|
||||||
|
background-image:url(resources/tab.gif);
|
||||||
|
background-color:#a88834;
|
||||||
|
color:#FFFFFF;
|
||||||
|
margin: auto 5px;
|
||||||
|
border:1px solid #c9aa44;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Page header and footer styles
|
||||||
|
*/
|
||||||
|
.header, .footer {
|
||||||
|
clear:both;
|
||||||
|
margin:0 20px;
|
||||||
|
padding:5px 0 0 0;
|
||||||
|
}
|
||||||
|
.indexHeader {
|
||||||
|
margin:10px;
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
|
.indexHeader h1 {
|
||||||
|
font-size:1.3em;
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
color:#2c4557;
|
||||||
|
margin:10px 0;
|
||||||
|
}
|
||||||
|
.subTitle {
|
||||||
|
margin:5px 0 0 0;
|
||||||
|
}
|
||||||
|
.header ul {
|
||||||
|
margin:0 0 25px 0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
.footer ul {
|
||||||
|
margin:20px 0 5px 0;
|
||||||
|
}
|
||||||
|
.header ul li, .footer ul li {
|
||||||
|
list-style:none;
|
||||||
|
font-size:1.2em;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Heading styles
|
||||||
|
*/
|
||||||
|
div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 {
|
||||||
|
background-color:#dee3e9;
|
||||||
|
border-top:1px solid #9eadc0;
|
||||||
|
border-bottom:1px solid #9eadc0;
|
||||||
|
margin:0 0 6px -8px;
|
||||||
|
padding:2px 5px;
|
||||||
|
}
|
||||||
|
ul.blockList ul.blockList ul.blockList li.blockList h3 {
|
||||||
|
background-color:#dee3e9;
|
||||||
|
border-top:1px solid #9eadc0;
|
||||||
|
border-bottom:1px solid #9eadc0;
|
||||||
|
margin:0 0 6px -8px;
|
||||||
|
padding:2px 5px;
|
||||||
|
}
|
||||||
|
ul.blockList ul.blockList li.blockList h3 {
|
||||||
|
padding:0;
|
||||||
|
margin:15px 0;
|
||||||
|
}
|
||||||
|
ul.blockList li.blockList h2 {
|
||||||
|
padding:0px 0 20px 0;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Page layout container styles
|
||||||
|
*/
|
||||||
|
.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer {
|
||||||
|
clear:both;
|
||||||
|
padding:10px 20px;
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
|
.indexContainer {
|
||||||
|
margin:10px;
|
||||||
|
position:relative;
|
||||||
|
font-size:1.0em;
|
||||||
|
}
|
||||||
|
.indexContainer h2 {
|
||||||
|
font-size:1.1em;
|
||||||
|
padding:0 0 3px 0;
|
||||||
|
}
|
||||||
|
.indexContainer ul {
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
.indexContainer ul li {
|
||||||
|
list-style:none;
|
||||||
|
}
|
||||||
|
.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt {
|
||||||
|
font-size:1.1em;
|
||||||
|
font-weight:bold;
|
||||||
|
margin:10px 0 0 0;
|
||||||
|
color:#4E4E4E;
|
||||||
|
}
|
||||||
|
.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd {
|
||||||
|
margin:10px 0 10px 20px;
|
||||||
|
}
|
||||||
|
.serializedFormContainer dl.nameValue dt {
|
||||||
|
margin-left:1px;
|
||||||
|
font-size:1.1em;
|
||||||
|
display:inline;
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
.serializedFormContainer dl.nameValue dd {
|
||||||
|
margin:0 0 0 1px;
|
||||||
|
font-size:1.1em;
|
||||||
|
display:inline;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
List styles
|
||||||
|
*/
|
||||||
|
ul.horizontal li {
|
||||||
|
display:inline;
|
||||||
|
font-size:0.9em;
|
||||||
|
}
|
||||||
|
ul.inheritance {
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
ul.inheritance li {
|
||||||
|
display:inline;
|
||||||
|
list-style:none;
|
||||||
|
}
|
||||||
|
ul.inheritance li ul.inheritance {
|
||||||
|
margin-left:15px;
|
||||||
|
padding-left:15px;
|
||||||
|
padding-top:1px;
|
||||||
|
}
|
||||||
|
ul.blockList, ul.blockListLast {
|
||||||
|
margin:10px 0 10px 0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
ul.blockList li.blockList, ul.blockListLast li.blockList {
|
||||||
|
list-style:none;
|
||||||
|
margin-bottom:25px;
|
||||||
|
}
|
||||||
|
ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList {
|
||||||
|
padding:0px 20px 5px 10px;
|
||||||
|
border:1px solid #9eadc0;
|
||||||
|
background-color:#f9f9f9;
|
||||||
|
}
|
||||||
|
ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList {
|
||||||
|
padding:0 0 5px 8px;
|
||||||
|
background-color:#ffffff;
|
||||||
|
border:1px solid #9eadc0;
|
||||||
|
border-top:none;
|
||||||
|
}
|
||||||
|
ul.blockList ul.blockList ul.blockList ul.blockList li.blockList {
|
||||||
|
margin-left:0;
|
||||||
|
padding-left:0;
|
||||||
|
padding-bottom:15px;
|
||||||
|
border:none;
|
||||||
|
border-bottom:1px solid #9eadc0;
|
||||||
|
}
|
||||||
|
ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast {
|
||||||
|
list-style:none;
|
||||||
|
border-bottom:none;
|
||||||
|
padding-bottom:0;
|
||||||
|
}
|
||||||
|
table tr td dl, table tr td dl dt, table tr td dl dd {
|
||||||
|
margin-top:0;
|
||||||
|
margin-bottom:1px;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Table styles
|
||||||
|
*/
|
||||||
|
.contentContainer table, .classUseContainer table, .constantValuesContainer table {
|
||||||
|
border-bottom:1px solid #9eadc0;
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table {
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
.contentContainer .description table, .contentContainer .details table {
|
||||||
|
border-bottom:none;
|
||||||
|
}
|
||||||
|
.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{
|
||||||
|
vertical-align:top;
|
||||||
|
padding-right:20px;
|
||||||
|
}
|
||||||
|
.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast,
|
||||||
|
.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast,
|
||||||
|
.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne,
|
||||||
|
.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne {
|
||||||
|
padding-right:3px;
|
||||||
|
}
|
||||||
|
.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption {
|
||||||
|
position:relative;
|
||||||
|
text-align:left;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
color:#FFFFFF;
|
||||||
|
font-weight:bold;
|
||||||
|
clear:none;
|
||||||
|
overflow:hidden;
|
||||||
|
padding:0px;
|
||||||
|
margin:0px;
|
||||||
|
}
|
||||||
|
caption a:link, caption a:hover, caption a:active, caption a:visited {
|
||||||
|
color:#FFFFFF;
|
||||||
|
}
|
||||||
|
.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span {
|
||||||
|
white-space:nowrap;
|
||||||
|
padding-top:8px;
|
||||||
|
padding-left:8px;
|
||||||
|
display:block;
|
||||||
|
float:left;
|
||||||
|
background-image:url(resources/titlebar.gif);
|
||||||
|
height:18px;
|
||||||
|
}
|
||||||
|
.contentContainer ul.blockList li.blockList caption span.activeTableTab span {
|
||||||
|
white-space:nowrap;
|
||||||
|
padding-top:8px;
|
||||||
|
padding-left:8px;
|
||||||
|
display:block;
|
||||||
|
float:left;
|
||||||
|
background-image:url(resources/activetitlebar.gif);
|
||||||
|
height:18px;
|
||||||
|
}
|
||||||
|
.contentContainer ul.blockList li.blockList caption span.tableTab span {
|
||||||
|
white-space:nowrap;
|
||||||
|
padding-top:8px;
|
||||||
|
padding-left:8px;
|
||||||
|
display:block;
|
||||||
|
float:left;
|
||||||
|
background-image:url(resources/titlebar.gif);
|
||||||
|
height:18px;
|
||||||
|
}
|
||||||
|
.contentContainer ul.blockList li.blockList caption span.tableTab, .contentContainer ul.blockList li.blockList caption span.activeTableTab {
|
||||||
|
padding-top:0px;
|
||||||
|
padding-left:0px;
|
||||||
|
background-image:none;
|
||||||
|
float:none;
|
||||||
|
display:inline;
|
||||||
|
}
|
||||||
|
.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd {
|
||||||
|
width:10px;
|
||||||
|
background-image:url(resources/titlebar_end.gif);
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
background-position:top right;
|
||||||
|
position:relative;
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
.contentContainer ul.blockList li.blockList .activeTableTab .tabEnd {
|
||||||
|
width:10px;
|
||||||
|
margin-right:5px;
|
||||||
|
background-image:url(resources/activetitlebar_end.gif);
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
background-position:top right;
|
||||||
|
position:relative;
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
.contentContainer ul.blockList li.blockList .tableTab .tabEnd {
|
||||||
|
width:10px;
|
||||||
|
margin-right:5px;
|
||||||
|
background-image:url(resources/titlebar_end.gif);
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
background-position:top right;
|
||||||
|
position:relative;
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
ul.blockList ul.blockList li.blockList table {
|
||||||
|
margin:0 0 12px 0px;
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
.tableSubHeadingColor {
|
||||||
|
background-color: #EEEEFF;
|
||||||
|
}
|
||||||
|
.altColor {
|
||||||
|
background-color:#eeeeef;
|
||||||
|
}
|
||||||
|
.rowColor {
|
||||||
|
background-color:#ffffff;
|
||||||
|
}
|
||||||
|
.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td {
|
||||||
|
text-align:left;
|
||||||
|
padding:3px 3px 3px 7px;
|
||||||
|
}
|
||||||
|
th.colFirst, th.colLast, th.colOne, .constantValuesContainer th {
|
||||||
|
background:#dee3e9;
|
||||||
|
border-top:1px solid #9eadc0;
|
||||||
|
border-bottom:1px solid #9eadc0;
|
||||||
|
text-align:left;
|
||||||
|
padding:3px 3px 3px 7px;
|
||||||
|
}
|
||||||
|
td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover {
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
td.colFirst, th.colFirst {
|
||||||
|
border-left:1px solid #9eadc0;
|
||||||
|
white-space:nowrap;
|
||||||
|
}
|
||||||
|
td.colLast, th.colLast {
|
||||||
|
border-right:1px solid #9eadc0;
|
||||||
|
}
|
||||||
|
td.colOne, th.colOne {
|
||||||
|
border-right:1px solid #9eadc0;
|
||||||
|
border-left:1px solid #9eadc0;
|
||||||
|
}
|
||||||
|
table.overviewSummary {
|
||||||
|
padding:0px;
|
||||||
|
margin-left:0px;
|
||||||
|
}
|
||||||
|
table.overviewSummary td.colFirst, table.overviewSummary th.colFirst,
|
||||||
|
table.overviewSummary td.colOne, table.overviewSummary th.colOne {
|
||||||
|
width:25%;
|
||||||
|
vertical-align:middle;
|
||||||
|
}
|
||||||
|
table.packageSummary td.colFirst, table.overviewSummary th.colFirst {
|
||||||
|
width:25%;
|
||||||
|
vertical-align:middle;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Content styles
|
||||||
|
*/
|
||||||
|
.description pre {
|
||||||
|
margin-top:0;
|
||||||
|
}
|
||||||
|
.deprecatedContent {
|
||||||
|
margin:0;
|
||||||
|
padding:10px 0;
|
||||||
|
}
|
||||||
|
.docSummary {
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Formatting effect styles
|
||||||
|
*/
|
||||||
|
.sourceLineNo {
|
||||||
|
color:green;
|
||||||
|
padding:0 30px 0 0;
|
||||||
|
}
|
||||||
|
h1.hidden {
|
||||||
|
visibility:hidden;
|
||||||
|
overflow:hidden;
|
||||||
|
font-size:.9em;
|
||||||
|
}
|
||||||
|
.block {
|
||||||
|
display:block;
|
||||||
|
margin:3px 0 0 0;
|
||||||
|
}
|
||||||
|
.strong {
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Spring
|
||||||
|
*/
|
||||||
|
|
||||||
|
pre.code {
|
||||||
|
background-color: #F8F8F8;
|
||||||
|
border: 1px solid #CCCCCC;
|
||||||
|
border-radius: 3px 3px 3px 3px;
|
||||||
|
overflow: auto;
|
||||||
|
padding: 10px;
|
||||||
|
margin: 4px 20px 2px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre.code code, pre.code code * {
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre.code code, pre.code code * {
|
||||||
|
padding: 0 !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
201
src/dist/license.txt
vendored
Normal file
201
src/dist/license.txt
vendored
Normal file
@@ -0,0 +1,201 @@
|
|||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
21
src/dist/notice.txt
vendored
Normal file
21
src/dist/notice.txt
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
========================================================================
|
||||||
|
== NOTICE file corresponding to section 4 d of the Apache License, ==
|
||||||
|
== Version 2.0, in this case for the Spring Integration distribution. ==
|
||||||
|
========================================================================
|
||||||
|
|
||||||
|
This product includes software developed by
|
||||||
|
the Apache Software Foundation (http://www.apache.org).
|
||||||
|
|
||||||
|
The end-user documentation included with a redistribution, if any,
|
||||||
|
must include the following acknowledgement:
|
||||||
|
|
||||||
|
"This product includes software developed by the Spring Framework
|
||||||
|
Project (http://www.springframework.org)."
|
||||||
|
|
||||||
|
Alternatively, this acknowledgement may appear in the software itself,
|
||||||
|
if and wherever such third-party acknowledgements normally appear.
|
||||||
|
|
||||||
|
The names "Spring", "Spring Framework", and "Spring Integration" must
|
||||||
|
not be used to endorse or promote products derived from this software
|
||||||
|
without prior written permission. For written permission, please contact
|
||||||
|
enquiries@springsource.com.
|
||||||
@@ -18,6 +18,7 @@ package org.springframework.integration.aws.config.xml;
|
|||||||
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
|
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
|
||||||
import org.springframework.beans.factory.support.BeanDefinitionReaderUtils;
|
import org.springframework.beans.factory.support.BeanDefinitionReaderUtils;
|
||||||
import org.springframework.beans.factory.xml.ParserContext;
|
import org.springframework.beans.factory.xml.ParserContext;
|
||||||
|
import org.springframework.integration.aws.core.AWSCredentials;
|
||||||
import org.springframework.integration.aws.core.BasicAWSCredentials;
|
import org.springframework.integration.aws.core.BasicAWSCredentials;
|
||||||
import org.springframework.integration.aws.core.PropertiesAWSCredentials;
|
import org.springframework.integration.aws.core.PropertiesAWSCredentials;
|
||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
@@ -44,13 +45,12 @@ public final class AmazonWSParserUtils {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers the {@link AmazonWSCredentials} bean with the current ApplicationContext if
|
* Registers the {@link AWSCredentials} bean with the current ApplicationContext if
|
||||||
* accessKey and secretKey is given, if the credentials-ref is given, the given value
|
* accessKey and secretKey is given, if the credentials-ref is given, the given value
|
||||||
* is returned.
|
* is returned.
|
||||||
*
|
*
|
||||||
* @param element
|
* @param element
|
||||||
* @param parserContext
|
* @param parserContext
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public static String getAmazonWSCredentials(Element element,ParserContext parserContext) {
|
public static String getAmazonWSCredentials(Element element,ParserContext parserContext) {
|
||||||
//TODO: Some mechanism to use the same instance with same ACCESS_KEY to be implemented
|
//TODO: Some mechanism to use the same instance with same ACCESS_KEY to be implemented
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ public class AWSCommonUtils {
|
|||||||
/**
|
/**
|
||||||
* Generates the MD5 hash of the file provided
|
* Generates the MD5 hash of the file provided
|
||||||
* @param file
|
* @param file
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public static byte[] getContentsMD5AsBytes(File file) {
|
public static byte[] getContentsMD5AsBytes(File file) {
|
||||||
|
|
||||||
@@ -78,23 +77,20 @@ public class AWSCommonUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Compute the MD5 hash of the provided String
|
* Compute the MD5 hash of the provided String
|
||||||
* @param the String whose MD5 sun is to be computed
|
* @param contents The String whose MD5 sun is to be computed
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public static byte[] getContentsMD5AsBytes(String contents) {
|
public static byte[] getContentsMD5AsBytes(String contents) {
|
||||||
try {
|
try {
|
||||||
MessageDigest digest = MessageDigest.getInstance("MD5");
|
MessageDigest digest = MessageDigest.getInstance("MD5");
|
||||||
return digest.digest(contents.getBytes());
|
return digest.digest(contents.getBytes());
|
||||||
} catch (NoSuchAlgorithmException e) {
|
} catch (NoSuchAlgorithmException e) {
|
||||||
logger.error("Unable to digest the input String", e);
|
throw new IllegalStateException(String.format("Unable to digest the input String '%s' using MD5.", contents), e);
|
||||||
}
|
}
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encodes the given raw bytes into hex
|
* Encodes the given raw bytes into hex
|
||||||
* @param rawBytes
|
* @param rawBytes
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public static String encodeHex(byte[] rawBytes) throws UnsupportedEncodingException {
|
public static String encodeHex(byte[] rawBytes) throws UnsupportedEncodingException {
|
||||||
return new String(Hex.encodeHex(rawBytes));
|
return new String(Hex.encodeHex(rawBytes));
|
||||||
@@ -104,7 +100,6 @@ public class AWSCommonUtils {
|
|||||||
* Decodes the given base 64 raw bytes
|
* Decodes the given base 64 raw bytes
|
||||||
*
|
*
|
||||||
* @param rawBytes
|
* @param rawBytes
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public static byte[] decodeBase64(byte[] rawBytes) throws UnsupportedEncodingException {
|
public static byte[] decodeBase64(byte[] rawBytes) throws UnsupportedEncodingException {
|
||||||
return Base64.decodeBase64(rawBytes);
|
return Base64.decodeBase64(rawBytes);
|
||||||
|
|||||||
@@ -27,14 +27,12 @@ public interface AWSCredentials {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Access key to the Amazon WS account
|
* Get the Access key to the Amazon WS account
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getAccessKey();
|
String getAccessKey();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Secret key to the Amazon WS account
|
* Get the Secret key to the Amazon WS account
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getSecretKey();
|
String getSecretKey();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,6 @@ public class AWSOperationException extends RuntimeException {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the access key for the user who encountered the exception
|
* Get the access key for the user who encountered the exception
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getAccessKey() {
|
public String getAccessKey() {
|
||||||
return accessKey;
|
return accessKey;
|
||||||
|
|||||||
@@ -120,8 +120,7 @@ public abstract class AbstractAWSClientFactory<T extends AmazonWebServiceClient>
|
|||||||
/**
|
/**
|
||||||
* Extracts the endpoint from the URL provided
|
* Extracts the endpoint from the URL provided
|
||||||
*
|
*
|
||||||
* @param url
|
* @return Will return null if the provided url is empty
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
private String getEndpointFromURL(String stringUrl) {
|
private String getEndpointFromURL(String stringUrl) {
|
||||||
if(!StringUtils.hasText(stringUrl)) {
|
if(!StringUtils.hasText(stringUrl)) {
|
||||||
@@ -151,7 +150,6 @@ public abstract class AbstractAWSClientFactory<T extends AmazonWebServiceClient>
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The subclass needs to implement this method and return an appropriate implementation
|
* The subclass needs to implement this method and return an appropriate implementation
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
protected abstract T getClientImplementation();
|
protected abstract T getClientImplementation();
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ public class BasicAWSCredentials implements AWSCredentials {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Access key to the Amazon WS account
|
* Get the Access key to the Amazon WS account
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getAccessKey() {
|
public String getAccessKey() {
|
||||||
return accessKey;
|
return accessKey;
|
||||||
@@ -70,7 +69,6 @@ public class BasicAWSCredentials implements AWSCredentials {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the Access key to the Amazon WS account
|
* Set the Access key to the Amazon WS account
|
||||||
* @param accessKey
|
|
||||||
*/
|
*/
|
||||||
public void setAccessKey(String accessKey) {
|
public void setAccessKey(String accessKey) {
|
||||||
Assert.hasText(accessKey, "The accessKey parameter must not be null or empty.");
|
Assert.hasText(accessKey, "The accessKey parameter must not be null or empty.");
|
||||||
@@ -79,7 +77,6 @@ public class BasicAWSCredentials implements AWSCredentials {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Secret key to the Amazon WS account
|
* Get the Secret key to the Amazon WS account
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getSecretKey() {
|
public String getSecretKey() {
|
||||||
return secretKey;
|
return secretKey;
|
||||||
|
|||||||
@@ -56,8 +56,8 @@ public class PropertiesAWSCredentials extends BasicAWSCredentials implements Ini
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**.
|
/**.
|
||||||
* Gets the property name which holds the
|
* Gets the property name which holds the AWS access key
|
||||||
* @return
|
* @return the Access Key Property
|
||||||
*/
|
*/
|
||||||
public String getAccessKeyProperty() {
|
public String getAccessKeyProperty() {
|
||||||
return accessKeyProperty;
|
return accessKeyProperty;
|
||||||
@@ -74,7 +74,6 @@ public class PropertiesAWSCredentials extends BasicAWSCredentials implements Ini
|
|||||||
|
|
||||||
/**.
|
/**.
|
||||||
* Gets the property name which holds the
|
* Gets the property name which holds the
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getSecretKeyProperty() {
|
public String getSecretKeyProperty() {
|
||||||
return secretKeyProperty;
|
return secretKeyProperty;
|
||||||
@@ -83,7 +82,6 @@ public class PropertiesAWSCredentials extends BasicAWSCredentials implements Ini
|
|||||||
/**.
|
/**.
|
||||||
* Sets the name of the property that will be used as the key in the properties
|
* Sets the name of the property that will be used as the key in the properties
|
||||||
* file to hold the AWS secret key
|
* file to hold the AWS secret key
|
||||||
* @param accessKeyProperty
|
|
||||||
*/
|
*/
|
||||||
public void setSecretKeyProperty(String secretKeyProperty) {
|
public void setSecretKeyProperty(String secretKeyProperty) {
|
||||||
this.secretKeyProperty = secretKeyProperty;
|
this.secretKeyProperty = secretKeyProperty;
|
||||||
@@ -91,7 +89,6 @@ public class PropertiesAWSCredentials extends BasicAWSCredentials implements Ini
|
|||||||
|
|
||||||
/**.
|
/**.
|
||||||
* Get the name of the property file that will hold the AWS credentials
|
* Get the name of the property file that will hold the AWS credentials
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getPropertyFileName() {
|
public String getPropertyFileName() {
|
||||||
return propertyFileName;
|
return propertyFileName;
|
||||||
|
|||||||
@@ -75,7 +75,6 @@ public abstract class AbstractFileNameFilter implements FileNameFilter {
|
|||||||
/**
|
/**
|
||||||
* Gets the folder whose file are to be accepted, this path is relative to the
|
* Gets the folder whose file are to be accepted, this path is relative to the
|
||||||
* bucket.
|
* bucket.
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getFolderName() {
|
public String getFolderName() {
|
||||||
return folderName;
|
return folderName;
|
||||||
@@ -87,21 +86,22 @@ public abstract class AbstractFileNameFilter implements FileNameFilter {
|
|||||||
* @param folderName
|
* @param folderName
|
||||||
*/
|
*/
|
||||||
public void setFolderName(String folderName) {
|
public void setFolderName(String folderName) {
|
||||||
|
|
||||||
if(StringUtils.hasText(folderName)) {
|
if(StringUtils.hasText(folderName)) {
|
||||||
folderName = folderName.trim();
|
String trimmedFolderName = folderName.trim();
|
||||||
if(folderName.equals("/")) {
|
if("/".equals(trimmedFolderName)) {
|
||||||
folderName = null;
|
trimmedFolderName = null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(!folderName.endsWith("/")) {
|
if(!trimmedFolderName.endsWith("/")) {
|
||||||
folderName = folderName + "/";
|
trimmedFolderName = trimmedFolderName + "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(folderName.startsWith("/")) {
|
if(trimmedFolderName.startsWith("/")) {
|
||||||
folderName = folderName.substring(1);
|
trimmedFolderName = trimmedFolderName.substring(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.folderName = folderName;
|
this.folderName = trimmedFolderName;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.folderName = null;
|
this.folderName = null;
|
||||||
@@ -109,11 +109,9 @@ public abstract class AbstractFileNameFilter implements FileNameFilter {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks the flag if the sub folders are to be accepted or not.
|
* Checks the flag if the sub folders are to be accepted or not.
|
||||||
*
|
*
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public boolean isAcceptSubFolders() {
|
public boolean isAcceptSubFolders() {
|
||||||
return acceptSubFolders;
|
return acceptSubFolders;
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ public class AmazonS3InboundSynchronizationMessageSource extends
|
|||||||
* Sets the file's wildcard pattern that would be used to match the objects in S3 bucket
|
* Sets the file's wildcard pattern that would be used to match the objects in S3 bucket
|
||||||
* This attribute is mutually exclusive to fileName regex.
|
* This attribute is mutually exclusive to fileName regex.
|
||||||
*
|
*
|
||||||
* @param fileWildcard
|
* @param fileNameWildcard Must not be empty.
|
||||||
*/
|
*/
|
||||||
public void setFileNameWildcard(String fileNameWildcard) {
|
public void setFileNameWildcard(String fileNameWildcard) {
|
||||||
Assert.hasText(fileNameWildcard, "Provided file wildcard is null or empty string");
|
Assert.hasText(fileNameWildcard, "Provided file wildcard is null or empty string");
|
||||||
@@ -217,7 +217,7 @@ public class AmazonS3InboundSynchronizationMessageSource extends
|
|||||||
/**
|
/**
|
||||||
* Sets the expression to find the local directory where the remote files are synchronized with.
|
* Sets the expression to find the local directory where the remote files are synchronized with.
|
||||||
*
|
*
|
||||||
* @param directory
|
* @param directoryExpression Must not be null
|
||||||
*/
|
*/
|
||||||
public void setDirectory(Expression directoryExpression) {
|
public void setDirectory(Expression directoryExpression) {
|
||||||
Assert.notNull(directoryExpression, "provided 'directoryExpression' is null");
|
Assert.notNull(directoryExpression, "provided 'directoryExpression' is null");
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ public class AmazonS3MessageHandler extends AbstractMessageHandler {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The constructor that initializes {@link AmazonS3MessageHandler} with the provided
|
* The constructor that initializes {@link AmazonS3MessageHandler} with the provided
|
||||||
* implementation of {@link AmazonS3Operations} and using the provided {@link AmazonWSCredentials}
|
* implementation of {@link AmazonS3Operations} and using the provided {@link AWSCredentials}
|
||||||
*
|
*
|
||||||
* @param credentials
|
* @param credentials
|
||||||
* @param operations
|
* @param operations
|
||||||
@@ -162,7 +162,6 @@ public class AmazonS3MessageHandler extends AbstractMessageHandler {
|
|||||||
* @param message
|
* @param message
|
||||||
* @param headerName
|
* @param headerName
|
||||||
* @param expectedType
|
* @param expectedType
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
private <T> T getHeaderValue(Message<?> message, String headerName, Class<T> expectedType) {
|
private <T> T getHeaderValue(Message<?> message, String headerName, Class<T> expectedType) {
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ public class AmazonS3ObjectBuilder {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a new instance of the builder
|
* Gets a new instance of the builder
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public static AmazonS3ObjectBuilder getInstance() {
|
public static AmazonS3ObjectBuilder getInstance() {
|
||||||
return new AmazonS3ObjectBuilder();
|
return new AmazonS3ObjectBuilder();
|
||||||
@@ -60,7 +59,6 @@ public class AmazonS3ObjectBuilder {
|
|||||||
/**
|
/**
|
||||||
* Sets the file which is to be read for uploading into S3
|
* Sets the file which is to be read for uploading into S3
|
||||||
* @param file
|
* @param file
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public AmazonS3ObjectBuilder fromFile(File file) {
|
public AmazonS3ObjectBuilder fromFile(File file) {
|
||||||
Assert.notNull(file,"null 'file' object provided");
|
Assert.notNull(file,"null 'file' object provided");
|
||||||
@@ -76,7 +74,6 @@ public class AmazonS3ObjectBuilder {
|
|||||||
/**
|
/**
|
||||||
* Convenience method for setting the File object from the String path
|
* Convenience method for setting the File object from the String path
|
||||||
* @param fileLocation
|
* @param fileLocation
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public AmazonS3ObjectBuilder fromLocation(String fileLocation) {
|
public AmazonS3ObjectBuilder fromLocation(String fileLocation) {
|
||||||
Assert.hasText(fileLocation, "'fileLocation should be non null, non empty string");
|
Assert.hasText(fileLocation, "'fileLocation should be non null, non empty string");
|
||||||
@@ -85,8 +82,7 @@ public class AmazonS3ObjectBuilder {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets an InputStream from which the data to be uploaded to S3 will be read
|
* Sets an InputStream from which the data to be uploaded to S3 will be read
|
||||||
* @param in
|
* @param in The provided {@link InputStream} must not be null
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public AmazonS3ObjectBuilder fromInputStream(InputStream in) {
|
public AmazonS3ObjectBuilder fromInputStream(InputStream in) {
|
||||||
Assert.notNull(in, "The Stream object provided is null");
|
Assert.notNull(in, "The Stream object provided is null");
|
||||||
@@ -98,7 +94,6 @@ public class AmazonS3ObjectBuilder {
|
|||||||
/**
|
/**
|
||||||
* Use the given user meta data for the file to be uploaded
|
* Use the given user meta data for the file to be uploaded
|
||||||
* @param userMetaData
|
* @param userMetaData
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public AmazonS3ObjectBuilder withUserMetaData(Map<String, String> userMetaData) {
|
public AmazonS3ObjectBuilder withUserMetaData(Map<String, String> userMetaData) {
|
||||||
this.userMetaData = userMetaData;
|
this.userMetaData = userMetaData;
|
||||||
@@ -108,7 +103,6 @@ public class AmazonS3ObjectBuilder {
|
|||||||
/**
|
/**
|
||||||
* uses the given metadata for the S3 object to be uploaded
|
* uses the given metadata for the S3 object to be uploaded
|
||||||
* @param metaData
|
* @param metaData
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public AmazonS3ObjectBuilder withMetaData(Map<String, Object> metaData) {
|
public AmazonS3ObjectBuilder withMetaData(Map<String, Object> metaData) {
|
||||||
this.metaData = metaData;
|
this.metaData = metaData;
|
||||||
@@ -118,7 +112,6 @@ public class AmazonS3ObjectBuilder {
|
|||||||
/**
|
/**
|
||||||
* Sets the S3 Object ACL
|
* Sets the S3 Object ACL
|
||||||
* @param objectACL
|
* @param objectACL
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public AmazonS3ObjectBuilder withObjectACL(Map<String, Collection<String>> objectACL) {
|
public AmazonS3ObjectBuilder withObjectACL(Map<String, Collection<String>> objectACL) {
|
||||||
//The key can be of three types, the email id, the canonical id of the user or the Group identifier
|
//The key can be of three types, the email id, the canonical id of the user or the Group identifier
|
||||||
@@ -159,7 +152,6 @@ public class AmazonS3ObjectBuilder {
|
|||||||
/**
|
/**
|
||||||
* Gets the Appropriate {@link ObjectPermissions} based on the String passed
|
* Gets the Appropriate {@link ObjectPermissions} based on the String passed
|
||||||
* @param permission
|
* @param permission
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
private ObjectPermissions getObjectPermission(String permission) {
|
private ObjectPermissions getObjectPermission(String permission) {
|
||||||
//Types of permission are READ, READ_ACP, WRITE_ACP
|
//Types of permission are READ, READ_ACP, WRITE_ACP
|
||||||
@@ -180,7 +172,6 @@ public class AmazonS3ObjectBuilder {
|
|||||||
/**
|
/**
|
||||||
* Method checks if the provided String is a canonical id of the AWS account
|
* Method checks if the provided String is a canonical id of the AWS account
|
||||||
* @param identifier
|
* @param identifier
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
private boolean isCanonicalId(String identifier) {
|
private boolean isCanonicalId(String identifier) {
|
||||||
//Note: we do not check if the given id is a valid canonical id with AWS, we just check if it is in the right format
|
//Note: we do not check if the given id is a valid canonical id with AWS, we just check if it is in the right format
|
||||||
@@ -196,7 +187,6 @@ public class AmazonS3ObjectBuilder {
|
|||||||
/**
|
/**
|
||||||
* Checks if the given identifier corresponds to a group id
|
* Checks if the given identifier corresponds to a group id
|
||||||
* @param identifier
|
* @param identifier
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
private boolean isGroupIdentifier(String identifier){
|
private boolean isGroupIdentifier(String identifier){
|
||||||
if(StringUtils.hasText(identifier)) {
|
if(StringUtils.hasText(identifier)) {
|
||||||
@@ -209,7 +199,6 @@ public class AmazonS3ObjectBuilder {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds the {@link AmazonS3Object} from the provided meta data, file/input stream and object ACLs
|
* Builds the {@link AmazonS3Object} from the provided meta data, file/input stream and object ACLs
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public AmazonS3Object build() {
|
public AmazonS3Object build() {
|
||||||
Assert.isTrue(!(in == null && file == null),"One of File object or InputStream is required");
|
Assert.isTrue(!(in == null && file == null),"One of File object or InputStream is required");
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ public interface FileEvent {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The File on which the given occurred
|
* The File on which the given occurred
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
File getFile();
|
File getFile();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ public interface FileNameGenerationStrategy {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates the file name from the given message
|
* Generates the file name from the given message
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
String generateFileName(Message<?> message);
|
String generateFileName(Message<?> message);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -279,13 +279,12 @@ public class InboundFileSynchronizationImpl implements InboundFileSynchronizer,I
|
|||||||
* and hence this method will return false.
|
* and hence this method will return false.
|
||||||
*
|
*
|
||||||
* @param eTag
|
* @param eTag
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
private boolean isEtagMD5Hash(String eTag) {
|
private boolean isEtagMD5Hash(String eTag) {
|
||||||
if (eTag == null || eTag.length() != 32) {
|
if (eTag == null || eTag.length() != 32) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return eTag.replaceAll("[a-f0-9A-F]", "").length() == 0;
|
return eTag.replaceAll("[a-f0-9A-F]", "").length() == 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,14 +32,13 @@ public interface InboundFileSynchronizer {
|
|||||||
* It retrieved new files and updates existing ones with the latest content from S3
|
* It retrieved new files and updates existing ones with the latest content from S3
|
||||||
* Please note that this method will NOT delete any additional files present on the
|
* Please note that this method will NOT delete any additional files present on the
|
||||||
* local filesystem
|
* local filesystem
|
||||||
* @param localDirectory: The local directory that needs to be synchronized with the
|
* @param localDirectory The local directory that needs to be synchronized with the Remote S3 bucket
|
||||||
* Remote S3 bucket
|
* @param bucketName The name of the bucket whose contents are to be synchronized
|
||||||
* @param bucketName: The name of the bucket whose contents are to be synchronized
|
* @param remoteFolder The folder name in S3 whose contents are to be synchronized
|
||||||
* @param remoteFolder: The folder name in S3 whose contents are to be synchronized
|
* use / if the contents of the bucket starting from the root
|
||||||
* use / if the contents of the bucket starting from the root
|
* are to be synchronized. This operation will only synchronize
|
||||||
* are to be synchronized. This operation will only synchronize
|
* the files resent in the given remote folder and will ignore
|
||||||
* the files resent in the given remote folder and will ignore
|
* all the folders and sub folder in it.
|
||||||
* all the folders and sub folder in it.
|
|
||||||
*/
|
*/
|
||||||
void synchronizeToLocalDirectory(File localDirectory,String bucketName,String remoteFolder);
|
void synchronizeToLocalDirectory(File localDirectory,String bucketName,String remoteFolder);
|
||||||
|
|
||||||
@@ -63,8 +62,6 @@ public interface InboundFileSynchronizer {
|
|||||||
/**
|
/**
|
||||||
* Sets the simple file name wildcard to match to match the file e.g., it can be
|
* Sets the simple file name wildcard to match to match the file e.g., it can be
|
||||||
* set to *.txt to accept all .txt files
|
* set to *.txt to accept all .txt files
|
||||||
*
|
|
||||||
* @param suffix of the file name to match
|
|
||||||
*/
|
*/
|
||||||
void setFileWildcard(String wildcardString);
|
void setFileWildcard(String wildcardString);
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,6 @@ public class InboundLocalFileOperationsImpl implements
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if create directories if required flag is set to true
|
* Returns true if create directories if required flag is set to true
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public boolean isCreateDirectoriesIfRequired() {
|
public boolean isCreateDirectoriesIfRequired() {
|
||||||
return createDirectoriesIfRequired;
|
return createDirectoriesIfRequired;
|
||||||
@@ -215,7 +214,6 @@ public class InboundLocalFileOperationsImpl implements
|
|||||||
*
|
*
|
||||||
* @param fileToWrite
|
* @param fileToWrite
|
||||||
* @param dest
|
* @param dest
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
private boolean renameFile(final File from, final File to) {
|
private boolean renameFile(final File from, final File to) {
|
||||||
final boolean isSuccessful;
|
final boolean isSuccessful;
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ public abstract class AbstractAmazonS3Operations implements AmazonS3Operations,I
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The constructor that accepts the {@link AmazonWSCredentials}
|
* The constructor that accepts the {@link AWSCredentials}
|
||||||
* @param credentials
|
* @param credentials
|
||||||
*/
|
*/
|
||||||
protected AbstractAmazonS3Operations(AWSCredentials credentials) {
|
protected AbstractAmazonS3Operations(AWSCredentials credentials) {
|
||||||
@@ -76,7 +76,6 @@ public abstract class AbstractAmazonS3Operations implements AmazonS3Operations,I
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the threshold value in bytes above which multi part upload will be used
|
* Get the threshold value in bytes above which multi part upload will be used
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public long getMultipartUploadThreshold() {
|
public long getMultipartUploadThreshold() {
|
||||||
return multipartUploadThreshold;
|
return multipartUploadThreshold;
|
||||||
@@ -103,7 +102,6 @@ public abstract class AbstractAmazonS3Operations implements AmazonS3Operations,I
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the temporary directory
|
* Gets the temporary directory
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public File getTemporaryDirectory() {
|
public File getTemporaryDirectory() {
|
||||||
return temporaryDirectory;
|
return temporaryDirectory;
|
||||||
@@ -134,7 +132,6 @@ public abstract class AbstractAmazonS3Operations implements AmazonS3Operations,I
|
|||||||
/**
|
/**
|
||||||
* Gets the temporary file suffix that is appended to the file while writing to
|
* Gets the temporary file suffix that is appended to the file while writing to
|
||||||
* the temporary directory
|
* the temporary directory
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getTemporaryFileSuffix() {
|
public String getTemporaryFileSuffix() {
|
||||||
return temporaryFileSuffix;
|
return temporaryFileSuffix;
|
||||||
@@ -158,7 +155,6 @@ public abstract class AbstractAmazonS3Operations implements AmazonS3Operations,I
|
|||||||
* Gets the AWS endpoint to use for all the operations, by default if none is set then us-east-1 is
|
* Gets the AWS endpoint to use for all the operations, by default if none is set then us-east-1 is
|
||||||
* assumed.
|
* assumed.
|
||||||
*
|
*
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getAwsEndpoint() {
|
public String getAwsEndpoint() {
|
||||||
return awsEndpoint;
|
return awsEndpoint;
|
||||||
@@ -346,7 +342,6 @@ public abstract class AbstractAmazonS3Operations implements AmazonS3Operations,I
|
|||||||
*
|
*
|
||||||
* @param folder
|
* @param folder
|
||||||
* @param objectName
|
* @param objectName
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
private String getKeyFromFolder(String folder, String objectName) {
|
private String getKeyFromFolder(String folder, String objectName) {
|
||||||
if(objectName.startsWith(PATH_SEPARATOR)) {
|
if(objectName.startsWith(PATH_SEPARATOR)) {
|
||||||
@@ -387,10 +382,7 @@ public abstract class AbstractAmazonS3Operations implements AmazonS3Operations,I
|
|||||||
* @param nextMarker The number of objects can be very large and this serves as the marker
|
* @param nextMarker The number of objects can be very large and this serves as the marker
|
||||||
* for remembering the last record fetch in the last retrieve operation.
|
* for remembering the last record fetch in the last retrieve operation.
|
||||||
* @param pageSize The max number of records to be retrieved in one list object operation.
|
* @param pageSize The max number of records to be retrieved in one list object operation.
|
||||||
* @param prefix The prefix for the list operation, this can serve as the folder whose contents
|
|
||||||
* are to be listed.
|
|
||||||
*
|
*
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public final PaginatedObjectsView listObjects(String bucketName, String folder, String nextMarker,int pageSize) {
|
public final PaginatedObjectsView listObjects(String bucketName, String folder, String nextMarker,int pageSize) {
|
||||||
Assert.hasText(bucketName, "Bucket name should be non null and non empty");
|
Assert.hasText(bucketName, "Bucket name should be non null and non empty");
|
||||||
@@ -445,7 +437,6 @@ public abstract class AbstractAmazonS3Operations implements AmazonS3Operations,I
|
|||||||
*
|
*
|
||||||
* @param bucketName
|
* @param bucketName
|
||||||
* @param key
|
* @param key
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
protected abstract AmazonS3Object doGetObject(String bucketName, String key);
|
protected abstract AmazonS3Object doGetObject(String bucketName, String key);
|
||||||
|
|
||||||
@@ -459,7 +450,6 @@ public abstract class AbstractAmazonS3Operations implements AmazonS3Operations,I
|
|||||||
* @param pageSize The max number of records to be retrieved in one list object operation.
|
* @param pageSize The max number of records to be retrieved in one list object operation.
|
||||||
* @param prefix The prefix for the list operation, this can serve as the folder whose contents
|
* @param prefix The prefix for the list operation, this can serve as the folder whose contents
|
||||||
* are to be listed.
|
* are to be listed.
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
protected abstract PaginatedObjectsView doListObjects(String bucketName,
|
protected abstract PaginatedObjectsView doListObjects(String bucketName,
|
||||||
String nextMarker, int pageSize, String prefix);
|
String nextMarker, int pageSize, String prefix);
|
||||||
@@ -469,12 +459,12 @@ public abstract class AbstractAmazonS3Operations implements AmazonS3Operations,I
|
|||||||
* The abstract method to be implemented by the subclass that would be doing the job
|
* The abstract method to be implemented by the subclass that would be doing the job
|
||||||
* of uploading the given file against the given key in the given bucket
|
* of uploading the given file against the given key in the given bucket
|
||||||
*
|
*
|
||||||
* @param bucketName The bucket on S3 where this object is to be put
|
* @param bucket The bucket on S3 where this object is to be put
|
||||||
* @param key The key against which this Object is to be stored in S3
|
* @param key The key against which this Object is to be stored in S3
|
||||||
* @param file resource to be uploaded to S3
|
* @param file resource to be uploaded to S3
|
||||||
* @param objectACL the Object's Access controls for the object to be uploaded
|
* @param objectACL the Object's Access controls for the object to be uploaded
|
||||||
* @param userMetadata The user's metadata to be associated with the object uploaded
|
* @param userMetadata The user's metadata to be associated with the object uploaded
|
||||||
* @param The MD5 sum of the contents of the file to be uploaded
|
* @param stringContentMD5 The MD5 sum of the contents of the file to be uploaded
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
protected abstract void doPut(String bucket,String key,File file,
|
protected abstract void doPut(String bucket,String key,File file,
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ public class AmazonS3Object implements Serializable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the User Metadata associated with given Amazon S3 object
|
* Gets the User Metadata associated with given Amazon S3 object
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public Map<String, String> getUserMetaData() {
|
public Map<String, String> getUserMetaData() {
|
||||||
return userMetaData;
|
return userMetaData;
|
||||||
@@ -98,7 +97,6 @@ public class AmazonS3Object implements Serializable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Metadata associated with the given Amazon S3 object
|
* Gets the Metadata associated with the given Amazon S3 object
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public Map<String, Object> getMetaData() {
|
public Map<String, Object> getMetaData() {
|
||||||
return metaData;
|
return metaData;
|
||||||
@@ -106,7 +104,6 @@ public class AmazonS3Object implements Serializable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the {@link InputStream} to the resource
|
* Gets the {@link InputStream} to the resource
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public InputStream getInputStream() {
|
public InputStream getInputStream() {
|
||||||
return inputStream;
|
return inputStream;
|
||||||
@@ -114,7 +111,6 @@ public class AmazonS3Object implements Serializable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the file source
|
* Gets the file source
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public File getFileSource() {
|
public File getFileSource() {
|
||||||
return fileSource;
|
return fileSource;
|
||||||
@@ -122,7 +118,6 @@ public class AmazonS3Object implements Serializable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Access controls associated with the S3 Object
|
* Gets the Access controls associated with the S3 Object
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public AmazonS3ObjectACL getObjectACL() {
|
public AmazonS3ObjectACL getObjectACL() {
|
||||||
return objectACL;
|
return objectACL;
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ public class AmazonS3ObjectACL {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all the grants on the object in the bucket
|
* Gets all the grants on the object in the bucket
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public Set<ObjectGrant> getGrants() {
|
public Set<ObjectGrant> getGrants() {
|
||||||
return grants;
|
return grants;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ package org.springframework.integration.aws.s3.core;
|
|||||||
import org.springframework.integration.aws.core.AWSOperationException;
|
import org.springframework.integration.aws.core.AWSOperationException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A subclass of {@link AmazonWSOperationException} which indicates a failure in performing
|
* A subclass of {@link AWSOperationException} which indicates a failure in performing
|
||||||
* an operation on the object in S3.
|
* an operation on the object in S3.
|
||||||
*
|
*
|
||||||
* @author Amol Nayak
|
* @author Amol Nayak
|
||||||
@@ -105,7 +105,6 @@ public class AmazonS3OperationException extends AWSOperationException {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the bucket name for which an S3 operation failed
|
* Gets the bucket name for which an S3 operation failed
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getBucket() {
|
public String getBucket() {
|
||||||
return bucket;
|
return bucket;
|
||||||
@@ -113,7 +112,6 @@ public class AmazonS3OperationException extends AWSOperationException {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the object name where an S3 operation failed
|
* Gets the object name where an S3 operation failed
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getObjectName() {
|
public String getObjectName() {
|
||||||
return objectName;
|
return objectName;
|
||||||
|
|||||||
@@ -123,7 +123,6 @@ public class DefaultAmazonS3Operations extends AbstractAmazonS3Operations {
|
|||||||
* @param pageSize The max number of records to be retrieved in one list object operation.
|
* @param pageSize The max number of records to be retrieved in one list object operation.
|
||||||
* @param prefix The prefix for the list operation, this can serve as the folder whose contents
|
* @param prefix The prefix for the list operation, this can serve as the folder whose contents
|
||||||
* are to be listed.
|
* are to be listed.
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected PaginatedObjectsView doListObjects(String bucketName,
|
protected PaginatedObjectsView doListObjects(String bucketName,
|
||||||
@@ -179,7 +178,7 @@ public class DefaultAmazonS3Operations extends AbstractAmazonS3Operations {
|
|||||||
*
|
*
|
||||||
* @param bucketName
|
* @param bucketName
|
||||||
* @param key
|
* @param key
|
||||||
* @return
|
* @return The Amazon S3 Object representing the Object in S3, may be null.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected AmazonS3Object doGetObject(String bucketName, String key) {
|
protected AmazonS3Object doGetObject(String bucketName, String key) {
|
||||||
@@ -212,7 +211,7 @@ public class DefaultAmazonS3Operations extends AbstractAmazonS3Operations {
|
|||||||
* @param file resource to be uploaded to S3
|
* @param file resource to be uploaded to S3
|
||||||
* @param objectACL the Object's Access controls for the object to be uploaded
|
* @param objectACL the Object's Access controls for the object to be uploaded
|
||||||
* @param userMetadata The user's metadata to be associated with the object uploaded
|
* @param userMetadata The user's metadata to be associated with the object uploaded
|
||||||
* @param The MD5 sum of the contents of the file to be uploaded
|
* @param stringContentMD5 The MD5 sum of the contents of the file to be uploaded
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void doPut(String bucketName, String key, File file, AmazonS3ObjectACL objectACL,
|
public void doPut(String bucketName, String key, File file, AmazonS3ObjectACL objectACL,
|
||||||
@@ -288,8 +287,6 @@ public class DefaultAmazonS3Operations extends AbstractAmazonS3Operations {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the {@link AccessControlList} from the given {@link AmazonS3ObjectACL}
|
* Gets the {@link AccessControlList} from the given {@link AmazonS3ObjectACL}
|
||||||
* @param acl
|
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
private AccessControlList getAccessControlList(String bucketName,String key,AmazonS3ObjectACL acl) {
|
private AccessControlList getAccessControlList(String bucketName,String key,AmazonS3ObjectACL acl) {
|
||||||
AccessControlList accessControlList = null;
|
AccessControlList accessControlList = null;
|
||||||
@@ -334,7 +331,6 @@ public class DefaultAmazonS3Operations extends AbstractAmazonS3Operations {
|
|||||||
/**
|
/**
|
||||||
* Gets the thread pool executor that will be used to upload the object in multiparts
|
* Gets the thread pool executor that will be used to upload the object in multiparts
|
||||||
* concurrently
|
* concurrently
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public ThreadPoolExecutor getThreadPoolExecutor() {
|
public ThreadPoolExecutor getThreadPoolExecutor() {
|
||||||
return threadPoolExecutor;
|
return threadPoolExecutor;
|
||||||
@@ -345,7 +341,7 @@ public class DefaultAmazonS3Operations extends AbstractAmazonS3Operations {
|
|||||||
* Used only when we upload the data using multi part upload. The thread pool will be used
|
* Used only when we upload the data using multi part upload. The thread pool will be used
|
||||||
* to upload the data concurrently
|
* to upload the data concurrently
|
||||||
*
|
*
|
||||||
* @param threadPool
|
* @param threadPoolExecutor May not be null
|
||||||
*/
|
*/
|
||||||
public void setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor) {
|
public void setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor) {
|
||||||
Assert.notNull(threadPoolExecutor, "'threadPoolExecutor' is null");
|
Assert.notNull(threadPoolExecutor, "'threadPoolExecutor' is null");
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ public class Grantee {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the particular identifier representing the grantee
|
* Gets the particular identifier representing the grantee
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getIdentifier() {
|
public String getIdentifier() {
|
||||||
return identifier;
|
return identifier;
|
||||||
@@ -55,7 +54,6 @@ public class Grantee {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Particular grantee Type
|
* Gets the Particular grantee Type
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public GranteeType getGranteeType() {
|
public GranteeType getGranteeType() {
|
||||||
return granteeType;
|
return granteeType;
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ public class ObjectGrant {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the grantee for this particular object permission
|
* Gets the grantee for this particular object permission
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public Grantee getGrantee() {
|
public Grantee getGrantee() {
|
||||||
return grantee;
|
return grantee;
|
||||||
@@ -50,7 +49,6 @@ public class ObjectGrant {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Corresponding object permission
|
* Gets the Corresponding object permission
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public ObjectPermissions getPermission() {
|
public ObjectPermissions getPermission() {
|
||||||
return permission;
|
return permission;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public interface PaginatedObjectsView {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Paginated List of Object names
|
* Gets the Paginated List of Object names
|
||||||
* @return: A {@link List} of paginated object names
|
* @return A {@link List} of paginated object names
|
||||||
*/
|
*/
|
||||||
List<S3ObjectSummary> getObjectSummary();
|
List<S3ObjectSummary> getObjectSummary();
|
||||||
|
|
||||||
@@ -41,10 +41,9 @@ public interface PaginatedObjectsView {
|
|||||||
boolean hasMoreResults();
|
boolean hasMoreResults();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contains the merker that can be used to get the next listing of objects from the
|
* Contains the marker that can be used to get the next listing of objects from the
|
||||||
* S3. Contains a null value if the listing is complete, the hasMoreResults
|
* S3. Contains a null value if the listing is complete, the hasMoreResults
|
||||||
* method will return true if this marker contains a non null value.
|
* method will return true if this marker contains a non null value.
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
String getNextMarker();
|
String getNextMarker();
|
||||||
|
|
||||||
|
|||||||
@@ -29,31 +29,26 @@ public interface S3ObjectSummary {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Bucket nane in which the object is kept on S3
|
* Gets the Bucket nane in which the object is kept on S3
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
String getBucketName();
|
String getBucketName();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the keys under which the Object is stored on S3
|
* Gets the keys under which the Object is stored on S3
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
String getKey();
|
String getKey();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Hex encoded 128 bit MD5 digest of the contents of the object uploaded on S3
|
* Gets the Hex encoded 128 bit MD5 digest of the contents of the object uploaded on S3
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
String getETag();
|
String getETag();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the size of the object in bytes
|
* Gets the size of the object in bytes
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
long getSize();
|
long getSize();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Date the object was last modified
|
* Gets the Date the object was last modified
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
Date getLastModified();
|
Date getLastModified();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,6 @@ public class AmazonSESMailSendException extends AWSOperationException {
|
|||||||
/**
|
/**
|
||||||
* Gets the map of failed messages where the failed message is the key and the exception
|
* Gets the map of failed messages where the failed message is the key and the exception
|
||||||
* while sending it is the value
|
* while sending it is the value
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public Map<Object, Exception> getFailedMessages() {
|
public Map<Object, Exception> getFailedMessages() {
|
||||||
return failedMessages;
|
return failedMessages;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.integration.aws.common;
|
package org.springframework.integration.aws.common;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.springframework.integration.aws.core.AbstractAWSClientFactory;
|
import org.springframework.integration.aws.core.AbstractAWSClientFactory;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import java.security.NoSuchAlgorithmException;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
import org.apache.commons.codec.binary.Base64;
|
import org.apache.commons.codec.binary.Base64;
|
||||||
import org.springframework.integration.aws.core.AWSCredentials;
|
import org.springframework.integration.aws.core.AWSCredentials;
|
||||||
@@ -92,8 +92,7 @@ public final class AWSTestUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The static helper method that would be used by other AWS tests to
|
* The static helper method that would be used by other AWS tests to
|
||||||
* get the implementation of the {@link AmazonWSCredentials} instance
|
* get the implementation of the {@link AWSCredentials} instance
|
||||||
* @return
|
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public static AWSCredentials getCredentials() {
|
public static AWSCredentials getCredentials() {
|
||||||
@@ -114,7 +113,6 @@ public final class AWSTestUtils {
|
|||||||
* checked and the listing of the directories is retrieved.
|
* checked and the listing of the directories is retrieved.
|
||||||
*
|
*
|
||||||
* @param rootDirectory
|
* @param rootDirectory
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public static List<File> getContentsRecursively(File rootDirectory) {
|
public static List<File> getContentsRecursively(File rootDirectory) {
|
||||||
if(!rootDirectory.isDirectory()) {
|
if(!rootDirectory.isDirectory()) {
|
||||||
@@ -150,7 +148,6 @@ public final class AWSTestUtils {
|
|||||||
* Helper method that will be used to generate the base64 encoded MD5 hash of the string
|
* Helper method that will be used to generate the base64 encoded MD5 hash of the string
|
||||||
*
|
*
|
||||||
* @param input
|
* @param input
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public static String md5Hash(String input) {
|
public static String md5Hash(String input) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.integration.aws.config.xml;
|
package org.springframework.integration.aws.config.xml;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
@@ -78,7 +78,6 @@ public abstract class AbstractAWSOutboundChannelAdapterParserTests<T extends Mes
|
|||||||
/**
|
/**
|
||||||
* Gets the Message handler implementation for the given bean id
|
* Gets the Message handler implementation for the given bean id
|
||||||
* @param beanId
|
* @param beanId
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
protected T getMessageHandlerForBeanDefinition(String beanId) {
|
protected T getMessageHandlerForBeanDefinition(String beanId) {
|
||||||
@@ -92,15 +91,13 @@ public abstract class AbstractAWSOutboundChannelAdapterParserTests<T extends Mes
|
|||||||
* sub class should implement this method to return a value of the config to be used to create the
|
* sub class should implement this method to return a value of the config to be used to create the
|
||||||
* context
|
* context
|
||||||
*
|
*
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
protected abstract String getConfigFilePath();
|
protected abstract String getConfigFilePath();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The subclass should return the {@link AmazonWSCredentials} instance that is being used
|
* The subclass should return the {@link AWSCredentials} instance that is being used
|
||||||
* to configure the adapters
|
* to configure the adapters
|
||||||
*
|
*
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
protected abstract AWSCredentials getCredentials();
|
protected abstract AWSCredentials getCredentials();
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ package org.springframework.integration.aws.core;
|
|||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@@ -44,26 +44,22 @@ public abstract class AbstractAWSClientFactoryTests<T extends AmazonWebServiceCl
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The subclass is responsible for returning the appropriate factory implementation
|
* The subclass is responsible for returning the appropriate factory implementation
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
protected abstract AbstractAWSClientFactory<T> getFactory();
|
protected abstract AbstractAWSClientFactory<T> getFactory();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the endpoint for the service in US-EAST-1 region
|
* Gets the endpoint for the service in US-EAST-1 region
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
protected abstract String getUSEast1Endpoint();
|
protected abstract String getUSEast1Endpoint();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the endpoint for the service in US-EAST-1 region
|
* Gets the endpoint for the service in US-EAST-1 region
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
protected abstract String getEUWest1Endpoint();
|
protected abstract String getEUWest1Endpoint();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Suffix for the endpoint URL which is service specific
|
* Gets the Suffix for the endpoint URL which is service specific
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
protected abstract String getSuffix();
|
protected abstract String getSuffix();
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.integration.aws.s3;
|
package org.springframework.integration.aws.s3;
|
||||||
|
|
||||||
import static junit.framework.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static junit.framework.Assert.assertNull;
|
import static org.junit.Assert.assertNull;
|
||||||
import static org.springframework.integration.aws.common.AWSTestUtils.md5Hash;
|
import static org.springframework.integration.aws.common.AWSTestUtils.md5Hash;
|
||||||
import static org.springframework.integration.aws.s3.AmazonS3OperationsMockingUtil.BUCKET;
|
import static org.springframework.integration.aws.s3.AmazonS3OperationsMockingUtil.BUCKET;
|
||||||
import static org.springframework.integration.aws.s3.AmazonS3OperationsMockingUtil.mockAmazonS3Operations;
|
import static org.springframework.integration.aws.s3.AmazonS3OperationsMockingUtil.mockAmazonS3Operations;
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import java.util.Collections;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import static org.springframework.integration.aws.s3.core.ObjectPermissions.WRIT
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
@@ -29,7 +30,7 @@ import java.util.HashMap;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@@ -53,7 +54,7 @@ import org.springframework.integration.test.util.TestUtils;
|
|||||||
public class AmazonS3ObjectBuilderTests {
|
public class AmazonS3ObjectBuilderTests {
|
||||||
|
|
||||||
@Rule
|
@Rule
|
||||||
public static TemporaryFolder temp = new TemporaryFolder();
|
public TemporaryFolder temp = new TemporaryFolder();
|
||||||
|
|
||||||
private static final String GROUP_GRANTEE = "http://acs.amazonaws.com/groups/global/AllUsers";
|
private static final String GROUP_GRANTEE = "http://acs.amazonaws.com/groups/global/AllUsers";
|
||||||
private static final String EMAIL_GRANTEE = "test@test.com";
|
private static final String EMAIL_GRANTEE = "test@test.com";
|
||||||
@@ -79,7 +80,7 @@ public class AmazonS3ObjectBuilderTests {
|
|||||||
* Tries to construct the file which is a directory
|
* Tries to construct the file which is a directory
|
||||||
*/
|
*/
|
||||||
@Test(expected=IllegalArgumentException.class)
|
@Test(expected=IllegalArgumentException.class)
|
||||||
public void withADirectory() {
|
public void withADirectory() throws IOException {
|
||||||
File dir = temp.newFolder("tempdir");
|
File dir = temp.newFolder("tempdir");
|
||||||
AmazonS3ObjectBuilder.getInstance().fromFile(dir);
|
AmazonS3ObjectBuilder.getInstance().fromFile(dir);
|
||||||
dir.delete();
|
dir.delete();
|
||||||
@@ -220,7 +221,6 @@ public class AmazonS3ObjectBuilderTests {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate the object test ACLS
|
* Generate the object test ACLS
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
private Map<String, Collection<String>> generateObjectACLS() {
|
private Map<String, Collection<String>> generateObjectACLS() {
|
||||||
Map<String, Collection<String>> acls = new HashMap<String, Collection<String>>();
|
Map<String, Collection<String>> acls = new HashMap<String, Collection<String>>();
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ package org.springframework.integration.aws.s3;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.springframework.integration.Message;
|
import org.springframework.integration.Message;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.integration.aws.s3;
|
package org.springframework.integration.aws.s3;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|||||||
@@ -15,10 +15,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.integration.aws.s3;
|
package org.springframework.integration.aws.s3;
|
||||||
|
|
||||||
import static junit.framework.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static junit.framework.Assert.assertFalse;
|
import static org.junit.Assert.assertFalse;
|
||||||
import static junit.framework.Assert.assertNotNull;
|
import static org.junit.Assert.assertNotNull;
|
||||||
import static junit.framework.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
import static org.springframework.integration.aws.common.AWSTestUtils.assertFileContent;
|
import static org.springframework.integration.aws.common.AWSTestUtils.assertFileContent;
|
||||||
import static org.springframework.integration.aws.common.AWSTestUtils.getContentsRecursively;
|
import static org.springframework.integration.aws.common.AWSTestUtils.getContentsRecursively;
|
||||||
import static org.springframework.integration.aws.common.AWSTestUtils.md5Hash;
|
import static org.springframework.integration.aws.common.AWSTestUtils.md5Hash;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import java.io.File;
|
|||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
package org.springframework.integration.aws.s3.config.xml;
|
package org.springframework.integration.aws.s3.config.xml;
|
||||||
|
|
||||||
import static junit.framework.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.springframework.integration.test.util.TestUtils.getPropertyValue;
|
import static org.springframework.integration.test.util.TestUtils.getPropertyValue;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.integration.aws.s3.config.xml;
|
package org.springframework.integration.aws.s3.config.xml;
|
||||||
|
|
||||||
import static junit.framework.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static junit.framework.Assert.assertNotNull;
|
import static org.junit.Assert.assertNotNull;
|
||||||
import static org.springframework.integration.test.util.TestUtils.getPropertyValue;
|
import static org.springframework.integration.test.util.TestUtils.getPropertyValue;
|
||||||
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
|
|||||||
@@ -27,9 +27,10 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.rules.TemporaryFolder;
|
import org.junit.rules.TemporaryFolder;
|
||||||
@@ -56,12 +57,13 @@ import com.amazonaws.services.s3.model.S3Object;
|
|||||||
* @since 0.5
|
* @since 0.5
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Ignore()
|
||||||
public abstract class AbstractAmazonS3OperationsImplAWSTests {
|
public abstract class AbstractAmazonS3OperationsImplAWSTests {
|
||||||
|
|
||||||
private static final String VALID_CANONICAL_ID = "f854da004ee08cf4f8664334d288561c8512c508db9785388de7319ded85f8f3";
|
private static final String VALID_CANONICAL_ID = "f854da004ee08cf4f8664334d288561c8512c508db9785388de7319ded85f8f3";
|
||||||
|
|
||||||
@Rule
|
@Rule
|
||||||
public static final TemporaryFolder temp = new TemporaryFolder();
|
public final TemporaryFolder temp = new TemporaryFolder();
|
||||||
|
|
||||||
//private static final String UPLOAD_SOURCE_DIRECTORY = System.getProperty("java.io.tmpdir") + "upload";
|
//private static final String UPLOAD_SOURCE_DIRECTORY = System.getProperty("java.io.tmpdir") + "upload";
|
||||||
|
|
||||||
@@ -572,7 +574,6 @@ public abstract class AbstractAmazonS3OperationsImplAWSTests {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The private helper method that generates the test file to be uploaded
|
* The private helper method that generates the test file to be uploaded
|
||||||
* @return
|
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
* @throws FileNotFoundException
|
* @throws FileNotFoundException
|
||||||
*/
|
*/
|
||||||
@@ -607,7 +608,6 @@ public abstract class AbstractAmazonS3OperationsImplAWSTests {
|
|||||||
*
|
*
|
||||||
* @param bucket
|
* @param bucket
|
||||||
* @param key
|
* @param key
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
protected AccessControlList getObjectACL(String bucket,String key) {
|
protected AccessControlList getObjectACL(String bucket,String key) {
|
||||||
return client.getObjectAcl(bucket, key);
|
return client.getObjectAcl(bucket, key);
|
||||||
|
|||||||
@@ -18,9 +18,10 @@
|
|||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.ThreadPoolExecutor;
|
import java.util.concurrent.ThreadPoolExecutor;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.springframework.integration.aws.core.PropertiesAWSCredentials;
|
import org.springframework.integration.aws.core.PropertiesAWSCredentials;
|
||||||
|
|
||||||
@@ -43,6 +44,7 @@ import org.springframework.integration.aws.core.PropertiesAWSCredentials;
|
|||||||
* @since 0.5
|
* @since 0.5
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Ignore
|
||||||
public class DefaultAmazonS3OperationsAWSTests extends AbstractAmazonS3OperationsImplAWSTests {
|
public class DefaultAmazonS3OperationsAWSTests extends AbstractAmazonS3OperationsImplAWSTests {
|
||||||
|
|
||||||
|
|
||||||
@@ -60,6 +62,7 @@ public class DefaultAmazonS3OperationsAWSTests extends AbstractAmazonS3Operation
|
|||||||
* complete successfully
|
* complete successfully
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Ignore
|
||||||
@Test
|
@Test
|
||||||
public void withNonNullThreadPoolExecutor() {
|
public void withNonNullThreadPoolExecutor() {
|
||||||
ThreadPoolExecutor executor = (ThreadPoolExecutor)Executors.newFixedThreadPool(10);
|
ThreadPoolExecutor executor = (ThreadPoolExecutor)Executors.newFixedThreadPool(10);
|
||||||
@@ -71,6 +74,7 @@ public class DefaultAmazonS3OperationsAWSTests extends AbstractAmazonS3Operation
|
|||||||
* Sets the thread pool executor to a null value, should throw an
|
* Sets the thread pool executor to a null value, should throw an
|
||||||
* {@link IllegalArgumentException}
|
* {@link IllegalArgumentException}
|
||||||
*/
|
*/
|
||||||
|
@Ignore
|
||||||
@Test(expected=IllegalArgumentException.class)
|
@Test(expected=IllegalArgumentException.class)
|
||||||
public void withNullThreadPoolExecutor() {
|
public void withNullThreadPoolExecutor() {
|
||||||
impl.setThreadPoolExecutor(null);
|
impl.setThreadPoolExecutor(null);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ import java.util.List;
|
|||||||
|
|
||||||
import javax.mail.internet.MimeMessage;
|
import javax.mail.internet.MimeMessage;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ package org.springframework.integration.aws.ses.config.xml;
|
|||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.springframework.beans.factory.parsing.BeanDefinitionParsingException;
|
import org.springframework.beans.factory.parsing.BeanDefinitionParsingException;
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ package org.springframework.integration.aws.ses.core;
|
|||||||
import javax.mail.internet.MimeMessage;
|
import javax.mail.internet.MimeMessage;
|
||||||
|
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.springframework.integration.aws.core.PropertiesAWSCredentials;
|
import org.springframework.integration.aws.core.PropertiesAWSCredentials;
|
||||||
import org.springframework.mail.SimpleMailMessage;
|
import org.springframework.mail.SimpleMailMessage;
|
||||||
@@ -40,6 +41,7 @@ import org.springframework.mail.javamail.MimeMessageHelper;
|
|||||||
* @since 0.5
|
* @since 0.5
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Ignore
|
||||||
public class DefaultAmazonSESMailSenderAWSTests {
|
public class DefaultAmazonSESMailSenderAWSTests {
|
||||||
|
|
||||||
private static final String TO_EMAIL_ID = "amolnayak311@gmail.com";
|
private static final String TO_EMAIL_ID = "amolnayak311@gmail.com";
|
||||||
|
|||||||
Reference in New Issue
Block a user