Class Aws2S3Resource


  • @Path("/aws2")
    @ApplicationScoped
    public class Aws2S3Resource
    extends Object
    • Field Detail

      • producerTemplate

        @Inject
        org.apache.camel.ProducerTemplate producerTemplate
      • consumerTemplate

        @Inject
        org.apache.camel.ConsumerTemplate consumerTemplate
      • bucketName

        String bucketName
    • Constructor Detail

      • Aws2S3Resource

        public Aws2S3Resource()
    • 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
      • 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