|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object php.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 IFCGIProcessFactory
args
- The PHP argumentsincludeJava
- automatically include Java.inc in each scripthome
- The PHP home dir or nullenv
- The process environment
java.io.IOException
public boolean canStartFCGI()
canStartFCGI
in interface IFCGIProcessFactory
public java.lang.String getCgiDir()
getCgiDir
in interface IFCGIProcessFactory
public java.util.HashMap getEnvironment()
getEnvironment
in interface IFCGIProcessFactory
public java.lang.String getPearDir()
getPearDir
in interface IFCGIProcessFactory
public java.lang.String getPhp()
getPhp
in interface IFCGIProcessFactory
public java.lang.String getPhpConnectionPoolSize()
getPhpConnectionPoolSize
in interface IFCGIProcessFactory
public boolean getPhpIncludeJava()
getPhpIncludeJava
in interface IFCGIProcessFactory
public java.lang.String getPhpMaxRequests()
FCGIUtil.PHP_FCGI_MAX_REQUESTS
getPhpMaxRequests
in interface IFCGIProcessFactory
public java.lang.String getWebInfDir()
getWebInfDir
in interface IFCGIProcessFactory
public void log(java.lang.String msg)
log
in interface IFCGIProcessFactory
msg
- The message to log
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |