/*
   Generated by JavaEmitter on Fri Oct 29 02:07:51 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_2ftestsuite_2fsnoop_2ejsp extends org.gjt.jsp.HttpJspPageImpl{

   public final long _gnujspGetTimestamp() {
      return 941162871978L;
   }
   private static final String[] _gnujspDeps = new String[] { "/gnujsp/testsuite/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/testsuite/snoop.jsp:1
out.print ("<HTML>\n<HEAD>\n\t<TITLE>JSP snoop page</TITLE>\n\t");

// line:/gnujsp/testsuite/snoop.jsp:5
out.print ("\n</HEAD>\n<BODY>\n\n<H1>JSP Snoop page</H1>\n\n<H2>Context information</H2>\n<TABLE>\n<TR>\n\t<TH align=right>Server Info:</TH>\n\t<TD>");
// line:/gnujsp/testsuite/snoop.jsp:14
out.print ( application.getServerInfo() );

// line:/gnujsp/testsuite/snoop.jsp:14
out.print ("</TD>\n</TR>\n</TABLE>\n\n<H2>Request information</H2>\n\n<TABLE>\n<TR>\n\t<TH align=right>Requested URL:</TH>\n\t<TD>");
// line:/gnujsp/testsuite/snoop.jsp:23
out.print ( HttpUtils.getRequestURL(request) );

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// line:/gnujsp/testsuite/snoop.jsp:91
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/testsuite/snoop.jsp:99

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


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

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

// line:/gnujsp/testsuite/snoop.jsp:104
out.print ("</TD>\n</TR>\n");
// line:/gnujsp/testsuite/snoop.jsp:107

		}


// line:/gnujsp/testsuite/snoop.jsp:109
out.print ("\n</TABLE>\n");
// line:/gnujsp/testsuite/snoop.jsp:111

	}


// line:/gnujsp/testsuite/snoop.jsp:113
out.print ("\n\n\n");
// line:/gnujsp/testsuite/snoop.jsp:116

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


// line:/gnujsp/testsuite/snoop.jsp:119
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/testsuite/snoop.jsp:127

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


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

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

// line:/gnujsp/testsuite/snoop.jsp:134
out.print ("</TD>\n\t<TD>");
// line:/gnujsp/testsuite/snoop.jsp:136

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

// line:/gnujsp/testsuite/snoop.jsp:141
out.print ("</TD>\n</TR>\n");
// line:/gnujsp/testsuite/snoop.jsp:144

		}


// line:/gnujsp/testsuite/snoop.jsp:146
out.print ("\n</TABLE>\n");
// line:/gnujsp/testsuite/snoop.jsp:148

	}


// line:/gnujsp/testsuite/snoop.jsp:150
out.print ("\n\n");
// line:/gnujsp/testsuite/snoop.jsp:152

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


// line:/gnujsp/testsuite/snoop.jsp:155
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/testsuite/snoop.jsp:162

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


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

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

// line:/gnujsp/testsuite/snoop.jsp:168
out.print ("</TD>\n</TR>\n");
// line:/gnujsp/testsuite/snoop.jsp:171

		}


// line:/gnujsp/testsuite/snoop.jsp:173
out.print ("\n</TABLE>\n");
// line:/gnujsp/testsuite/snoop.jsp:175

	}


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

   }

}
