Class VelocityResource
java.lang.Object
org.apache.camel.quarkus.component.velocity.it.VelocityResource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.camel.ProducerTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsebodyAsDomainObject(Person person, String givenName, String familyName) jakarta.ws.rs.core.ResponsedynamicTemplate(String template, String body, String item, String name) jakarta.ws.rs.core.ResponsesupplementalContext(String message, String body, String supplementalBody) jakarta.ws.rs.core.Responsetemplate(String message, String item, String name, String template, String propertiesFile, String contentCache, String exectFaiure) jakarta.ws.rs.core.ResponsetemplateViaHeader(String message, String body, String item, String name) jakarta.ws.rs.core.ResponsevelocityContext(String msg, String name, String name2, String item) jakarta.ws.rs.core.ResponsewithProperties(String message, String item, String name)
-
Field Details
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate
-
-
Constructor Details
-
VelocityResource
public VelocityResource()
-
-
Method Details
-
template
@Path("/template") @POST @Consumes("text/plain") @Produces("text/plain") public jakarta.ws.rs.core.Response template(String message, @QueryParam("item") String item, @QueryParam("name") String name, @QueryParam("template") String template, @QueryParam("propertiesFile") String propertiesFile, @QueryParam("contentCache") String contentCache, @QueryParam("expectFailure") String exectFaiure) throws Exception - Throws:
Exception
-
bodyAsDomainObject
@Path("/bodyAsDomainObject") @POST @Consumes("application/json") @Produces("text/plain") public jakarta.ws.rs.core.Response bodyAsDomainObject(Person person, @QueryParam("givenName") String givenName, @QueryParam("familyName") String familyName) throws Exception - Throws:
Exception
-
velocityContext
@Path("/velocityContext") @POST @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response velocityContext(String msg, @QueryParam("name") String name, @QueryParam("name2") String name2, @QueryParam("item") String item) throws Exception - Throws:
Exception
-
templateViaHeader
@Path("/templateViaHeader") @POST @Consumes("text/plain") @Produces("text/plain") public jakarta.ws.rs.core.Response templateViaHeader(String message, @QueryParam("body") String body, @QueryParam("item") String item, @QueryParam("name") String name) throws Exception - Throws:
Exception
-
dynamicTemplate
@Path("/dynamicTemplate") @POST @Consumes("text/plain") @Produces("text/plain") public jakarta.ws.rs.core.Response dynamicTemplate(String template, @QueryParam("body") String body, @QueryParam("item") String item, @QueryParam("name") String name) throws Exception - Throws:
Exception
-
withProperties
@Path("/withProperties") @POST @Consumes("text/plain") @Produces("text/plain") public jakarta.ws.rs.core.Response withProperties(String message, @QueryParam("item") String item, @QueryParam("name") String name) throws Exception - Throws:
Exception
-
supplementalContext
@Path("/supplementalContext") @POST @Consumes("text/plain") @Produces("application/json") public jakarta.ws.rs.core.Response supplementalContext(String message, @QueryParam("body") String body, @QueryParam("supplementalBody") String supplementalBody) throws Exception - Throws:
Exception
-