org.mmbase.module.gui.html
Class scanparser

java.lang.Object
  extended byorg.mmbase.module.Module
      extended byorg.mmbase.module.ProcessorModule
          extended byorg.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.

Version:
$Id: scanparser.java,v 1.66 2004/03/15 14:30:08 rob Exp $
Author:
Daniel Ockeloen
Warning: Will be renamed to:
Scanparser
Warning: No Java Documentation Available.

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.
 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, unload
 
Methods inherited from class org.mmbase.module.Module
getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, setInitParameter, setMaintainer, setName, setVersion, shutdown, shutdownModules, 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

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

Throws:
ParseException

getfile

public final java.lang.String getfile(java.lang.String where)

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 build 1.7.1.20041002