org.mmbase.servlet
Class servscan
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--org.mmbase.servlet.MMBaseServlet
|
+--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 '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.33.2.4 2003/06/02 16:55:46 vpro Exp $
- Author:
- Daniel Ockeloen, Rico Jansen, Jan van Oosterom, Rob Vermeulen
- See Also:
- Serialized Form
|
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. |
| Methods inherited from class org.mmbase.servlet.MMBaseServlet |
associateMapping, decRefCount, destroy, doGet, getAssociations, getRequestURL, getServletByAssociation, getServletByMapping, getServletMappings, getServletMappingsByAssociation, incRefCount |
| 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 |
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()
throws javax.servlet.ServletException
- Initialize this servlet
- Overrides:
init in class JamesServlet
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 MMBaseServlet
getServletInfo
public java.lang.String getServletInfo()
- Description copied from class:
MMBaseServlet
- Returns information about this servlet. Don't forget to override it.
- Overrides:
getServletInfo in class MMBaseServlet
MMBase build 1.6.5.20030923