org.mmbase.servlet
Class servscan
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--org.mmbase.servlet.JamesServlet
|
+--org.mmbase.servlet.servscan
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class servscan
- extends JamesServlet
servscan is the 'extened 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 its provides as a option but not demanded you can
also use the provides jsp for a more traditional parser system.
- Version:
- $Id: servscan.java,v 1.21 2001/07/16 10:08:13 jaco Exp $
- Author:
- Daniel Ockeloen, Rico Jansen, Jan van Oosterom, Rob Vermeulen
- See Also:
- Serialized Form
|
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(javax.servlet.ServletConfig config)
Initializes the 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, isInternalVPROAddress |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Description copied from class:
JamesServlet
- Initializes the 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 javax.servlet.ServletException,
java.io.IOException
- Servlet request service.
This processes the the page and sends it back
- Overrides:
service in class javax.servlet.http.HttpServlet
getServletInfo
public java.lang.String getServletInfo()
- Overrides:
getServletInfo in class javax.servlet.GenericServlet
MMBase 2001