|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphp.java.script.Continuation
php.java.script.FastCGIProxy
public class FastCGIProxy
This class can be used to run (and to connect to) a FastCGI server.
HttpFastCGIProxy| Constructor Summary | |
|---|---|
FastCGIProxy(java.io.Reader reader,
java.util.Map env,
java.io.OutputStream out,
java.io.OutputStream err,
HeaderParser headerParser,
ResultProxy resultProxy,
ILogger logger)
|
|
| Method Summary | |
|---|---|
boolean |
canStartFCGI()
Used for debugging only. |
IFCGIProcess |
createFCGIProcess(java.lang.String[] args,
boolean includeJava,
java.io.File home,
java.util.Map env)
Create a FastCGI Process |
java.lang.String |
getCgiDir()
The full path to the pear dir. |
java.util.HashMap |
getEnvironment()
Get the process environment map used for PHP. |
java.lang.String |
getPearDir()
The full path to the pear dir. |
java.lang.String |
getPhp()
Get the path to the PHP binary. |
java.lang.String |
getPhpConnectionPoolSize()
Get the connection pool size, usually FCGIUtil#PHP_FCGI_CONNECTION_POOL_SIZE |
boolean |
getPhpIncludeJava()
Get the value of the php_include_java option from the WEB-INF/web.xml. |
java.lang.String |
getPhpMaxRequests()
Get the max requests value, usually FCGIUtil.PHP_FCGI_MAX_REQUESTS |
java.lang.String |
getWebInfDir()
The full path to the web-inf dir. |
void |
log(java.lang.String msg)
Log message through preferred log mechanism, for example servlet.log() |
| Methods inherited from class php.java.script.Continuation |
|---|
call, getPhpScript, release, run |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FastCGIProxy(java.io.Reader reader,
java.util.Map env,
java.io.OutputStream out,
java.io.OutputStream err,
HeaderParser headerParser,
ResultProxy resultProxy,
ILogger logger)
| Method Detail |
|---|
public IFCGIProcess createFCGIProcess(java.lang.String[] args,
boolean includeJava,
java.io.File home,
java.util.Map env)
throws java.io.IOException
createFCGIProcess in interface IFCGIProcessFactoryargs - The PHP argumentsincludeJava - automatically include Java.inc in each scripthome - The PHP home dir or nullenv - The process environment
java.io.IOExceptionpublic boolean canStartFCGI()
canStartFCGI in interface IFCGIProcessFactorypublic java.lang.String getCgiDir()
getCgiDir in interface IFCGIProcessFactorypublic java.util.HashMap getEnvironment()
getEnvironment in interface IFCGIProcessFactorypublic java.lang.String getPearDir()
getPearDir in interface IFCGIProcessFactorypublic java.lang.String getPhp()
getPhp in interface IFCGIProcessFactorypublic java.lang.String getPhpConnectionPoolSize()
getPhpConnectionPoolSize in interface IFCGIProcessFactorypublic boolean getPhpIncludeJava()
getPhpIncludeJava in interface IFCGIProcessFactorypublic java.lang.String getPhpMaxRequests()
FCGIUtil.PHP_FCGI_MAX_REQUESTS
getPhpMaxRequests in interface IFCGIProcessFactorypublic java.lang.String getWebInfDir()
getWebInfDir in interface IFCGIProcessFactorypublic void log(java.lang.String msg)
log in interface IFCGIProcessFactorymsg - The message to log
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||