DumpFormServlet.java
/*
* Copyright (c) 1998-2005 Servertec. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* THIS NOTICE MUST NOT BE ALTERED NOR REMOVED.
*
* CopyrightVersion 1.0
*/
import java.util.StringTokenizer;
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.ServletContextImpl;
import stec.iws.Utils;
public final class DumpFormServlet extends HttpServlet
{
public final void service(HttpServletRequest _request, HttpServletResponse _response) throws ServletException, IOException
{
_response.setContentType("text/html");
ServletOutputStream out = _response.getOutputStream();
out.print("");
out.print("Dump Form Servlet");
out.print("");
dump_args(out, _request);
dumpInitParams(out, _request);
dump_server_variables(out, _request);
dump_headers(out, _request);
dumpFormData(out, _request);
dumpCookies(out, _request);
out.print("");
out.close();
}
private final static void dump_args(ServletOutputStream out, HttpServletRequest _request) throws IOException
{
out.print("