<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2) on Sat Sep 25 10:14:04 EDT 2004 -->
<TITLE>
CGIProcessEnvironment (Catalina Internal API Documentation)
</TITLE>

<META NAME="keywords" CONTENT="org.apache.catalina.util.CGIProcessEnvironment class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="CGIProcessEnvironment (Catalina Internal API Documentation)";
}
</SCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/catalina/util/Base64.html" title="class in org.apache.catalina.util"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/catalina/util/CharsetMapper.html" title="class in org.apache.catalina.util"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="CGIProcessEnvironment.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>

</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.apache.catalina.util.ProcessEnvironment">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.catalina.util</FONT>
<BR>
Class CGIProcessEnvironment</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html" title="class in org.apache.catalina.util">org.apache.catalina.util.ProcessEnvironment</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.catalina.util.CGIProcessEnvironment</B>
</PRE>
<HR>
<DL>
<DT>public class <B>CGIProcessEnvironment</B><DT>extends <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html" title="class in org.apache.catalina.util">ProcessEnvironment</A></DL>

<P>
Encapsulates the CGI Process' environment and rules to derive
 that environment from the servlet container and request information.
<P>

<P>
<DL>
<DT><B>Since:</B></DT>
  <DD>Tomcat 4.0</DD>
<DT><B>Version:</B></DT>
  <DD>$Revision: 1.4 $, $Date: 2004/08/26 21:42:40 $</DD>
<DT><B>Author:</B></DT>
  <DD>Martin Dengler [root@martindengler.com]</DD>
</DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_org.apache.catalina.util.ProcessEnvironment"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Fields inherited from class org.apache.catalina.util.<A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html" title="class in org.apache.catalina.util">ProcessEnvironment</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#command">command</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#debug">debug</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#env">env</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#pathInfo">pathInfo</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#valid">valid</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#workingDirectory">workingDirectory</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/catalina/util/CGIProcessEnvironment.html#CGIProcessEnvironment(javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext)">CGIProcessEnvironment</A></B>(javax.servlet.http.HttpServletRequest&nbsp;req,
                      javax.servlet.ServletContext&nbsp;context)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a ProcessEnvironment and derives the necessary environment,
 working directory, command, etc.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/catalina/util/CGIProcessEnvironment.html#CGIProcessEnvironment(javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext, int)">CGIProcessEnvironment</A></B>(javax.servlet.http.HttpServletRequest&nbsp;req,
                      javax.servlet.ServletContext&nbsp;context,
                      int&nbsp;debug)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a ProcessEnvironment and derives the necessary environment,
 working directory, command, etc.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/catalina/util/CGIProcessEnvironment.html#CGIProcessEnvironment(javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext, java.lang.String)">CGIProcessEnvironment</A></B>(javax.servlet.http.HttpServletRequest&nbsp;req,
                      javax.servlet.ServletContext&nbsp;context,
                      java.lang.String&nbsp;cgiPathPrefix)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a ProcessEnvironment and derives the necessary environment,
 working directory, command, etc.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/catalina/util/CGIProcessEnvironment.html#CGIProcessEnvironment(javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext, java.lang.String, int)">CGIProcessEnvironment</A></B>(javax.servlet.http.HttpServletRequest&nbsp;req,
                      javax.servlet.ServletContext&nbsp;context,
                      java.lang.String&nbsp;cgiPathPrefix,
                      int&nbsp;debug)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a ProcessEnvironment and derives the necessary environment,
 working directory, command, etc.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/catalina/util/CGIProcessEnvironment.html#deriveProcessEnvironment(javax.servlet.http.HttpServletRequest)">deriveProcessEnvironment</A></B>(javax.servlet.http.HttpServletRequest&nbsp;req)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs the CGI environment to be supplied to the invoked CGI
 script; relies heavliy on Servlet API methods and findCGI</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/catalina/util/CGIProcessEnvironment.html#findCGI(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)">findCGI</A></B>(java.lang.String&nbsp;pathInfo,
        java.lang.String&nbsp;webAppRootDir,
        java.lang.String&nbsp;contextPath,
        java.lang.String&nbsp;servletPath,
        java.lang.String&nbsp;cgiPathPrefix)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resolves core information about the cgi script.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.Hashtable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/catalina/util/CGIProcessEnvironment.html#getParameters()">getParameters</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets process' derived query parameters</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/catalina/util/CGIProcessEnvironment.html#toString()">toString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print important CGI environment information in an
 easy-to-read HTML table</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_org.apache.catalina.util.ProcessEnvironment"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class org.apache.catalina.util.<A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html" title="class in org.apache.catalina.util">ProcessEnvironment</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#blanksToString(java.lang.String, java.lang.String)">blanksToString</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#getCommand()">getCommand</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#getContext()">getContext</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#getContextPath()">getContextPath</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#getEnvironment()">getEnvironment</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#getServletPath()">getServletPath</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#getWebAppRootDir()">getWebAppRootDir</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#getWorkingDirectory()">getWorkingDirectory</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#isValid()">isValid</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#log(java.lang.String)">log</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#nullsToBlanks(java.lang.String)">nullsToBlanks</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#nullsToString(java.lang.String, java.lang.String)">nullsToString</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#setCommand(java.lang.String)">setCommand</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#setEnvironment(java.util.Hashtable)">setEnvironment</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#setupFromContext(javax.servlet.ServletContext)">setupFromContext</A>, <A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#setupFromRequest(javax.servlet.http.HttpServletRequest)">setupFromRequest</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="CGIProcessEnvironment(javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext)"><!-- --></A><H3>
