org.w3c.tidy.servlet
Class TidyServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.w3c.tidy.servlet.TidyServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class TidyServlet
extends javax.servlet.http.HttpServlet

This calss produce JTidy processing results and icons in your web application.

Version:
$Revision: 1.5 $ ($Author: fgiust $)
Author:
Vlad Skarzhevskyy skarzhevskyy@gmail.com
See Also:
Serialized Form

Field Summary
static java.lang.String ACTION_IMAGE
           
static java.lang.String ACTION_IMAGE_PARAM_SRC_ONLY
           
static java.lang.String ACTION_REPORT
           
static java.lang.String ACTION_REPORT_PARAM_SRC_ORG
           
static java.lang.String ACTION_REPORT_PARAM_SRC_RESULT
           
static java.lang.String ACTION_VIEW
           
static java.lang.String CONFIG_PROPERTIES_FILE_NAME
          name of the parameter containing the properties file path.
static java.lang.String PARAM_ACTION
           
static java.lang.String PARAM_REQUEST_ID
          The form parameter which defines what should be returned.
 
Constructor Summary
TidyServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void init(javax.servlet.ServletConfig servletConfig)
          Retrieve the confiuration parameters and set the properties.
 
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

CONFIG_PROPERTIES_FILE_NAME

public static final java.lang.String CONFIG_PROPERTIES_FILE_NAME
name of the parameter containing the properties file path.

See Also:
Constant Field Values

PARAM_REQUEST_ID

public static final java.lang.String PARAM_REQUEST_ID
The form parameter which defines what should be returned.

See Also:
Constant Field Values

PARAM_ACTION

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

ACTION_IMAGE

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

ACTION_IMAGE_PARAM_SRC_ONLY

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

ACTION_VIEW

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

ACTION_REPORT

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

ACTION_REPORT_PARAM_SRC_ORG

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

ACTION_REPORT_PARAM_SRC_RESULT

public static final java.lang.String ACTION_REPORT_PARAM_SRC_RESULT
See Also:
Constant Field Values
Constructor Detail

TidyServlet

public TidyServlet()
Method Detail

init

public final void init(javax.servlet.ServletConfig servletConfig)
                throws javax.servlet.ServletException
Retrieve the confiuration parameters and set the properties.

Parameters:
servletConfig - ServletConfig
Throws:
javax.servlet.ServletException - generic exception
See Also:
Servlet.init(ServletConfig)

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException,
                   javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException


Copyright © 2004-2005 sourceforge. All Rights Reserved.