public class JspServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
private static int |
CHAR_LIMIT |
private javax.servlet.ServletConfig |
config |
private javax.servlet.ServletContext |
context |
private java.util.concurrent.atomic.AtomicInteger |
countErrors |
private java.util.HashSet<java.lang.String> |
httpMethodsSet |
private java.lang.String |
httpMethodsString |
private JspProbeEmitter |
jspProbeEmitter |
private static java.util.logging.Logger |
log |
private Options |
options |
private JspRuntimeContext |
rctxt |
private java.util.concurrent.ConcurrentHashMap<java.lang.String,java.net.URL> |
tagFileJarUrls |
private java.util.concurrent.ConcurrentHashMap<java.lang.String,javax.servlet.jsp.tagext.TagLibraryInfo> |
taglibs |
Constructor and Description |
---|
JspServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
int |
getJspCount()
Returns the number of JSPs for which JspServletWrappers exist, i.e.,
the number of JSPs that have been loaded into the webapp with which
this JspServlet is associated.
|
int |
getJspErrorCount()
Gets the number of errors triggered by JSP invocations.
|
int |
getJspReloadCount()
Gets the number of JSPs that have been reloaded.
|
private void |
incrementErrorCount(java.lang.String jspUri) |
void |
init(javax.servlet.ServletConfig config) |
(package private) boolean |
preCompile(javax.servlet.http.HttpServletRequest request)
Look for a precompilation request as described in
Section 8.4.2 of the JSP 1.2 Specification.
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
private void |
serviceJspFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String jspUri,
java.lang.Throwable exception,
boolean precompile) |
void |
setJspReloadCount(int count)
Resets the JSP reload counter.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
private static java.util.logging.Logger log
private static final int CHAR_LIMIT
private javax.servlet.ServletContext context
private javax.servlet.ServletConfig config
private Options options
private JspRuntimeContext rctxt
private java.util.concurrent.atomic.AtomicInteger countErrors
private java.lang.String httpMethodsString
private java.util.HashSet<java.lang.String> httpMethodsSet
private java.util.concurrent.ConcurrentHashMap<java.lang.String,javax.servlet.jsp.tagext.TagLibraryInfo> taglibs
private java.util.concurrent.ConcurrentHashMap<java.lang.String,java.net.URL> tagFileJarUrls
private JspProbeEmitter jspProbeEmitter
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public int getJspCount()
This info may be used for monitoring purposes.
public void setJspReloadCount(int count)
count
- Value to which to reset the JSP reload counterpublic int getJspReloadCount()
This info may be used for monitoring purposes.
public int getJspErrorCount()
boolean preCompile(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
Look for a precompilation request as described in
Section 8.4.2 of the JSP 1.2 Specification. WARNING -
we cannot use request.getParameter()
for this, because
that will trigger parsing all of the request parameters, and not give
a servlet the opportunity to call
request.setCharacterEncoding()
first.
request
- The servlet requset we are processingjavax.servlet.ServletException
- if an invalid parameter value for the
jsp_precompile
parameter name is specifiedpublic void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
private void serviceJspFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String jspUri, java.lang.Throwable exception, boolean precompile) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
private void incrementErrorCount(java.lang.String jspUri)