Package org.apache.sling.pipes
Class AbstractInputStreamPipe
- java.lang.Object
-
- org.apache.sling.pipes.BasePipe
-
- org.apache.sling.pipes.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
-
-
Field Summary
Fields Modifier and Type Field Description protected Objectbindingstatic StringBINDING_ISstatic StringREMOTE_STARTprotected static PatternVALID_PATH-
Fields inherited from class org.apache.sling.pipes.BasePipe
afterHook, beforeHook, bindingProviders, bindings, distributionAgent, DRYRUN_EXPR, DRYRUN_KEY, EMPTY_ITERATOR, IGNORED_NODES, IGNORED_PROPERTIES, parent, plumber, PN_AFTERHOOK, PN_BEFOREHOOK, PN_STATUS, PN_STATUS_MODIFIED, properties, READ_ONLY, resolver, resource, RESOURCE_TYPE, RT_PREFIX, SLASH, STATUS_FINISHED, STATUS_STARTED
-
-
Constructor Summary
Constructors Constructor Description AbstractInputStreamPipe(Plumber plumber, org.apache.sling.api.resource.Resource resource, PipeBindings upperBindings)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidafter()to be executed before output is retrievedIterator<org.apache.sling.api.resource.Resource>computeOutput()abstract Iterator<org.apache.sling.api.resource.Resource>getOutput(InputStream inputStream)ObjectgetOutputBinding()returns the binding output used in container pipe's expression-
Methods inherited from class org.apache.sling.pipes.BasePipe
before, getBindings, getComputedPath, getConfiguration, getDistributionAgent, getExpr, getInput, getName, getOutput, getParent, getPath, getPreviousPipe, getPreviousResource, getRawExpression, getRawPath, getResource, isDryRun, isRootPath, modifiesContent, provideAdditionalBindings, setParent, toString
-
-
-
-
Field Detail
-
REMOTE_START
public static final String REMOTE_START
- See Also:
- Constant Field Values
-
VALID_PATH
protected static final Pattern VALID_PATH
-
BINDING_IS
public static final String BINDING_IS
- See Also:
- Constant Field Values
-
binding
protected Object binding
-
-
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:Pipereturns the binding output used in container pipe's expression- Specified by:
getOutputBindingin interfacePipe- Overrides:
getOutputBindingin classBasePipe- 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:
computeOutputin classBasePipe- Returns:
- outputs of the pipe, as an iterator of resources
-
-