public class QuercusServlet extends HttpServlet
| Modifier and Type | Class and Description |
|---|---|
static class |
QuercusServlet.PhpIni |
static class |
QuercusServlet.ServerEnv |
| Constructor and Description |
|---|
QuercusServlet() |
| Modifier and Type | Method and Description |
|---|---|
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()
Closes the servlet instance.
|
protected QuercusServletImpl |
getQuercusServlet(boolean isResin) |
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 |
setCompileFailover(java.lang.String isCompileFailover)
Set true interpreted pages should be used for pages that fail to compile.
|
void |
setConnectionPool(boolean isEnable)
Turns connection pooling on or off.
|
void |
setDatabase(javax.sql.DataSource database)
Set the default data source.
|
void |
setDependencyCheckInterval(long ms) |
void |
setIniFile(java.lang.String relPath)
Sets a php.ini file.
|
protected void |
setInitParam(java.lang.String paramName,
java.lang.String paramValue)
Sets a named init-param to the passed value.
|
void |
setLicenseDirectory(java.lang.String relPath)
Sets the directory for Resin/Quercus licenses.
|
void |
setLooseParse(boolean isLooseParse)
Sets the strict mode.
|
void |
setMysqlVersion(java.lang.String version)
Sets the version of the client mysql library to report as.
|
void |
setPageCacheEntries(int entries)
Sets the max size of the page cache.
|
void |
setPageCacheSize(int size)
Sets the max size of the page cache.
|
void |
setPhpVersion(java.lang.String version)
Sets the php version that Quercus should report itself as.
|
void |
setProfileProbability(double probability)
Sets the frequency of profiling, expressed as a probability.
|
void |
setRegexpCacheSize(int size)
Sets the max size of the regexp cache.
|
void |
setRequireSource(boolean isRequireSource)
Set true if the source php is required
|
void |
setScriptEncoding(java.lang.String encoding)
Sets the script encoding.
|
void |
setStrict(boolean isStrict)
Sets the strict mode.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log, toStringprotected QuercusServletImpl getQuercusServlet(boolean isResin)
public void setCompile(java.lang.String isCompile)
throws ConfigException
ConfigExceptionpublic void setCompileFailover(java.lang.String isCompileFailover)
throws ConfigException
ConfigExceptionpublic void setProfileProbability(double probability)
throws ConfigException
ConfigExceptionpublic void setRequireSource(boolean isRequireSource)
public void setDependencyCheckInterval(long ms)
public void setDatabase(javax.sql.DataSource database)
throws ConfigException
ConfigExceptionpublic void setStrict(boolean isStrict)
public void setLooseParse(boolean isLooseParse)
public void setPageCacheEntries(int entries)
public void setPageCacheSize(int size)
public void setRegexpCacheSize(int size)
public void setConnectionPool(boolean isEnable)
public void addModule(QuercusModule module) throws ConfigException
ConfigExceptionpublic void addClass(PhpClassConfig classConfig) throws ConfigException
ConfigExceptionpublic void addImplClass(PhpClassConfig classConfig) throws ConfigException
ConfigExceptionpublic QuercusServlet.PhpIni createPhpIni() throws ConfigException
ConfigExceptionpublic QuercusServlet.ServerEnv createServerEnv() throws ConfigException
ConfigExceptionpublic void setIniFile(java.lang.String relPath)
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 setLicenseDirectory(java.lang.String relPath)
public void init(ServletConfig config) throws ServletException
init in interface Servletinit in class GenericServletconfig - the servlet's configurationServletExceptionprotected void setInitParam(java.lang.String paramName,
java.lang.String paramValue)
throws ServletException
ServletException - if the init-param is not recognizedpublic 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.ServletExceptionjava.io.IOExceptionpublic void destroy()
destroy in interface Servletdestroy in class GenericServlet