Class BoxResource

java.lang.Object
org.apache.camel.quarkus.component.box.it.BoxResource

@Path("/box") @ApplicationScoped public class BoxResource extends Object
  • Field Details

    • producerTemplate

      @Inject org.apache.camel.ProducerTemplate producerTemplate
  • Constructor Details

    • BoxResource

      public BoxResource()
  • Method Details

    • uploadFile

      @Path("/uploadFile/{parentFolder}/{name}") @POST @Consumes("text/plain") @Produces("text/plain") public jakarta.ws.rs.core.Response uploadFile(String content, @PathParam("parentFolder") String parentFolder, @PathParam("name") String name) throws Exception
      Throws:
      Exception
    • downloadFile

      @Path("/downloadFile") @GET @Consumes("text/plain") @Produces("text/plain") public jakarta.ws.rs.core.Response downloadFile(String fileId) throws Exception
      Throws:
      Exception
    • deleteFile

      @Path("/deleteFile") @POST @Consumes("text/plain") @Produces("text/plain") public jakarta.ws.rs.core.Response deleteFile(String fileId) throws Exception
      Throws:
      Exception