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

Field Summary
static scancacheInterface scancache
           
 
Constructor Summary
scanparser()
           
 
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.
 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
 

Field Detail

scancache

public static scancacheInterface scancache
Constructor Detail

scanparser

public scanparser()
Method Detail

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 file
out: - 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)

calccrc32

public static int calccrc32(java.lang.String str)


MMBase 2001