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;
}
Aggregations