Modifier and Type | Field and Description |
---|---|
static String |
PN_SLEEP
Sleep time, in ms, after each resource returned
|
protected long |
sleep |
protected List<Pipe> |
subpipes |
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 and Description |
---|
SuperPipe(Plumber plumber,
org.apache.sling.api.resource.Resource resource,
PipeBindings upperBindings)
Pipe Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
after()
to be executed before output is retrieved
|
void |
before()
to be executed before output is retrieved
|
abstract void |
buildChildren()
build the subpipes pipes list
|
protected Iterator<org.apache.sling.api.resource.Resource> |
computeOutput() |
protected abstract Iterator<org.apache.sling.api.resource.Resource> |
computeSubpipesOutput() |
protected Pipe |
getFirstPipe()
Return the first pipe in the container
|
protected Pipe |
getLastPipe()
Return the last pipe in the container
|
Pipe |
getPreviousPipe(Pipe pipe)
Return the previous pipe of the given child pipe
|
boolean |
modifiesContent()
returns true if that pipe modifies content during its execution
|
getBindings, getComputedPath, getConfiguration, getDistributionAgent, getExpr, getInput, getName, getOutput, getOutputBinding, getParent, getPath, getPreviousPipe, getPreviousResource, getRawExpression, getRawPath, getResource, isDryRun, isRootPath, provideAdditionalBindings, setParent, toString
public static final String PN_SLEEP
protected long sleep
public SuperPipe(Plumber plumber, org.apache.sling.api.resource.Resource resource, PipeBindings upperBindings)
plumber
- plumberresource
- configuration resourceupperBindings
- already set bindings, can be nullpublic abstract void buildChildren()
protected abstract Iterator<org.apache.sling.api.resource.Resource> computeSubpipesOutput()
protected Iterator<org.apache.sling.api.resource.Resource> computeOutput()
computeOutput
in class BasePipe
protected Pipe getFirstPipe()
protected Pipe getLastPipe()
public Pipe getPreviousPipe(Pipe pipe)
pipe
- child pipe of this parentpublic boolean modifiesContent()
Pipe
modifiesContent
in interface Pipe
modifiesContent
in class BasePipe
public void before()
Pipe
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.