@Service(value=javax.servlet.Servlet.class)
@Property(name="sling.servlet.resourceTypes",value="sling/junit/testing") @Property(name="sling.servlet.extensions",value="junit") @Property(name="sling.servlet.methods",value={"GET","POST"})
public class SlingJUnitServlet
extends javax.servlet.http.HttpServlet
Constructor and Description |
---|
SlingJUnitServlet() |
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) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final String EXTENSION
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 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
javax.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
javax.servlet.ServletException
IOException
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.