public class scanparser extends ProcessorModule
ProcessorModule.GetNodeListFunction, ProcessorModule.ProcessFunction, ProcessorModule.ReplaceFunction| Modifier and Type | Field and Description |
|---|---|
(package private) Hashtable |
Roots |
static scancacheInterface |
scancache |
PARAM_PAGEINFO, PARAMS_PAGEINFOconfigurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIMEdescription, guiName, namefunctions, getFunctions| Constructor and Description |
|---|
scanparser() |
| Modifier and Type | Method and Description |
|---|---|
static int |
calccrc32(String str) |
String |
calcPage(String part2,
scanpage sp,
int cachetype) |
(package private) String |
do_conditions_lif(String body,
sessionInfo session,
scanpage sp)
handle if/then/elseif/\/if
|
(package private) String |
do_conditions(String body,
sessionInfo session,
scanpage sp)
handle if/then/elseif/\/if
|
(package private) String |
do_if(String body,
sessionInfo session,
scanpage sp) |
void |
do_proc_input(String rq_line,
HttpPost poster,
Hashtable proc_var,
Hashtable proc_cmd,
scanpage sp)
This does the handling of the Form inputs.
|
(package private) boolean |
do_val(String cmd,
sessionInfo session,
scanpage sp) |
(package private) boolean |
do_vals(String cmd,
sessionInfo session,
scanpage sp) |
String |
doEndPart(String template,
int last,
int rpos,
int numitems,
int epos) |
(package private) Vector |
doMAlphaSort(List input,
String sortonnumbers,
int numberofitems)
davzev changed method syntax from int sortonnumber to String sortonnumbers.
|
String |
doPrePart(String template,
int last,
int rpos,
int numitems,
int epos) |
String |
getfile(String where) |
String |
getMimeType(String ext)
getMimeType: Returns the mimetype using ServletContext.getServletContext which returns the servlet context
which is set when servscan is loaded.
|
String |
getMimeTypeFile(String fileName) |
(package private) Hashtable |
getRoots() |
String |
handle_line(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 |
processPage(scanpage sp,
String uri)
Start a process to calculate a page in the background
used by scancache to generate new pages for expired ones
|
void |
removeProcess(String uri)
Remove a PageProcess from the list of pages currently being calculated
|
Vector |
reverse(List input,
int num) |
getList, getListBuilder, getNodeList, onload, process, reload, replace, replace, unloadaddInitParameters, getInitParameter, getInitParameter, getInitParameter, getInitParameters, getInitParameters, getMaintainer, getModule, getModule, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModuleReader, getModules, getState, getStates, getVersion, hasModule, hasStarted, loadInitParameters, loadInitParameters, maintainance, setInitParameter, setMaintainer, setState, setVersion, shutdown, shutdownModules, startModule, startModulesgetDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setNameaddFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstancepublic static scancacheInterface scancache
Hashtable Roots
public void init()
init in class ProcessorModulepublic String getMimeType(String ext)
ext - A String containing the extension.boolean do_vals(String cmd, sessionInfo session, scanpage sp) throws ParseException
ParseExceptionboolean do_val(String cmd, sessionInfo session, scanpage sp) throws ParseException
ParseExceptionpublic final String handle_line(String body, sessionInfo session, scanpage sp) throws ParseException
ParseExceptionpublic final String getfile(String where)
where - A string with the location of the to be parsed fileString do_conditions_lif(String body, sessionInfo session, scanpage sp) throws ParseException
ParseExceptionString do_if(String body, sessionInfo session, scanpage sp) throws ParseException
ParseExceptionString do_conditions(String body, sessionInfo session, scanpage sp) throws ParseException
ParseExceptionHashtable getRoots()
public final void do_proc_input(String rq_line, HttpPost poster, Hashtable proc_var, Hashtable proc_cmd, scanpage sp)
public void processPage(scanpage sp, String uri)
sp - The request of the page (duplicated from the original)uri - The uri of the requestpublic void removeProcess(String uri)
uri - Uri of the request being calculatedVector doMAlphaSort(List input, String sortonnumbers, int numberofitems)
input - - the result Vector unsorted.sortonnumbers - - a String with colpositions eg. "6:4" denoting the
order and colpositions for the sort.numberofitems - - integer with the amount of items.public static int calccrc32(String str)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}