Class AbstractInputStreamPipe

  • All Implemented Interfaces:
    Pipe
    Direct Known Subclasses:
    CsvPipe, JsonPipe, RegexpPipe

    public abstract class AbstractInputStreamPipe
    extends BasePipe
    Input Stream based pipe, coming from web, from request, resource tree, web binding is updated by the returned iterator
    • Constructor Detail

      • AbstractInputStreamPipe

        public AbstractInputStreamPipe​(Plumber plumber,
                                       org.apache.sling.api.resource.Resource resource,
                                       PipeBindings upperBindings)
    • Method Detail

      • getOutputBinding

        public Object getOutputBinding()
        Description copied from interface: Pipe
        returns the binding output used in container pipe's expression
        Specified by:
        getOutputBinding in interface Pipe
        Overrides:
        getOutputBinding in class BasePipe
        Returns:
        object, either value map or something else, that will be used in nashorn for computing expressions
      • getOutput

        public abstract Iterator<org.apache.sling.api.resource.Resource> getOutput​(InputStream inputStream)
      • computeOutput

        public Iterator<org.apache.sling.api.resource.Resource> computeOutput()
        Overrides:
        computeOutput in class BasePipe
        Returns:
        outputs of the pipe, as an iterator of resources
      • after

        public void after()
        Description copied from interface: Pipe
        to be executed before output is retrieved
        Specified by:
        after in interface Pipe
        Overrides:
        after in class BasePipe