DumpFormServlet.java
/*
* @(#)DumpFormServlet.java 1.0.0 10/11/98
*
* Copyright (c) 1997-2000 Servertec. All Rights Reserved.
*
* This software is the proprietary and confidential property of Servertec.
* Use only in accordance with the terms of the license agreement.
*
* SERVERTEC MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY
* OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
* PURPOSE, OR NON-INFRINGEMENT. SERVERTEC SHALL NOT BE LIABLE FOR ANY
* DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
* DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
*
* THIS NOTICE MUST NOT BE ALTERED NOR REMOVED.
*
* CopyrightVersion 1.0
*/
import java.util.Enumeration;
import java.io.IOException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.Cookie;
import javax.servlet.ServletOutputStream;
import javax.servlet.ServletException;
import javax.servlet.ServletConfig;
import stec.lang.DString;
import stec.iws.Request;
import stec.iws.ServletConfigImpl;
import stec.iws.Utils;
public class DumpFormServlet extends HttpServlet
{
public void service(HttpServletRequest _request, HttpServletResponse _response) throws ServletException, IOException
{
_response.setContentType("text/html");
ServletOutputStream out = _response.getOutputStream();
out.println("");
out.println("Dump Form Servlet");
out.println("");
ArgsServlet.args(out, _request);
dumpInitParams(out, _request);
HeadersServlet.server_variables(out, _request);
HeadersServlet.headers(out, _request);
dumpFormData(out, _request);
dumpCookies(out, _request);
out.println("");
out.println("");
out.close();
}
protected void dumpInitParams(ServletOutputStream out, HttpServletRequest _request) throws IOException
{
out.println("