|
||||||||||
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
php.java.servlet.PhpCGIServlet
public class PhpCGIServlet
Handles requests from internet clients.
This servlet can handle GET/POST
requests directly. These requests invoke the php-cgi machinery from
the CGI or FastCGI servlet. Although the servlet to php-cgi back
to servlet path is quite slow (compared with the http front end/j2ee back end
setup) and consumes two servlet instances
instead of only one, it can be useful as a replacement for a system php
installation, see the README in the WEB-INF/cgi
folder. It is currently used for our J2EE test/demo.
JavaBridge
,
Serialized FormNested Class Summary | |
---|---|
class |
PhpCGIServlet.CGIEnvironment
Adjust the standard tomcat CGI env. |
Field Summary | |
---|---|
static boolean |
USE_SH_WRAPPER
True if /bin/sh exists, false otherwise |
Fields inherited from class php.java.servlet.fastcgi.FastCGIServlet |
---|
FCGI_PIPE, FCGI_PORT, PHP_FCGI_CHILDREN, PHP_FCGI_MAX_REQUESTS |
Fields inherited from class php.java.servlet.CGIServlet |
---|
BUF_SIZE, cgiPathPrefix, context, processEnvironment |
Constructor Summary | |
---|---|
PhpCGIServlet()
|
Method Summary | |
---|---|
void |
destroy()
Destroys the FastCGI connection pool, if it exists. |
static int |
getServletPoolSize()
Return the servlet pool size |
void |
init(javax.servlet.ServletConfig config)
Create a new FastCGI servlet which connects to a PHP FastCGI server using a connection pool. |
static void |
releaseReservedContinuation()
Release a captured continuation |
static void |
reserveContinuation()
Since each script captures up to two servlet instances, we must check the servlet engine's thread pool. |
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 boolean USE_SH_WRAPPER
Constructor Detail |
---|
public PhpCGIServlet()
Method Detail |
---|
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
FastCGIServlet
init
in interface javax.servlet.Servlet
init
in class FastCGIServlet
config
- The servlet config
javax.servlet.ServletException
- if an exception has occurred that
interferes with the servlet's normal
operationConnectionPool
,
FastCGIServlet.destroy()
public static int getServletPoolSize()
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class FastCGIServlet
public static void reserveContinuation() throws ScriptException
ScriptException
public static void releaseReservedContinuation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |