Class FreemarkerResource


  • @Path("/freemarker")
    @ApplicationScoped
    public class FreemarkerResource
    extends Object
    • Field Detail

      • producerTemplate

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

      • FreemarkerResource

        public FreemarkerResource()
    • Method Detail

      • freemarkerLetter

        @Path("/freemarkerLetter")
        @POST
        @Consumes("application/json")
        @Produces("text/plain")
        public String freemarkerLetter()
                                throws Exception
        Throws:
        Exception
      • freemarkerDataModel

        @Path("/freemarkerDataModel")
        @POST
        @Consumes("application/json")
        @Produces("text/plain")
        public String freemarkerDataModel()
                                   throws Exception
        Throws:
        Exception
      • valuesInProperties

        @Path("/valuesInProperties")
        @POST
        @Consumes("application/json")
        @Produces("text/plain")
        public String valuesInProperties()
                                  throws Exception
        Throws:
        Exception
      • templateInHeader

        @Path("/templateInHeader")
        @POST
        @Consumes("text/plain")
        @Produces("text/plain")
        public String templateInHeader​(String body)
                                throws Exception
        Throws:
        Exception
      • bodyAsDomainObject

        @Path("/bodyAsDomainObject/{firstName}/{lastName}")
        @GET
        @Consumes("application/json")
        @Produces("text/plain")
        public String bodyAsDomainObject​(@PathParam("firstName")
                                         String firstName,
                                         @PathParam("lastName")
                                         String lastName)
                                  throws Exception
        Throws:
        Exception