CGIProcessEnvironment</H3>
<PRE>
public <B>CGIProcessEnvironment</B>(javax.servlet.http.HttpServletRequest&nbsp;req,
                             javax.servlet.ServletContext&nbsp;context)</PRE>
<DL>
<DD>Creates a ProcessEnvironment and derives the necessary environment,
 working directory, command, etc.  The cgi path prefix is initialized
 to "" (the empty string).
<P>
<DT><B>Parameters:</B><DD><CODE>req</CODE> - HttpServletRequest for information provided by
                   the Servlet API<DD><CODE>context</CODE> - ServletContext for information provided by
                   the Servlet API</DL>
<HR>

<A NAME="CGIProcessEnvironment(javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext, java.lang.String)"><!-- --></A><H3>
CGIProcessEnvironment</H3>
<PRE>
public <B>CGIProcessEnvironment</B>(javax.servlet.http.HttpServletRequest&nbsp;req,
                             javax.servlet.ServletContext&nbsp;context,
                             java.lang.String&nbsp;cgiPathPrefix)</PRE>
<DL>
<DD>Creates a ProcessEnvironment and derives the necessary environment,
 working directory, command, etc.
<P>
<DT><B>Parameters:</B><DD><CODE>req</CODE> - HttpServletRequest for information provided by
                        the Servlet API<DD><CODE>context</CODE> - ServletContext for information provided by
                        the Servlet API<DD><CODE>cgiPathPrefix</CODE> - subdirectory of webAppRootDir below which the
                        web app's CGIs may be stored; can be null or "".</DL>
<HR>

<A NAME="CGIProcessEnvironment(javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext, int)"><!-- --></A><H3>
CGIProcessEnvironment</H3>
<PRE>
public <B>CGIProcessEnvironment</B>(javax.servlet.http.HttpServletRequest&nbsp;req,
                             javax.servlet.ServletContext&nbsp;context,
                             int&nbsp;debug)</PRE>
<DL>
<DD>Creates a ProcessEnvironment and derives the necessary environment,
 working directory, command, etc.
<P>
<DT><B>Parameters:</B><DD><CODE>req</CODE> - HttpServletRequest for information provided by
                        the Servlet API<DD><CODE>context</CODE> - ServletContext for information provided by
                        the Servlet API<DD><CODE>debug</CODE> - int debug level (0 == none, 6 == lots)</DL>
<HR>

<A NAME="CGIProcessEnvironment(javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext, java.lang.String, int)"><!-- --></A><H3>
CGIProcessEnvironment</H3>
<PRE>
public <B>CGIProcessEnvironment</B>(javax.servlet.http.HttpServletRequest&nbsp;req,
                             javax.servlet.ServletContext&nbsp;context,
                             java.lang.String&nbsp;cgiPathPrefix,
                             int&nbsp;debug)</PRE>
<DL>
<DD>Creates a ProcessEnvironment and derives the necessary environment,
 working directory, command, etc.
<P>
<DT><B>Parameters:</B><DD><CODE>req</CODE> - HttpServletRequest for information provided by
                        the Servlet API<DD><CODE>context</CODE> - ServletContext for information provided by
                        the Servlet API<DD><CODE>cgiPathPrefix</CODE> - subdirectory of webAppRootDir below which the
                        web app's CGIs may be stored; can be null or "".<DD><CODE>debug</CODE> - int debug level (0 == none, 6 == lots)</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="deriveProcessEnvironment(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
