|
||||||||||
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.QuercusServletImpl
public class QuercusServletImpl
Servlet to call PHP through javax.script.
Field Summary | |
---|---|
protected ServletConfig |
_config
|
protected QuercusContext |
_quercus
|
protected ServletContext |
_servletContext
|
Constructor Summary | |
---|---|
QuercusServletImpl()
|
Method Summary | |
---|---|
protected void |
checkServletAPIVersion()
Makes sure the servlet container supports Servlet API 2.4+. |
void |
destroy()
Destroys the quercus instance. |
protected Path |
getPath(HttpServletRequest req)
|
protected QuercusContext |
getQuercus()
Returns the Quercus instance. |
protected void |
handleThrowable(HttpServletResponse response,
java.lang.Throwable e)
|
void |
init(ServletConfig config)
initialize the script manager. |
protected void |
initImpl(ServletConfig config)
|
protected WriteStream |
openWrite(HttpServletResponse response)
|
void |
service(HttpServletRequest request,
HttpServletResponse response)
Service. |
void |
setProfileProbability(double probability)
Sets the profiling 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, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected QuercusContext _quercus
protected ServletConfig _config
protected ServletContext _servletContext
Constructor Detail |
---|
public QuercusServletImpl()
Method Detail |
---|
public final void init(ServletConfig config) throws ServletException
init
in interface Servlet
init
in class GenericServlet
config
- the servlet's configuration
ServletException
protected void initImpl(ServletConfig config) throws ServletException
ServletException
public void setProfileProbability(double probability)
protected void checkServletAPIVersion()
public final void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
service
in class HttpServlet
request
- request informationresponse
- response object for returning data to the client.
ServletException
java.io.IOException
protected void handleThrowable(HttpServletResponse response, java.lang.Throwable e) throws java.io.IOException, ServletException
java.io.IOException
ServletException
protected WriteStream openWrite(HttpServletResponse response) throws java.io.IOException
java.io.IOException
protected Path getPath(HttpServletRequest req)
protected QuercusContext getQuercus()
public void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |