|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
php.java.servlet.CGIServlet
php.java.servlet.fastcgi.FastCGIServlet
public abstract class FastCGIServlet
A CGI Servlet which connects to a FastCGI server. If allowed by the administrator and if a fast cgi binary is installed in the JavaBridge web application or DEFAULT_CGI_LOCATIONS, the bridge can automatically start one FCGI server on the computer. Default is Autostart.
The admin may start a FCGI
server for all users with the command: cd /tmp
REDIRECT_STATUS=200 X_JAVABRIDGE_OVERRIDE_HOSTS="/" PHP_FCGI_CHILDREN="5"
PHP_FCGI_MAX_REQUESTS="5000" /usr/bin/php-cgi -b 127.0.0.1:9667
When the program /bin/sh does not exist, a program called launcher.exe
is called instead:
launcher.exe -a "path_to_php-cgi.exe" -b 9667.
Util.DEFAULT_CGI_LOCATIONS,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
FCGI_PIPE
|
static int |
FCGI_PORT
The Fast CGI default port |
static java.lang.String |
PHP_FCGI_CHILDREN
This controls how many child processes the PHP process spawns. |
static java.lang.String |
PHP_FCGI_MAX_REQUESTS
This controls how many requests each child process will handle before exitting. |
| Fields inherited from class php.java.servlet.CGIServlet |
|---|
BUF_SIZE, cgiPathPrefix, context, processEnvironment |
| Constructor Summary | |
|---|---|
FastCGIServlet()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroys the FastCGI connection pool, if it exists. |
void |
init(javax.servlet.ServletConfig config)
Create a new FastCGI servlet which connects to a PHP FastCGI server using a connection pool. |
static boolean |
isJavaBridgeWc(java.lang.String contextPath)
|
| Methods inherited from class php.java.servlet.CGIServlet |
|---|
getLocalPort, getRealPath |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FCGI_PORT
public static final java.lang.String PHP_FCGI_CHILDREN
Util.THREAD_POOL_MAX_SIZE,
Constant Field Valuespublic static final java.lang.String PHP_FCGI_MAX_REQUESTS
public static final java.lang.String FCGI_PIPE
| Constructor Detail |
|---|
public FastCGIServlet()
| Method Detail |
|---|
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class CGIServletconfig - a ServletConfig object
containing the servlet's
configuration and initialization
parameters
javax.servlet.ServletException - if an exception has occurred that
interferes with the servlet's normal
operationConnectionPool,
destroy()public void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic static boolean isJavaBridgeWc(java.lang.String contextPath)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||