org.mmbase.servlet
Class servscan

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.mmbase.servlet.MMBaseServlet
              extended byorg.mmbase.servlet.JamesServlet
                  extended byorg.mmbase.servlet.servscan
All Implemented Interfaces:
MMBaseStarter, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class servscan
extends JamesServlet

servscan is the 'extended html language' (parsing *.shtml) provided for MMbase its a system like php3, asp or jsp but has its roots providing a simpler toolset for Interaction designers and gfx designers. It is provided as an option but not demanded, you can also use JSP for a more traditional parser system.

Version:
$Id: servscan.java,v 1.36.2.6 2005/04/12 15:04:25 michiel Exp $
Author:
Daniel Ockeloen, Rico Jansen, Jan van Oosterom, Rob Vermeulen
See Also:
Serialized Form
Warning: Will be renamed to:
Servscan

Field Summary
protected  java.lang.String charSet
           
static java.lang.String DEFAULT_CHARSET
           
static java.lang.String SHTML_CONTENTTYPE
           
 
Fields inherited from class org.mmbase.servlet.JamesServlet
pageLog
 
Fields inherited from class org.mmbase.servlet.MMBaseServlet
mmbase, retryAfter
 
Constructor Summary
servscan()
           
 
Method Summary
 java.lang.String getServletInfo()
          Returns information about this servlet.
protected  java.lang.String handle_line(java.lang.String body, sessionInfo session, scanpage sp)
          handle_line is called by service to parse the SHTML in body.
 void init()
          Initialize this servlet
 void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Servlet request service.
 void setMMBase(MMBase mmb)
          Sets the mmbase member.
 
Methods inherited from class org.mmbase.servlet.JamesServlet
getAddress, getAuthorization, getAuthorization, getCookie, getInitParameters, getModule, getParam, getParamVector, getProperties, getProperty
 
Methods inherited from class org.mmbase.servlet.MMBaseServlet
associateMapping, checkInited, decRefCount, destroy, doGet, getAssociations, getMMBase, getRequestURL, getServletByAssociation, getServletByMapping, getServletMappings, getServletMappingsByAssociation, incRefCount, setInitException
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHTML_CONTENTTYPE

public static final java.lang.String SHTML_CONTENTTYPE
See Also:
Constant Field Values

DEFAULT_CHARSET

public static final java.lang.String DEFAULT_CHARSET
See Also:
Constant Field Values

charSet

protected java.lang.String charSet
Constructor Detail

servscan

public servscan()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Initialize this servlet

Overrides:
init in class JamesServlet
Throws:
javax.servlet.ServletException

setMMBase

public void setMMBase(MMBase mmb)
Description copied from class: MMBaseServlet
Sets the mmbase member. Can be overriden to implement extra initalization for the servlet which needs a running MMBase.

Specified by:
setMMBase in interface MMBaseStarter
Overrides:
setMMBase in class MMBaseServlet

handle_line

protected java.lang.String handle_line(java.lang.String body,
                                       sessionInfo session,
                                       scanpage sp)
                                throws ParseException
handle_line is called by service to parse the SHTML in body. It can be used by children to do their own parsing. The default implementation calls parser.handle_line (from module scanparser) to do the parsing.

Throws:
ParseException

service

public void service(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws javax.servlet.ServletException,
                    java.io.IOException
Servlet request service. This processes the the page and sends it back

Overrides:
service in class MMBaseServlet
Throws:
javax.servlet.ServletException
java.io.IOException

getServletInfo

public java.lang.String getServletInfo()
Description copied from class: MMBaseServlet
Returns information about this servlet. Don't forget to override it.

Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class MMBaseServlet


MMBase build 1.7.4.20050922