php.java.servlet.fastcgi
Class FastCGIServlet.CGIRunner

java.lang.Object
  extended by php.java.servlet.CGIServlet.CGIRunner
      extended by php.java.servlet.fastcgi.FastCGIServlet.CGIRunner
Enclosing class:
FastCGIServlet

protected class FastCGIServlet.CGIRunner
extends CGIServlet.CGIRunner


Field Summary
protected  IContextFactory ctx
           
 
Fields inherited from class php.java.servlet.CGIServlet.CGIRunner
env, response, stdin, wd
 
Constructor Summary
protected FastCGIServlet.CGIRunner(CGIServlet.CGIEnvironment env)
           
 
Method Summary
protected  void doExecute()
           
protected  void execute()
           
protected  void parseBody()
          Optimized run method for FastCGI.
 
Methods inherited from class php.java.servlet.CGIServlet.CGIRunner
addHeader, setInput, setResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctx

protected IContextFactory ctx
Constructor Detail

FastCGIServlet.CGIRunner

protected FastCGIServlet.CGIRunner(CGIServlet.CGIEnvironment env)
Method Detail

doExecute

protected void doExecute()
                  throws java.io.IOException,
                         javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

execute

protected void execute()
                throws java.io.IOException,
                       javax.servlet.ServletException,
                       java.lang.InterruptedException
Specified by:
execute in class CGIServlet.CGIRunner
Throws:
java.io.IOException
javax.servlet.ServletException
java.lang.InterruptedException

parseBody

protected void parseBody()
                  throws java.io.IOException,
                         javax.servlet.ServletException
Optimized run method for FastCGI. Makes use of the large FCGI_BUF_SIZE and the specialized in.read(). It is a modified copy of the parseBody.

Throws:
java.lang.InterruptedException
java.io.IOException
javax.servlet.ServletException
See Also:
Util.parseBody(byte[], InputStream, OutputStream, HeaderParser)