Class FileService

All Implemented Interfaces:
AdapterResource, Resource, Adaptable

public class FileService extends DefaultAdapter
File Service - manages attachments to a document.

Accepts the following methods:

  • GET - get the attached file
  • POST - create an attachment
Author:
Bogdan Stefanescu
  • Constructor Details

    • FileService

      public FileService()
  • Method Details

    • doGet

      @GET public jakarta.ws.rs.core.Response doGet(@FormParam("property") String xpath, @Context jakarta.ws.rs.core.Request request)
    • doPost

      @POST public jakarta.ws.rs.core.Response doPost(jakarta.ws.rs.core.MultivaluedMap<String,String> formParams, @FormParam("property") String xpath, @FormParam("versioning") @DefaultValue("NONE") VersioningOption versioningOption, Blob blob)
    • remove

      @GET @Path("delete") public jakarta.ws.rs.core.Response remove(@FormParam("property") String xpath)
    • doDelete

      @DELETE public jakarta.ws.rs.core.Response doDelete(@FormParam("property") String xpath)