Class JsonPathResource

java.lang.Object
org.apache.camel.quarkus.component.json.path.it.JsonPathResource

@Path("/jsonpath") @ApplicationScoped public class JsonPathResource extends Object
  • Field Details

    • context

      @Inject org.apache.camel.CamelContext context
    • producerTemplate

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

    • JsonPathResource

      public JsonPathResource()
  • Method Details

    • getBookPriceLevel

      @Path("/getBookPriceLevel") @GET @Consumes("application/json") @Produces("text/plain") public String getBookPriceLevel(String storeRequestJson)
    • getBookPrice

      @Path("/getBookPrice") @GET @Consumes("application/json") @Produces("text/plain") public String getBookPrice(String storeRequestJson)
    • getFullName

      @Path("/getFullName") @GET @Consumes("application/json") @Produces("text/plain") public String getFullName(String personRequestJson)
    • getAllCarColors

      @Path("/getAllCarColors") @GET @Consumes("application/json") @Produces("text/plain") public String getAllCarColors(String carsRequestJson)
    • splitBooksShouldReturnThreePrices

      @Path("/splitBooksShouldReturnTwoPrices") @GET public void splitBooksShouldReturnThreePrices() throws InterruptedException
      Throws:
      InterruptedException
    • setHeaderWithJsonPathExpressionEvaluatingAnotherHeaderShouldSucceed

      @Path("/setHeaderWithJsonPathExpressionEvaluatingAnotherHeaderShouldSucceed") @GET public void setHeaderWithJsonPathExpressionEvaluatingAnotherHeaderShouldSucceed() throws InterruptedException
      Throws:
      InterruptedException
    • getAuthorsFromJsonStream

      @Path("/getAuthorsFromJsonStream") @GET @Produces("text/plain") @Consumes("application/octet-stream") public String getAuthorsFromJsonStream(byte[] jsonBytes, @QueryParam("encoding") String encoding) throws IOException
      Throws:
      IOException
    • splitInputJsonThenWriteAsStringShouldSucceed

      @Path("/splitInputJsonThenWriteAsStringShouldSucceed") @GET public void splitInputJsonThenWriteAsStringShouldSucceed() throws InterruptedException
      Throws:
      InterruptedException