org.apache.turbine.modules.actions
Class FreeMarkerSiteCooker
java.lang.Object
|
+--org.apache.turbine.modules.Assembler
|
+--org.apache.turbine.modules.Action
|
+--org.apache.turbine.modules.actions.FreeMarkerSiteCooker
Deprecated. you should use velocity
- public class FreeMarkerSiteCooker
- extends Action
This action parses all files located in the screens, navigations,
and layouts directories under the services.freemarker.path given in
TurbineResources.properties. It cycles through links and parses
the responses for urls. It writes the response to a file replacing
the urls with the static variation.
- Version:
- $Id: FreeMarkerSiteCooker.java,v 1.1.1.1 2001/08/16 05:08:32 jvanzyl Exp $
- Author:
- John D. McNally
Method Summary |
private void |
dirRecurse(java.io.File basePath,
java.util.Vector files)
Deprecated. Recurse through directories, adding all non-directorty entries
to the vector files. |
void |
doPerform(RunData data)
Deprecated. Execute the action. |
private void |
parseFlatFile(java.lang.String uri,
java.io.BufferedReader in,
java.io.BufferedWriter[] out)
Deprecated. Parse a flat file. |
private void |
parseTemplateFile(java.io.BufferedReader in,
java.util.Hashtable links)
Deprecated. Parse a template file. |
private void |
parseUri(java.lang.String url,
java.io.BufferedReader in,
java.io.BufferedWriter out)
Deprecated. Parse an URI. |
Methods inherited from class org.apache.turbine.modules.Action |
perform |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
FreeMarkerSiteCooker
public FreeMarkerSiteCooker()
- Deprecated.
doPerform
public void doPerform(RunData data)
throws java.lang.Exception
- Deprecated.
- Execute the action.
- Overrides:
doPerform
in class Action
- Parameters:
data
- Turbine information.- Throws:
Exception,
- a generic exception.
dirRecurse
private void dirRecurse(java.io.File basePath,
java.util.Vector files)
- Deprecated.
- Recurse through directories, adding all non-directorty entries
to the vector files.
- Parameters:
basePath
- The starting path to recurse into.files
- The vector of gathered files.
parseTemplateFile
private void parseTemplateFile(java.io.BufferedReader in,
java.util.Hashtable links)
throws java.lang.Exception
- Deprecated.
- Parse a template file.
- Parameters:
in
- links
- - Throws:
Exception,
- a generic exception.
parseFlatFile
private void parseFlatFile(java.lang.String uri,
java.io.BufferedReader in,
java.io.BufferedWriter[] out)
throws java.lang.Exception
- Deprecated.
- Parse a flat file.
- Parameters:
url
- is the url of the current file which is being parsed.in
- is the input stream of the file being parsed.out
- is the output stream for the results.- Throws:
Exception,
- a generic exception.
parseUri
private void parseUri(java.lang.String url,
java.io.BufferedReader in,
java.io.BufferedWriter out)
throws java.lang.Exception
- Deprecated.
- Parse an URI.
- Parameters:
url
- is the url of the current file which is being parsed.in
- is the input stream of the file being parsed.out
- is the output stream for the results.- Throws:
Exception,
- a generic exception.
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.