|
||||||||||
| 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
org.apache.sling.junit.impl.servlet.JUnitServlet
public class JUnitServlet
Simple test runner servlet
| Field Summary | |
|---|---|
static java.lang.String |
CSS
|
| Constructor Summary | |
|---|---|
JUnitServlet()
|
|
| Method Summary | |
|---|---|
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 request,
javax.servlet.http.HttpServletResponse response)
GET request lists available tests |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
POST request executes tests |
protected java.lang.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. |
protected java.lang.String |
getTestExecutionPath(javax.servlet.http.HttpServletRequest request,
TestSelector selector,
java.lang.String extension)
Return path to which to POST to execute specified test |
protected java.lang.String |
getTestSelectionPath(javax.servlet.http.HttpServletRequest request)
Return subpath to use for selecting tests |
protected TestSelector |
getTestSelector(javax.servlet.http.HttpServletRequest request)
Return a TestSelector for supplied request |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CSS
| Constructor Detail |
|---|
public JUnitServlet()
| Method Detail |
|---|
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.NamespaceExceptionprotected java.lang.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 request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOException
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOExceptionprotected TestSelector getTestSelector(javax.servlet.http.HttpServletRequest request)
protected java.lang.String getTestSelectionPath(javax.servlet.http.HttpServletRequest request)
protected java.lang.String getTestExecutionPath(javax.servlet.http.HttpServletRequest request,
TestSelector selector,
java.lang.String extension)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||