|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.meshcms.util.DirectoryParser
org.meshcms.extra.StaticExporter
Performs the export of a website in static files (for use with the Apache web server or any other one).
Field Summary | |
static java.lang.String |
REQUEST_ATTRIBUTE_CHECK
|
static java.lang.String |
USER_AGENT
|
static java.lang.String |
USER_AGENT_HEADER
|
Fields inherited from class org.meshcms.util.DirectoryParser |
initialDir, processStartDir, recursive |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
StaticExporter(WebSite webSite,
java.net.URL contextURL,
java.io.File staticDir)
Creates an instance. |
Method Summary | |
boolean |
getCheckDates()
Returns the value of the date check option. |
java.net.URL |
getContextURL()
Returns the context URL. |
java.io.File |
getStaticDir()
Returns the static directory. |
java.io.Writer |
getWriter()
Returns the writer (if any). |
boolean |
isExportable(Path path)
|
static boolean |
isExportRequest(javax.servlet.http.HttpServletRequest request)
|
protected void |
postProcess()
This method is called at the end of the processing. |
protected boolean |
preProcessDirectory(java.io.File file,
Path path)
|
void |
process()
Starts processing. |
protected void |
processFile(java.io.File file,
Path path)
This method will be called for any file found while parsing the base directory. |
void |
setCheckDates(boolean checkDates)
Sets the date check to on or off. |
void |
setContextURL(java.net.URL contextURL)
Sets the context URL. |
void |
setStaticDir(java.io.File staticDir)
Sets the static directory. |
void |
setWriter(java.io.Writer writer)
Sets the writer for logging (usually the writer of the web page). |
Methods inherited from class org.meshcms.util.DirectoryParser |
getInitialDir, isProcessStartDir, isRecursive, isSorted, postProcessDirectory, preProcess, run, setInitialDir, setInitialDir, setProcessStartDir, setRecursive, setSorted |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String REQUEST_ATTRIBUTE_CHECK
public static final java.lang.String USER_AGENT_HEADER
public static final java.lang.String USER_AGENT
Constructor Detail |
public StaticExporter(WebSite webSite, java.net.URL contextURL, java.io.File staticDir)
staticDir
- the directory where files should be exportedMethod Detail |
public void setStaticDir(java.io.File staticDir)
public java.io.File getStaticDir()
public void setContextURL(java.net.URL contextURL)
public java.net.URL getContextURL()
public void setCheckDates(boolean checkDates)
public boolean getCheckDates()
public void setWriter(java.io.Writer writer)
public java.io.Writer getWriter()
protected void postProcess()
DirectoryParser
DirectoryParser.preProcess()
returned false.
The base implementation does nothing.
postProcess
in class DirectoryParser
protected boolean preProcessDirectory(java.io.File file, Path path)
preProcessDirectory
in class DirectoryParser
protected void processFile(java.io.File file, Path path)
DirectoryParser
processFile
in class DirectoryParser
file
- the file to be processedpath
- the path of the file (relative to the base directory)public boolean isExportable(Path path)
public void process()
DirectoryParser
process
in class DirectoryParser
public static boolean isExportRequest(javax.servlet.http.HttpServletRequest request)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |