org.onemind.jxp.servlet
Class JxpServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.onemind.jxp.servlet.JxpServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class JxpServlet
extends javax.servlet.http.HttpServlet

TODO comment

Author:
TiongHiang Lee (thlee@onemindsoft.org)
See Also:
Serialized Form

Field Summary
private  java.util.Properties _config
          jxp configuration *
private  java.lang.String _configFile
          the configuration file
private static java.util.logging.Logger _logger
          the logger
private  JxpProcessor _processor
          the processor
private  org.apache.commons.fileupload.DiskFileUpload _uploadRepository
          the upload
 
Constructor Summary
JxpServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          
protected  void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          
private  void dumpDebugInfo(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.util.Map env)
          Output the debugging information
private  java.util.Properties getConfig()
          Return the config
private  JxpProcessor getProcessor(javax.servlet.http.HttpServletRequest req)
          Get the processor
 void init(javax.servlet.ServletConfig config)
          
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logger

private static final java.util.logging.Logger _logger
the logger


_config

private java.util.Properties _config
jxp configuration *


_processor

private JxpProcessor _processor
the processor


_configFile

private java.lang.String _configFile
the configuration file


_uploadRepository

private org.apache.commons.fileupload.DiskFileUpload _uploadRepository
the upload

Constructor Detail

JxpServlet

public JxpServlet()
Method Detail

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     java.io.IOException

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

getConfig

private java.util.Properties getConfig()
Return the config

Returns:
the config

getProcessor

private JxpProcessor getProcessor(javax.servlet.http.HttpServletRequest req)
                           throws java.lang.Exception
Get the processor

Parameters:
req - the request
Returns:
the processor
Throws:
java.lang.Exception

doPost

protected void doPost(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp)
               throws javax.servlet.ServletException,
                      java.io.IOException

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

dumpDebugInfo

private void dumpDebugInfo(javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse resp,
                           java.util.Map env)
                    throws java.io.IOException
Output the debugging information

Parameters:
req - the request
resp - the resoibse
env - the environment
Throws:
java.io.IOException - io exceptions

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException