Class Aws2S3Resource

java.lang.Object
org.apache.camel.quarkus.test.support.aws2.BaseAws2Resource
org.apache.camel.quarkus.component.aws2.s3.it.Aws2S3Resource

@Path("/aws2-s3") @ApplicationScoped public class Aws2S3Resource extends org.apache.camel.quarkus.test.support.aws2.BaseAws2Resource
  • Field Details

    • producerTemplate

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

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

      String bucketName
    • kmsKeyId

      Optional<String> kmsKeyId
  • Constructor Details

    • Aws2S3Resource

      public Aws2S3Resource()
  • Method Details

    • post

      @Path("object/{key}") @POST @Consumes("text/plain") public jakarta.ws.rs.core.Response post(String message, @PathParam("key") String key, @QueryParam("useKms") @DefaultValue("false") boolean useKms) throws Exception
      Throws:
      Exception
    • get

      @Path("object/{key}") @GET @Produces("text/plain") public String get(@PathParam("key") String key, @QueryParam("bucket") String bucket, @QueryParam("useKms") @DefaultValue("false") boolean useKms) throws Exception
      Throws:
      Exception
    • pollObject

      @Path("poll-object/{key}") @GET @Produces("text/plain") public String pollObject(@PathParam("key") String key) throws Exception
      Throws:
      Exception
    • read

      @Path("object/{key}") @DELETE @Produces("text/plain") public jakarta.ws.rs.core.Response read(@PathParam("key") String key) throws Exception
      Throws:
      Exception
    • read

      @Path("bucket/{bucketName}/object/{key}") @DELETE @Produces("text/plain") public jakarta.ws.rs.core.Response read(@PathParam("bucketName") String bucketName, @PathParam("key") String key) throws Exception
      Throws:
      Exception
    • objectKey

      @Path("object-keys") @GET @Produces("application/json") public List<String> objectKey() throws Exception
      Throws:
      Exception
    • autoCreateBucket

      @Path("autoCreateBucket/{newBucketName}") @GET @Produces("application/json") public jakarta.ws.rs.core.Response autoCreateBucket(@PathParam("newBucketName") String newBucketName)
      Do not forget to delete every bucket created through this endpoint after the test.
      Parameters:
      newBucketName -
      Returns:
    • upload

      @Path("upload/{key}") @POST @Consumes("text/plain") @Produces("text/plain") public String upload(@PathParam("key") String key, String content) throws Exception
      Throws:
      Exception
    • copyObject

      @Path("copy/{key}") @POST @Consumes("application/x-www-form-urlencoded") @Produces("text/plain") public jakarta.ws.rs.core.Response copyObject(@PathParam("key") String key, @FormParam("dest_key") String dest_key, @FormParam("dest_bucket") String dest_bucket)
    • listBuckets

      @Path("bucket") @GET @Produces("application/json") public List<String> listBuckets() throws Exception
      Throws:
      Exception
    • deleteBucket

      @Path("bucket/{name}") @DELETE @Produces("text/plain") public jakarta.ws.rs.core.Response deleteBucket(@PathParam("name") String bucketName)
    • downloadLink

      @Path("downloadlink/{key}") @GET @Produces("text/plain") public String downloadLink(@PathParam("key") String key, @QueryParam("bucket") String bucket)
    • objectRange

      @Path("object/range/{key}") @GET @Produces("text/plain") public String objectRange(@PathParam("key") String key, @QueryParam("start") Integer start, @QueryParam("end") Integer end) throws Exception
      Throws:
      Exception