Class GoogleStorageResource

java.lang.Object
org.apache.camel.quarkus.component.google.storage.it.GoogleStorageResource

@Path("/google-storage") @ApplicationScoped public class GoogleStorageResource extends Object
  • Field Details

  • Constructor Details

    • GoogleStorageResource

      public GoogleStorageResource()
  • Method Details

    • storageClient

      @Named com.google.cloud.storage.Storage storageClient() throws IOException
      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

      @Path("/getFromDirect") @POST @Produces("text/plain") public String 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