Package io.wcm.caravan.pipeline
Interface JsonPipelineFactory
-
@ProviderType public interface JsonPipelineFactory
JSON Pipeline factory service interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JsonPipeline
create(io.wcm.caravan.io.http.request.CaravanHttpRequest request)
Creates a newJsonPipeline
to process the response from aCaravanHttpClient
request for the given serviceJsonPipeline
create(io.wcm.caravan.io.http.request.CaravanHttpRequest request, Map<String,String> contextProperties)
Creates a newJsonPipeline
to process the response from aCaravanHttpClient
request for the given service and predefined cache meta data.JsonPipeline
createEmpty()
Creates an empty pipeline.JsonPipeline
createEmpty(Map<String,String> contextProperties)
Creates an empty pipeline with predefined cache meta data.
-
-
-
Method Detail
-
create
JsonPipeline create(io.wcm.caravan.io.http.request.CaravanHttpRequest request)
Creates a newJsonPipeline
to process the response from aCaravanHttpClient
request for the given service- Parameters:
request
- the REST request to execute- Returns:
- the new pipeline
-
create
JsonPipeline create(io.wcm.caravan.io.http.request.CaravanHttpRequest request, Map<String,String> contextProperties)
Creates a newJsonPipeline
to process the response from aCaravanHttpClient
request for the given service and predefined cache meta data.- Parameters:
request
- the REST request to executecontextProperties
- a map with cache meta data- Returns:
- the new pipeline
-
createEmpty
JsonPipeline createEmpty()
Creates an empty pipeline. It could be used as a root to merge other pipeline's responses- Returns:
- a new
JsonPipeline
that produces an empty JSON object
-
createEmpty
JsonPipeline createEmpty(Map<String,String> contextProperties)
Creates an empty pipeline with predefined cache meta data. It could be used as a root to merge other pipeline's responses.- Parameters:
contextProperties
- a map with cache meta data- Returns:
- a new
JsonPipeline
that produces an empty JSON object
-
-