Class BuildResource

  • All Implemented Interfaces:
    io.wcm.caravan.pipeline.JsonPipelineAction

    @Deprecated
    @ConsumerType
    public abstract class BuildResource
    extends Object
    implements io.wcm.caravan.pipeline.JsonPipelineAction
    Deprecated.
    use CreateResource instead
    A pipeline action you can use if you want to build a new HalResource based on another HalResource from the previous step's output.
    • Constructor Detail

      • BuildResource

        public BuildResource​(String selfHref)
        Deprecated.
        Parameters:
        selfHref - the path and query parameters to use in the output's self link
    • Method Detail

      • getId

        public String getId()
        Deprecated.
        Specified by:
        getId in interface io.wcm.caravan.pipeline.JsonPipelineAction
      • execute

        public final rx.Observable<io.wcm.caravan.pipeline.JsonPipelineOutput> execute​(io.wcm.caravan.pipeline.JsonPipelineOutput previousStepOutput,
                                                                                       io.wcm.caravan.pipeline.JsonPipelineContext pipelineContext)
        Deprecated.
        Specified by:
        execute in interface io.wcm.caravan.pipeline.JsonPipelineAction
      • build

        public abstract io.wcm.caravan.hal.resource.HalResource build​(io.wcm.caravan.hal.resource.HalResource input,
                                                                      io.wcm.caravan.hal.resource.util.HalBuilder outputBuilder)
        Deprecated.
        Parameters:
        input - the original HalResource from the previous step's output
        outputBuilder - a builder that already contains a self-link, but no state
        Returns:
        the new HalResource that will be returned as the result of the pipeline action