org.mmbase.servlet
Class servscan
org.mmbase.servlet.JamesServlet
|
+--org.mmbase.servlet.servscan
- 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.27.2.1 2002/03/21 16:37:31 johannes Exp $
- Author:
- Daniel Ockeloen, Rico Jansen, Jan van Oosterom, Rob Vermeulen
|
Method Summary |
java.lang.String |
getServletInfo()
|
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(org.mmbase.servlet.ServletConfig config)
Initialize this servlet |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Servlet request service. |
| Methods inherited from class org.mmbase.servlet.JamesServlet |
debug, decRefCount, finalize, getAddress, getAuthorization, getAuthorization, getCookie, getInitParameters, getModule, getParam, getParamVector, getProperties, getProperty, getRequestURL, incRefCount |
SHTML_CONTENTTYPE
public static final java.lang.String SHTML_CONTENTTYPE
DEFAULT_CHARSET
public static final java.lang.String DEFAULT_CHARSET
servscan
public servscan()
init
public void init(org.mmbase.servlet.ServletConfig config)
throws org.mmbase.servlet.ServletException
- Initialize this servlet
- Overrides:
init in class JamesServlet
- Following copied from class:
org.mmbase.servlet.JamesServlet
- Parameters:
config - the servlet configuration
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.
service
public void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws org.mmbase.servlet.ServletException,
java.io.IOException
- Servlet request service.
This processes the the page and sends it back
getServletInfo
public java.lang.String getServletInfo()
MMBase 2002