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 Summary
FieldsModifier and TypeFieldDescription(package private) String(package private) org.apache.camel.ConsumerTemplate(package private) org.apache.camel.ProducerTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseautoCreateBucket(String newBucketName) Do not forget to delete every bucket created through this endpoint after the test.jakarta.ws.rs.core.ResponsecopyObject(String key, String dest_key, String dest_bucket) jakarta.ws.rs.core.ResponsedeleteBucket(String bucketName) downloadLink(String key, String bucket) objectRange(String key, Integer start, Integer end) pollObject(String key) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponseMethods inherited from class org.apache.camel.quarkus.test.support.aws2.BaseAws2Resource
initializeDefaultCredentials, isUseDefaultCredentials, onDefaultCredentialsProviderChange, setUseDefaultCredentials
-
Field Details
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate -
consumerTemplate
@Inject org.apache.camel.ConsumerTemplate consumerTemplate -
bucketName
String bucketName -
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
-
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
-
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
-