Interface JsonPipelineFactory


  • @ProviderType
    public interface JsonPipelineFactory
    JSON Pipeline factory service interface.
    • Method Detail

      • create

        JsonPipeline create​(io.wcm.caravan.io.http.request.CaravanHttpRequest request)
        Creates a new JsonPipeline to process the response from a CaravanHttpClient 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 new JsonPipeline to process the response from a CaravanHttpClient request for the given service and predefined cache meta data.
        Parameters:
        request - the REST request to execute
        contextProperties - 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