Class BoxResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.box.it.BoxResource
-
@Path("/box") @ApplicationScoped public class BoxResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.ProducerTemplateproducerTemplate
-
Constructor Summary
Constructors Constructor Description BoxResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsedeleteFile(String fileId)javax.ws.rs.core.ResponsedownloadFile(String fileId)javax.ws.rs.core.ResponseuploadFile(String content, String parentFolder, String name)
-
-
-
Method Detail
-
uploadFile
@Path("/uploadFile/{parentFolder}/{name}") @POST @Consumes("text/plain") @Produces("text/plain") public javax.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 javax.ws.rs.core.Response downloadFile(String fileId) throws Exception- Throws:
Exception
-
-