Class BoxResource
java.lang.Object
org.apache.camel.quarkus.component.box.it.BoxResource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.camel.ProducerTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsedeleteFile(String fileId) jakarta.ws.rs.core.ResponsedownloadFile(String fileId) jakarta.ws.rs.core.ResponseuploadFile(String content, String parentFolder, String name)
-
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
-