Class FreemarkerResource
java.lang.Object
org.apache.camel.quarkus.component.freemarker.it.FreemarkerResource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.camel.ProducerTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbodyAsDomainObject(String firstName, String lastName) templateInHeader(String body)
-
Field Details
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate
-
-
Constructor Details
-
FreemarkerResource
public FreemarkerResource()
-
-
Method Details
-
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
-