Search in sources :

Example 1 with S3Endpoint

use of org.apache.camel.component.aws.s3.S3Endpoint in project syndesis by syndesisio.

the class AWSS3RawOptionsTest method createCamelContext.

@Override
protected CamelContext createCamelContext() throws Exception {
    CamelContext camelContext = super.createCamelContext();
    camelContext.setAutoStartup(false);
    camelContext.addComponent("aws-s3", new S3Component() {

        @Override
        protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
            final S3Configuration configuration = new S3Configuration();
            setProperties(configuration, parameters);
            return new S3Endpoint(uri, this, configuration) {

                @Override
                public void doStart() throws Exception {
                // don't let the endpoint to start as it would try to
                // process the keys
                }
            };
        }
    });
    return camelContext;
}
Also used : CamelContext(org.apache.camel.CamelContext) S3Configuration(org.apache.camel.component.aws.s3.S3Configuration) S3Endpoint(org.apache.camel.component.aws.s3.S3Endpoint) Endpoint(org.apache.camel.Endpoint) S3Component(org.apache.camel.component.aws.s3.S3Component) S3Endpoint(org.apache.camel.component.aws.s3.S3Endpoint) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 CamelContext (org.apache.camel.CamelContext)1 Endpoint (org.apache.camel.Endpoint)1 S3Component (org.apache.camel.component.aws.s3.S3Component)1 S3Configuration (org.apache.camel.component.aws.s3.S3Configuration)1 S3Endpoint (org.apache.camel.component.aws.s3.S3Endpoint)1