Class PdfResource


  • @Path("/pdf")
    @ApplicationScoped
    public class PdfResource
    extends Object
    • Field Detail

      • producerTemplate

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

      • PdfResource

        public PdfResource()
    • Method Detail

      • createFromText

        @Path("/createFromText")
        @POST
        @Consumes("text/plain")
        @Produces("application/octet-stream")
        public javax.ws.rs.core.Response createFromText​(String message)
                                                 throws Exception
        Throws:
        Exception
      • appendText

        @Path("/appendText")
        @PUT
        @Consumes("text/plain")
        @Produces("application/octet-stream")
        public javax.ws.rs.core.Response appendText​(String message)
                                             throws Exception
        Throws:
        Exception
      • encryptStandard

        @Path("/encrypt/standard")
        @POST
        @Produces("text/plain")
        public javax.ws.rs.core.Response encryptStandard​(@QueryParam("ownerPassword")
                                                         String ownerPassword,
                                                         @QueryParam("userPassword")
                                                         String userPassword,
                                                         String message)
                                                  throws Exception
        Throws:
        Exception
      • decryptStandard

        @Path("/decrypt/standard")
        @POST
        @Produces("text/plain")
        public javax.ws.rs.core.Response decryptStandard​(@QueryParam("password")
                                                         String password,
                                                         byte[] rawDocument)
                                                  throws IOException
        Throws:
        IOException