Class GoogleStorageResource
java.lang.Object
org.apache.camel.quarkus.component.google.storage.it.GoogleStorageResource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.camel.CamelContext(package private) org.apache.camel.ConsumerTemplatestatic final Stringstatic final Stringstatic final Stringstatic final String(package private) org.apache.camel.ProducerTemplatestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Response(package private) com.google.cloud.storage.Storage
-
Field Details
-
POLLING_ROUTE_NAME
- See Also:
-
DEST_BUCKET
- See Also:
-
TEST_BUCKET1
- See Also:
-
TEST_BUCKET2
- See Also:
-
TEST_BUCKET3
- See Also:
-
DIRECT_POLLING
- See Also:
-
PARAM_PORT
- See Also:
-
QUERY_OBJECT_NAME
- See Also:
-
QUERY_BUCKET
- See Also:
-
QUERY_OPERATION
- See Also:
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate -
consumerTemplate
@Inject org.apache.camel.ConsumerTemplate consumerTemplate -
camelContext
@Inject org.apache.camel.CamelContext camelContext
-
-
Constructor Details
-
GoogleStorageResource
public GoogleStorageResource()
-
-
Method Details
-
storageClient
- Throws:
IOException
-
operation
@Path("/operation") @POST @Consumes("application/json") @Produces("text/plain") public String operation(Map<String, Object> parameters, @QueryParam("operation") String operation, @QueryParam("bucketName") String bucketName) throws Exception- Throws:
Exception
-
putObject
@Path("/putObject") @POST @Consumes("text/plain") @Produces("text/plain") public jakarta.ws.rs.core.Response putObject(String body, @QueryParam("bucketName") String bucketName, @QueryParam("objectName") String objectName) throws Exception - Throws:
Exception
-
getFromDirect
-
deleteBuckets
@Path("/deleteBuckets") @GET @Produces("text/plain") public jakarta.ws.rs.core.Response deleteBuckets() throws Exception- Throws:
Exception
-
stopRoute
@Path("/stopRoute") @GET @Produces("text/plain") public jakarta.ws.rs.core.Response stopRoute() throws Exception- Throws:
Exception
-