php.java.servlet
Class PhpJavaServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by php.java.servlet.CGIServlet
              extended by php.java.servlet.PhpJavaServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class PhpJavaServlet
extends CGIServlet

Handles requests from PHP clients. When apache or IIS are not available this servlet can start php as a CGI sub-process. However, it is recommended to install php as an Apache module and to use the mod_jk adapter to connect apache with the servlet engine or application server.

See Also:
Serialized Form

Nested Class Summary
static class PhpJavaServlet.Logger
           
 
Constructor Summary
PhpJavaServlet()
           
 
Method Summary
 void destroy()
           
 void init(javax.servlet.ServletConfig config)
          Sets instance variables.
 
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
 

Constructor Detail

PhpJavaServlet

public PhpJavaServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Description copied from class: CGIServlet
Sets instance variables.

Modified from Craig R. McClanahan's InvokerServlet

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class CGIServlet
Parameters:
config - a ServletConfig object containing the servlet's configuration and initialization parameters
Throws:
javax.servlet.ServletException - if an exception has occurred that interferes with the servlet's normal operation

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet