Class JsonPathResource


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

      • context

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

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

      • JsonPathResource

        public JsonPathResource()
    • Method Detail

      • 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)
      • 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