Class VelocityUtil.VelocityTemplateMerger
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.VelocityUtil.VelocityTemplateMerger
-
- Enclosing class:
- VelocityUtil
public static final class VelocityUtil.VelocityTemplateMerger extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOutput()
Get the string output.String
getOutputEncoding()
Get the output encoding.String
getOutputFile()
Get the output file.org.apache.velocity.VelocityContext
getVelocityContext()
Get the Velocity context used by this merger.void
merge()
Merge the Velocity template with the given context.void
setOutputEncoding(String p_strOutputEncoding)
Set the output encoding.void
setOutputFile(String p_strOutputFile)
Set the output file.
-
-
-
Method Detail
-
merge
public void merge() throws Exception
Merge the Velocity template with the given context.- Throws:
Exception
- If an error occurred.
-
getVelocityContext
public org.apache.velocity.VelocityContext getVelocityContext()
Get the Velocity context used by this merger.- Returns:
- The Velocity context used by this merger.
-
getOutputFile
public String getOutputFile()
Get the output file.- Returns:
- The output file.
-
setOutputFile
public void setOutputFile(String p_strOutputFile)
Set the output file.- Parameters:
p_strOutputFile
- The output file.
-
getOutputEncoding
public String getOutputEncoding()
Get the output encoding.- Returns:
- The output encoding.
-
setOutputEncoding
public void setOutputEncoding(String p_strOutputEncoding)
Set the output encoding.- Parameters:
p_strOutputEncoding
- The output encoding.
-
getOutput
public String getOutput()
Get the string output.If this template merger was configured for file output, this method returns
null
.- Returns:
- The string output, or
null
.
-
-