|
||||||||||
| 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
com.caucho.quercus.servlet.QuercusServlet
public class QuercusServlet
Servlet to call PHP through javax.script.
| Nested Class Summary | |
|---|---|
static class |
QuercusServlet.PhpIni
|
static class |
QuercusServlet.ServerEnv
|
| Constructor Summary | |
|---|---|
QuercusServlet()
|
|
| Method Summary | |
|---|---|
void |
addClass(PhpClassConfig classConfig)
Adds a quercus class. |
void |
addImplClass(PhpClassConfig classConfig)
Adds a quercus class. |
void |
addModule(QuercusModule module)
Adds a quercus module. |
QuercusServlet.PhpIni |
createPhpIni()
Adds a quercus.ini configuration |
QuercusServlet.ServerEnv |
createServerEnv()
Adds a $_SERVER configuration |
void |
destroy()
Gets the script manager. |
void |
init(ServletConfig config)
Initializes the servlet. |
void |
service(HttpServletRequest request,
HttpServletResponse response)
Service. |
void |
setCompile(java.lang.String isCompile)
Set true if quercus should be compiled into Java. |
void |
setDatabase(javax.sql.DataSource database)
Set the default data source. |
void |
setIniFile(Path path)
Adds a quercus.ini configuration |
protected void |
setInitParam(java.lang.String paramName,
java.lang.String paramValue)
Sets a named init-param to the passed value. |
void |
setMysqlVersion(java.lang.String version)
Sets the version of the client php library. |
void |
setPhpVersion(java.lang.String version)
Sets the php version that Quercus is implementing. |
void |
setScriptEncoding(java.lang.String encoding)
Sets the script encoding. |
void |
setStrict(boolean isStrict)
Sets the strict mode. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuercusServlet()
| Method Detail |
|---|
public void setCompile(java.lang.String isCompile)
throws ConfigException
ConfigException
public void setDatabase(javax.sql.DataSource database)
throws ConfigException
ConfigExceptionpublic void setStrict(boolean isStrict)
public void addModule(QuercusModule module)
throws ConfigException
ConfigException
public void addClass(PhpClassConfig classConfig)
throws ConfigException
ConfigException
public void addImplClass(PhpClassConfig classConfig)
throws ConfigException
ConfigException
public QuercusServlet.PhpIni createPhpIni()
throws ConfigException
ConfigException
public QuercusServlet.ServerEnv createServerEnv()
throws ConfigException
ConfigExceptionpublic void setIniFile(Path path)
public void setScriptEncoding(java.lang.String encoding)
throws ConfigException
ConfigExceptionpublic void setMysqlVersion(java.lang.String version)
public void setPhpVersion(java.lang.String version)
public void init(ServletConfig config)
throws ServletException
init in interface Servletinit in class GenericServletconfig - the servlet's configuration
ServletException
protected void setInitParam(java.lang.String paramName,
java.lang.String paramValue)
throws ServletException
ServletException - if the init-param is not recognized
public void service(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
service in class HttpServletrequest - request informationresponse - response object for returning data to the client.
ServletException
java.io.IOExceptionpublic void destroy()
destroy in interface Servletdestroy in class GenericServlet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||