|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 CachingPipelineComponentCachingPipelineComponent.constructCacheKey()
protected String getTemplate()
throws IOException
IOException
protected String renderTemplate()
throws IOException
IOExceptionpublic void execute()
execute in interface StarterStarter.execute()public void setup(Map<String,Object> parameters)
PipelineComponent
setup in interface PipelineComponentsetup in class AbstractPipelineComponentparameters - A Map of parameters that are available to all
PipelineComponents. This is a modifiable map that can
be changed by this pipeline component.public void setConfiguration(Map<String,? extends Object> parameters)
setConfiguration in interface PipelineComponentsetConfiguration in class AbstractPipelineComponentparameters - 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 | |||||||||