Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.enhydra.servlet.servlets
Class CgiProcessor  view CgiProcessor download CgiProcessor.java

java.lang.Object
  extended byorg.enhydra.servlet.servlets.CgiProcessor

class CgiProcessor
extends java.lang.Object

This Servlet is for the purpose of executing a CGI program that resides on the system. In order to use this servlet in the Multiserver please remember to specify the fully qualified classname org.enhydra.servlet.servlets.CGIServlet in the Classname field and specify the directory of the CGI to run in the DocRoot field.

Version:
$Revision: 1.4.2.1.2.1 $

Field Summary
private static int buffer_size
          Buffer size for writeing one stream to another.
private static java.lang.String NOT_FOUND_MSG
          Html text to send clent for a file not found.
 
Constructor Summary
(package private) CgiProcessor()
           
 
Method Summary
static void cgiError(javax.servlet.http.HttpServletResponse response)
           
private  java.lang.String[] getCgiEnv(javax.servlet.http.HttpServletRequest request, java.lang.String scriptPath, java.lang.String pathInfo, java.lang.String scriptName)
           
 void processCgiRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String scriptPath, java.lang.String pathInfo, java.lang.String scriptName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer_size

private static final int buffer_size
Buffer size for writeing one stream to another.

See Also:
Constant Field Values

NOT_FOUND_MSG

private static final java.lang.String NOT_FOUND_MSG
Html text to send clent for a file not found.

See Also:
Constant Field Values
Constructor Detail

CgiProcessor

CgiProcessor()
Method Detail

processCgiRequest

public void processCgiRequest(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response,
                              java.lang.String scriptPath,
                              java.lang.String pathInfo,
                              java.lang.String scriptName)
                       throws java.io.IOException

getCgiEnv

private java.lang.String[] getCgiEnv(javax.servlet.http.HttpServletRequest request,
                                     java.lang.String scriptPath,
                                     java.lang.String pathInfo,
                                     java.lang.String scriptName)

cgiError

public static void cgiError(javax.servlet.http.HttpServletResponse response)
                     throws java.io.IOException