public class JacocoServlet
extends javax.servlet.http.HttpServlet
EXPLAIN
for usage information,
which is also available at /system/sling/jacoco after installing this servlet with the default settings.Modifier and Type | Field and Description |
---|---|
static String |
EXEC_PATH
Requests ending with this subpath send the jacoco data
|
static String |
EXPLAIN |
Constructor and Description |
---|
JacocoServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext ctx) |
protected void |
deactivate(org.osgi.service.component.ComponentContext ctx) |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Get the jacoco execution data without resetting the agent
|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Get the jacoco execution data and reset the agent.
|
protected String |
getServletPath(org.osgi.service.component.ComponentContext ctx)
Return the path at which to mount this servlet, or null
if it must not be mounted.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final String EXPLAIN
public static final String EXEC_PATH
protected void activate(org.osgi.service.component.ComponentContext ctx) throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
protected String getServletPath(org.osgi.service.component.ComponentContext ctx)
protected void deactivate(org.osgi.service.component.ComponentContext ctx) throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
req
- the requestresp
- the responsejavax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
req
- the requestresp
- the responsejavax.servlet.ServletException
IOException
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.