/*
   Generated by JavaEmitter on Thu Oct 21 16:15:31 GMT 1999
   Please do not modify.
 */

import javax.servlet.http.HttpUtils;
import java.util.Enumeration;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public class jsp___2fgnujsp_2fsnoop_2ejsp extends org.gjt.jsp.HttpJspPageImpl{

   public final long _gnujspGetTimestamp() {
      return 940522531639L;
   }
   private static final String[] _gnujspDeps = new String[] { "/gnujsp/snoop.jsp" };
   public final String[] _gnujspGetDeps() {
      return _gnujspDeps;
   }
   public final long _gnujspGetCompilerVersion() {
      return 1999101701L;
   }
   public void _jspService (HttpServletRequest  request,
                            HttpServletResponse response)
       throws ServletException, IOException
   {
       response.setContentType ("text/html");
       JspFactory  factory     = JspFactory.getDefaultFactory ();
       PageContext pageContext = factory.getPageContext (this,
                                  request,
                                  response,
                                  null,
                                  true,
                                  8192,
                                  true);
       HttpSession session   = pageContext.getSession ();
       ServletContext application = pageContext.getServletConfig().getServletContext();
       JspWriter   out       = pageContext.getOut ();
       ServletConfig config  = pageContext.getServletConfig();
       Object      page      = this;

       try {


// line:/gnujsp/snoop.jsp:1
out.print ("<HTML>\n<HEAD>\n\t<TITLE>JSP snoop page</TITLE>\n\t");

// line:/gnujsp/snoop.jsp:5
out.print ("\n</HEAD>\n<BODY>\n\n<H1>JSP Snoop page</H1>\n\n<H2>Request information</H2>\n\n<TABLE>\n<TR>\n\t<TH align=right>Requested URL:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:15
out.print ( HttpUtils.getRequestURL(request) );

// line:/gnujsp/snoop.jsp:15
out.print ("</TD>\n</TR>\n<TR>\n\t<TH align=right>Request method:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:19
out.print ( request.getMethod() );

// line:/gnujsp/snoop.jsp:19
out.print ("</TD>\n</TR>\n<TR>\n\t<TH align=right>Request URI:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:23
out.print ( request.getRequestURI() );

// line:/gnujsp/snoop.jsp:23
out.print ("</TD>\n</TR>\n<TR>\n\t<TH align=right>Request protocol:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:27
out.print ( request.getProtocol() );

// line:/gnujsp/snoop.jsp:27
out.print ("</TD>\n</TR>\n<TR>\n\t<TH align=right>Servlet path:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:31
out.print ( request.getServletPath() );

// line:/gnujsp/snoop.jsp:31
out.print ("</TD>\n</TR>\n<TR>\n\t<TH align=right>Path info:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:35
out.print ( request.getPathInfo() );

// line:/gnujsp/snoop.jsp:35
out.print ("</TD>\n</TR>\n<TR>\n\t<TH align=right>Path translated:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:39
out.print ( request.getPathTranslated() );

// line:/gnujsp/snoop.jsp:39
out.print ("</TD>\n</TR>\n<TR>\n\t<TH align=right>Query string:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:43
out.print ( request.getQueryString() );

// line:/gnujsp/snoop.jsp:43
out.print ("</TD>\n</TR>\n<TR>\n\t<TH align=right>Content length:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:47
out.print ( request.getContentLength() );

// line:/gnujsp/snoop.jsp:47
out.print ("</TD>\n</TR>\n<TR>\n\t<TH align=right>Content type:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:51
out.print ( request.getContentType() );

// line:/gnujsp/snoop.jsp:51
out.print ("</TD>\n<TR>\n<TR>\n\t<TH align=right>Server name:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:55
out.print ( request.getServerName() );

// line:/gnujsp/snoop.jsp:55
out.print ("</TD>\n<TR>\n<TR>\n\t<TH align=right>Server port:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:59
out.print ( request.getServerPort() );

// line:/gnujsp/snoop.jsp:59
out.print ("</TD>\n<TR>\n<TR>\n\t<TH align=right>Remote user:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:63
out.print ( request.getRemoteUser() );

// line:/gnujsp/snoop.jsp:63
out.print ("</TD>\n<TR>\n<TR>\n\t<TH align=right>Remote address:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:67
out.print ( request.getRemoteAddr() );

// line:/gnujsp/snoop.jsp:67
out.print ("</TD>\n<TR>\n<TR>\n\t<TH align=right>Remote host:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:71
out.print ( request.getRemoteHost() );

// line:/gnujsp/snoop.jsp:71
out.print ("</TD>\n<TR>\n<TR>\n\t<TH align=right>Authorization scheme:</TH>\n\t<TD>");
// line:/gnujsp/snoop.jsp:75
out.print ( request.getAuthType() );

// line:/gnujsp/snoop.jsp:75
out.print ("</TD>\n<TR>\n</TABLE>\n\n");
// line:/gnujsp/snoop.jsp:80

	Enumeration e = request.getHeaderNames();
	if(e != null && e.hasMoreElements()) {


// line:/gnujsp/snoop.jsp:83
out.print ("\n<H2>Request headers</H2>\n\n<TABLE>\n<TR>\n\t<TH align=left>Header:</TH>\n\t<TH align=left>Value:</TH>\n</TR>\n");
// line:/gnujsp/snoop.jsp:91

		while(e.hasMoreElements()) {
			String k = (String) e.nextElement();


// line:/gnujsp/snoop.jsp:94
out.print ("\n<TR>\n\t<TD>");
// line:/gnujsp/snoop.jsp:95
out.print ( k );

// line:/gnujsp/snoop.jsp:95
out.print ("</TD>\n\t<TD>");
// line:/gnujsp/snoop.jsp:96
out.print ( request.getHeader(k) );

// line:/gnujsp/snoop.jsp:96
out.print ("</TD>\n</TR>\n");
// line:/gnujsp/snoop.jsp:99

		}


// line:/gnujsp/snoop.jsp:101
out.print ("\n</TABLE>\n");
// line:/gnujsp/snoop.jsp:103

	}


// line:/gnujsp/snoop.jsp:105
out.print ("\n\n\n");
// line:/gnujsp/snoop.jsp:108

	e = request.getParameterNames();
	if(e != null && e.hasMoreElements()) {


// line:/gnujsp/snoop.jsp:111
out.print ("\n<H2>Request parameters</H2>\n<TABLE>\n<TR valign=top>\n\t<TH align=left>Parameter:</TH>\n\t<TH align=left>Value:</TH>\n\t<TH align=left>Multiple values:</TH>\n</TR>\n");
// line:/gnujsp/snoop.jsp:119

		while(e.hasMoreElements()) {
			String k = (String) e.nextElement();
			String val = request.getParameter(k);
			String vals[] = request.getParameterValues(k);


// line:/gnujsp/snoop.jsp:124
out.print ("\n<TR valign=top>\n\t<TD>");
// line:/gnujsp/snoop.jsp:125
out.print ( k );

// line:/gnujsp/snoop.jsp:125
out.print ("</TD>\n\t<TD>");
// line:/gnujsp/snoop.jsp:126
out.print ( val );

// line:/gnujsp/snoop.jsp:126
out.print ("</TD>\n\t<TD>");
// line:/gnujsp/snoop.jsp:128

			for(int i = 0; i < vals.length; i++) {
				if(i > 0)
					out.print("<BR>");
				out.print(vals[i]);
			}
		

// line:/gnujsp/snoop.jsp:133
out.print ("</TD>\n</TR>\n");
// line:/gnujsp/snoop.jsp:136

		}


// line:/gnujsp/snoop.jsp:138
out.print ("\n</TABLE>\n");
// line:/gnujsp/snoop.jsp:140

	}


// line:/gnujsp/snoop.jsp:142
out.print ("\n\n");
// line:/gnujsp/snoop.jsp:144

	e = getServletConfig().getInitParameterNames();
	if(e != null && e.hasMoreElements()) {


// line:/gnujsp/snoop.jsp:147
out.print ("\n<H2>Init parameters</H2>\n<TABLE>\n<TR valign=top>\n\t<TH align=left>Parameter:</TH>\n\t<TH align=left>Value:</TH>\n</TR>\n");
// line:/gnujsp/snoop.jsp:154

		while(e.hasMoreElements()) {
			String k = (String) e.nextElement();
			String val = getServletConfig().getInitParameter(k);


// line:/gnujsp/snoop.jsp:158
out.print ("\n<TR valign=top>\n\t<TD>");
// line:/gnujsp/snoop.jsp:159
out.print ( k );

// line:/gnujsp/snoop.jsp:159
out.print ("</TD>\n\t<TD>");
// line:/gnujsp/snoop.jsp:160
out.print ( val );

// line:/gnujsp/snoop.jsp:160
out.print ("</TD>\n</TR>\n");
// line:/gnujsp/snoop.jsp:163

		}


// line:/gnujsp/snoop.jsp:165
out.print ("\n</TABLE>\n");
// line:/gnujsp/snoop.jsp:167

	}


// line:/gnujsp/snoop.jsp:169
out.print ("\n\n</BODY>\n</HTML>\n");
        } catch (Exception e) {
             out.clearBuffer ();
             pageContext.handlePageException (e);
        } finally {
             out.close ();
             factory.releasePageContext (pageContext);
        }

   }

}
