Class BoxResource


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

      • producerTemplate

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

      • BoxResource

        public BoxResource()
    • 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
      • deleteFile

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