Class HttpCGI

java.lang.Object
  |
  +--HttpCGI

public class HttpCGI
extends java.lang.Object
implements HttpProcessor, java.lang.Runnable


Field Summary
protected  java.lang.Process cgi
           
protected  java.io.File cgiScript
           
protected  int contentLength
           
protected  java.lang.String[] env
           
protected  HttpInputStream in
           
protected static java.lang.Runtime jvm
           
protected  java.lang.String pathInfo
           
protected  java.lang.String scriptName
           
 
Constructor Summary
HttpCGI(HttpInputStream in, java.net.InetAddress ip)
           
 
Method Summary
protected  void extractScriptName()
           
protected  void initEnv(java.net.InetAddress ip)
           
 void processRequest(HttpOutputStream out)
           
 void run()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

in

protected HttpInputStream in

scriptName

protected java.lang.String scriptName

pathInfo

protected java.lang.String pathInfo

cgiScript

protected java.io.File cgiScript

contentLength

protected int contentLength

env

protected java.lang.String[] env

jvm

protected static java.lang.Runtime jvm

cgi

protected java.lang.Process cgi
Constructor Detail

HttpCGI

public HttpCGI(HttpInputStream in,
               java.net.InetAddress ip)
        throws java.io.IOException
Method Detail

extractScriptName

protected void extractScriptName()

initEnv

protected void initEnv(java.net.InetAddress ip)

processRequest

public void processRequest(HttpOutputStream out)
                    throws java.io.IOException
Specified by:
processRequest in interface HttpProcessor

run

public void run()
Specified by:
run in interface java.lang.Runnable