Class FreemarkerResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.freemarker.it.FreemarkerResource
-
@Path("/freemarker") @ApplicationScoped public class FreemarkerResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.ProducerTemplateproducerTemplate
-
Constructor Summary
Constructors Constructor Description FreemarkerResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbodyAsDomainObject(String firstName, String lastName)StringfreemarkerDataModel()StringfreemarkerLetter()StringtemplateInHeader(String body)StringvaluesInProperties()
-
-
-
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
-
-