deriveProcessEnvironment</H3>
<PRE>
protected boolean <B>deriveProcessEnvironment</B>(javax.servlet.http.HttpServletRequest&nbsp;req)</PRE>
<DL>
<DD>Constructs the CGI environment to be supplied to the invoked CGI
 script; relies heavliy on Servlet API methods and findCGI
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#deriveProcessEnvironment(javax.servlet.http.HttpServletRequest)">deriveProcessEnvironment</A></CODE> in class <CODE><A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html" title="class in org.apache.catalina.util">ProcessEnvironment</A></CODE></DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>true if environment was set OK, false if there was a problem
           and no environment was set</DL>
</DD>
</DL>
<HR>

<A NAME="findCGI(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
findCGI</H3>
<PRE>
protected java.lang.String[] <B>findCGI</B>(java.lang.String&nbsp;pathInfo,
                                     java.lang.String&nbsp;webAppRootDir,
                                     java.lang.String&nbsp;contextPath,
                                     java.lang.String&nbsp;servletPath,
                                     java.lang.String&nbsp;cgiPathPrefix)</PRE>
<DL>
<DD>Resolves core information about the cgi script. <p> Example URI:
 <PRE> /servlet/cgigateway/dir1/realCGIscript/pathinfo1 </PRE> <ul>
 <LI><b>path</b> = $CATALINA_HOME/mywebapp/dir1/realCGIscript
 <LI><b>scriptName</b> = /servlet/cgigateway/dir1/realCGIscript</LI>
 <LI><b>cgiName</b> = /dir1/realCGIscript
 <LI><b>name</b> = realCGIscript
 </ul>
 </p>
 <p>
 CGI search algorithm: search the real path below
 &lt;my-webapp-root&gt; and find the first non-directory in
 the getPathTranslated("/"), reading/searching from left-to-right.
 </p>
 <p>
 The CGI search path will start at
 webAppRootDir + File.separator + cgiPathPrefix (or webAppRootDir
 alone if cgiPathPrefix is null).
 </p>
 <p>
 cgiPathPrefix is usually set by the calling servlet to the servlet's
 cgiPathPrefix init parameter
 </p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pathInfo</CODE> - String from HttpServletRequest.getPathInfo()<DD><CODE>webAppRootDir</CODE> - String from context.getRealPath("/")<DD><CODE>contextPath</CODE> - String as from HttpServletRequest.getContextPath()<DD><CODE>servletPath</CODE> - String as from HttpServletRequest.getServletPath()<DD><CODE>cgiPathPrefix</CODE> - subdirectory of webAppRootDir below which the
                       web app's CGIs may be stored; can be null.
<DT><B>Returns:</B><DD><ul> <li> <code>path</code>  -    full file-system path to valid cgi
                                   script, or null if no cgi was found
 <li> <code>scriptName</code> -    CGI variable SCRIPT_NAME; the full
                                   URL path to valid cgi script or
                                   null if no cgi was found
 <li> <code>cgiName</code>    -    servlet pathInfo fragment
                                   corresponding to the cgi script
                                   itself, or null if not found
 <li> <code>name</code>       -    simple name (no directories) of
                                   the cgi script, or null if no cgi
                                   was found
 </ul><DT><B>Since:</B></DT>
  <DD>Tomcat 4.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Print important CGI environment information in an
 easy-to-read HTML table
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../../org/apache/catalina/util/ProcessEnvironment.html" title="class in org.apache.catalina.util">ProcessEnvironment</A></CODE></DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>HTML string containing CGI environment info</DL>
</DD>
</DL>
<HR>

<A NAME="getParameters()"><!-- --></A><H3>
getParameters</H3>
<PRE>
public java.util.Hashtable <B>getParameters</B>()</PRE>
<DL>
<DD>Gets process' derived query parameters
<P>
<DD><DL>

<DT><B>Returns:</B><DD>process' query parameters</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/catalina/util/Base64.html" title="class in org.apache.catalina.util"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/catalina/util/CharsetMapper.html" title="class in org.apache.catalina.util"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="CGIProcessEnvironment.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>

</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.apache.catalina.util.ProcessEnvironment">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
Copyright  2000-2002 Apache Software Foundation.  All Rights Reserved.
</BODY>
</HTML>
