|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.pipeline.component.AbstractPipelineComponent org.apache.cocoon.sax.AbstractSAXPipelineComponent org.apache.cocoon.sax.AbstractSAXProducer org.apache.cocoon.stringtemplate.StringTemplateGenerator
public class StringTemplateGenerator
Field Summary | |
---|---|
protected Map<String,Object> |
parameters
|
Constructor Summary | |
---|---|
StringTemplateGenerator()
|
|
StringTemplateGenerator(File file)
|
|
StringTemplateGenerator(InputStream stream)
|
|
StringTemplateGenerator(String string)
|
|
StringTemplateGenerator(URL source)
|
Method Summary | |
---|---|
CacheKey |
constructCacheKey()
|
void |
execute()
|
protected String |
getTemplate()
|
protected String |
renderTemplate()
|
void |
setConfiguration(Map<String,? extends Object> parameters)
Pass component specific configuration parameters to the pipeline component in a generic way. |
void |
setStream(InputStream stream)
|
void |
setup(Map<String,Object> parameters)
The shared object map for this pipeline run. |
Methods inherited from class org.apache.cocoon.sax.AbstractSAXProducer |
---|
getSAXConsumer, setConsumer, setSAXConsumer, toString |
Methods inherited from class org.apache.cocoon.pipeline.component.AbstractPipelineComponent |
---|
finish |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.cocoon.pipeline.component.PipelineComponent |
---|
finish |
Field Detail |
---|
protected Map<String,Object> parameters
Constructor Detail |
---|
public StringTemplateGenerator()
public StringTemplateGenerator(URL source)
public StringTemplateGenerator(File file)
public StringTemplateGenerator(InputStream stream)
public StringTemplateGenerator(String string)
Method Detail |
---|
public void setStream(InputStream stream)
public CacheKey constructCacheKey()
constructCacheKey
in interface CachingPipelineComponent
CachingPipelineComponent.constructCacheKey()
protected String getTemplate() throws IOException
IOException
protected String renderTemplate() throws IOException
IOException
public void execute()
execute
in interface Starter
Starter.execute()
public void setup(Map<String,Object> parameters)
PipelineComponent
setup
in interface PipelineComponent
setup
in class AbstractPipelineComponent
parameters
- A Map
of parameters that are available to all
PipelineComponent
s. This is a modifiable map that can
be changed by this pipeline component.public void setConfiguration(Map<String,? extends Object> parameters)
setConfiguration
in interface PipelineComponent
setConfiguration
in class AbstractPipelineComponent
parameters
- The Map
of configuration parameters.org.apache.cocoon.pipeline.component.AbstractSAXProducer#setConfiguration(java.util.Map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |