org.mmbase.module.gui.html
Class scanparser
java.lang.Object
|
+--org.mmbase.module.Module
|
+--org.mmbase.module.ProcessorModule
|
+--org.mmbase.module.gui.html.scanparser
- All Implemented Interfaces:
- ProcessorInterface
- public class scanparser
- extends ProcessorModule
scanpage is a container class it holds all objects needed per scan page
it was introduced to make servscan threadsafe but will probably in the future
hold all page related info instead of HttpServletR equest and HttpServletResponse
because we want extend the model of offline page generation.
- Author:
- Daniel Ockeloen
|
Method Summary |
static int |
calccrc32(java.lang.String str)
|
java.lang.String |
calcPage(java.lang.String part2,
scanpage sp,
int cachetype)
|
void |
do_proc_input(java.lang.String rq_line,
HttpPost poster,
java.util.Hashtable proc_var,
java.util.Hashtable proc_cmd,
scanpage sp)
This does the handling of the Form inputs. |
java.lang.String |
doEndPart(java.lang.String template,
int last,
int rpos,
int numitems,
int epos)
|
java.lang.String |
doPrePart(java.lang.String template,
int last,
int rpos,
int numitems,
int epos)
|
java.lang.String |
getfile(java.lang.String where)
|
java.lang.String |
handle_line(java.lang.String body,
sessionInfo session,
scanpage sp)
Process the HTML for our own extensions |
void |
init()
Init the servscan, this is needed because it was created using
a newInstanceOf(). |
void |
maintainance()
maintainance call, will be called by the admin to perform managment
tasks. |
void |
processPage(scanpage sp,
java.lang.String uri)
Start a process to calculate a page in the background
used by scancache to generate new pages for expired ones |
void |
removeProcess(java.lang.String uri)
Remove a PageProcess from the list of pages currently being calculated |
java.util.Vector |
reverse(java.util.Vector input,
int num)
|
| Methods inherited from class org.mmbase.module.ProcessorModule |
cacheCheck, getList, getListBuilder, getNodeList, onload, process, reload, replace, replace, shutdown, unload |
| Methods inherited from class org.mmbase.module.Module |
getClassName, getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, setClassName, setInitParameter, setMaintainer, setName, setVersion, startModule, startModules, state |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scancache
public static scancacheInterface scancache
scanparser
public scanparser()
init
public void init()
- Init the servscan, this is needed because it was created using
a newInstanceOf().
- Overrides:
init in class ProcessorModule
- Parameters:
int - worker id
doPrePart
public java.lang.String doPrePart(java.lang.String template,
int last,
int rpos,
int numitems,
int epos)
doEndPart
public java.lang.String doEndPart(java.lang.String template,
int last,
int rpos,
int numitems,
int epos)
reverse
public java.util.Vector reverse(java.util.Vector input,
int num)
handle_line
public final java.lang.String handle_line(java.lang.String body,
sessionInfo session,
scanpage sp)
throws ParseException
- Process the HTML for our own extensions
getfile
public final java.lang.String getfile(java.lang.String where)
- Parameters:
in: - A string with the location of the to be parsed fileout: - A html-page
do_proc_input
public final void do_proc_input(java.lang.String rq_line,
HttpPost poster,
java.util.Hashtable proc_var,
java.util.Hashtable proc_cmd,
scanpage sp)
- This does the handling of the Form inputs.
It calls the processor to handle the PRC-CMD's it finds after
it has done the PRC-VAR's fill in.
maintainance
public void maintainance()
- maintainance call, will be called by the admin to perform managment
tasks. This can be used instead of its own thread.
- Overrides:
maintainance in class Module
calcPage
public java.lang.String calcPage(java.lang.String part2,
scanpage sp,
int cachetype)
processPage
public void processPage(scanpage sp,
java.lang.String uri)
- Start a process to calculate a page in the background
used by scancache to generate new pages for expired ones
- Parameters:
sp - The request of the page (duplicated from the original)uri - The uri of the request
removeProcess
public void removeProcess(java.lang.String uri)
- Remove a PageProcess from the list of pages currently being calculated
- Parameters:
uri - Uri of the request being calculated
calccrc32
public static int calccrc32(java.lang.String str)
MMBase 2002