Class VelocityResource

java.lang.Object
org.apache.camel.quarkus.component.velocity.it.VelocityResource

@Path("/velocity") @ApplicationScoped public class VelocityResource extends Object
  • 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