Class JsonPathResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.json.path.it.JsonPathResource
-
@Path("/jsonpath") @ApplicationScoped public class JsonPathResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.CamelContextcontext(package private) org.apache.camel.ProducerTemplateproducerTemplate
-
Constructor Summary
Constructors Constructor Description JsonPathResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAllCarColors(String carsRequestJson)StringgetAuthorsFromJsonStream(byte[] jsonBytes, String encoding)StringgetBookPrice(String storeRequestJson)StringgetBookPriceLevel(String storeRequestJson)StringgetFullName(String personRequestJson)voidsetHeaderWithJsonPathExpressionEvaluatingAnotherHeaderShouldSucceed()voidsplitBooksShouldReturnThreePrices()voidsplitInputJsonThenWriteAsStringShouldSucceed()
-
-
-
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)
-
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
-
-