Class Aws2S3Resource
- java.lang.Object
-
- org.apache.camel.quarkus.component.aws2.Aws2S3Resource
-
@Path("/aws2") @ApplicationScoped public class Aws2S3Resource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) StringbucketName(package private) org.apache.camel.ConsumerTemplateconsumerTemplate(package private) org.apache.camel.ProducerTemplateproducerTemplate
-
Constructor Summary
Constructors Constructor Description Aws2S3Resource()
-
-
-
Field Detail
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate
-
consumerTemplate
@Inject org.apache.camel.ConsumerTemplate consumerTemplate
-
bucketName
String bucketName
-
-
Method Detail
-
post
@Path("s3/object/{key}") @POST @Consumes("text/plain") public javax.ws.rs.core.Response post(String message, @PathParam("key") String key) throws Exception- Throws:
Exception
-
get
@Path("s3/object/{key}") @GET @Produces("text/plain") public String get(@PathParam("key") String key) throws Exception- Throws:
Exception
-
pollObject
@Path("s3/poll-object/{key}") @GET @Produces("text/plain") public String pollObject(@PathParam("key") String key) throws Exception- Throws:
Exception
-
read
@Path("s3/object/{key}") @DELETE @Produces("text/plain") public javax.ws.rs.core.Response read(@PathParam("key") String key) throws Exception- Throws:
Exception
-
-