Class SimpleDocumentResourceCreator

    • Constructor Detail

      • SimpleDocumentResourceCreator

        public SimpleDocumentResourceCreator()
    • Method Detail

      • createDocument

        @POST
        @Path("{filename}")
        @Consumes("multipart/form-data")
        public javax.ws.rs.core.Response createDocument​(@PathParam("filename")
                                                        String filename)
                                                 throws IOException
        Create the document identified by the requested URI and from the content and some additional parameters passed within the request.

        A SimpleDocumentUploadData is extracted from request parameters.

        Returns:
        an HTTP response embodied an entity in a format expected by the client (that is identified by the xRequestedWith parameter).
        Throws:
        IOException - if an error occurs while updating the document.