public class QuercusServletImpl extends HttpServlet
Modifier and Type | Field and Description |
---|---|
protected ServletConfig |
_config |
protected QuercusContext |
_quercus |
protected ServletContext |
_servletContext |
Constructor and Description |
---|
QuercusServletImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkServletAPIVersion()
Makes sure the servlet container supports Servlet API 2.4+.
|
void |
destroy()
Destroys the quercus instance.
|
protected Path |
getPath(QuercusHttpServletRequest 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
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log, toString
protected QuercusContext _quercus
protected ServletConfig _config
protected ServletContext _servletContext
public final void init(ServletConfig config) throws ServletException
init
in interface Servlet
init
in class GenericServlet
config
- the servlet's configurationServletException
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(QuercusHttpServletRequest req)
protected QuercusContext getQuercus()
public void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet