|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.bastille.web.TemplateFile
public final class TemplateFile
A utility class for templates files.
Method Summary | |
---|---|
static String |
getETag(String name,
boolean reload)
Returns the Etag for the given template file name. |
static File |
getFile(String name,
boolean reload)
Returns the template file. |
static void |
write(XMLWriter xml,
File file)
Write the specified file on the given XML writer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void write(XMLWriter xml, File file) throws IOException
xml
- The XML writer the file should be written to.file
- The file to write.
IOException
- If Berlioz was unable to write on the XML writer.public static File getFile(String name, boolean reload)
name
- The name of the template file property ("header", "footer", etc...).reload
- Whether to reload the configuration.
public static String getETag(String name, boolean reload)
The ETag is a weak etag based on the length and last modified date of both the config file and the actual file to load.
name
- the name of the file property ("header", "footer", etc...)reload
- Whether to reload the configuration.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |