@Model(adaptables=org.apache.sling.api.resource.Resource.class) public class PipeModel extends Object
pipes
node of the given resource, and make their output available as pipes
to the script. Note that current resource is passed as a binding to the executed pipes, as a map of properties, plus
the name and path, with the name BINDING_CURRENTRESOURCE
Modifier and Type | Field and Description |
---|---|
protected static String |
BINDING_CURRENTRESOURCE
name of the binding in which we should register current resource bindings
|
protected org.apache.sling.api.resource.Resource |
currentResource
current resource
|
protected static String |
NN_PIPES
name of the child nodes under which we should look for pipes
|
protected Map<String,Iterator<org.apache.sling.api.resource.Resource>> |
outputs
map of the found pipes outputs
|
protected Plumber |
plumber |
protected org.apache.sling.api.resource.Resource |
root
pipe root of the current resource
|
Constructor and Description |
---|
PipeModel(org.apache.sling.api.resource.Resource resource)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Map<String,Iterator<org.apache.sling.api.resource.Resource>> |
getOutputs()
Getter for outputs
|
protected void |
init() |
protected static final String NN_PIPES
protected static final String BINDING_CURRENTRESOURCE
protected Map<String,Iterator<org.apache.sling.api.resource.Resource>> outputs
protected Plumber plumber
protected org.apache.sling.api.resource.Resource root
protected org.apache.sling.api.resource.Resource currentResource
public PipeModel(org.apache.sling.api.resource.Resource resource)
resource
- resource upon which this model is constructedpublic Map<String,Iterator<org.apache.sling.api.resource.Resource>> getOutputs()
@PostConstruct protected void init()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.