public class NonExistingDispatcherServlet extends GenericServlet implements OptingServlet
Please note: This is a temporary solution until Sling provides a built-in mechanism for this use case. Not to be used by client implementations!
| Constructor and Description |
|---|
NonExistingDispatcherServlet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(SlingHttpServletRequest request)
Examines the request, and return
true if this servlet is
willing to handle the request. |
protected void |
activate(ComponentContext context) |
protected void |
bindServlet(ServiceReference reference) |
protected void |
deactivate(ComponentContext context) |
protected NonExistingResourceServlet |
findServlet(SlingHttpServletRequest request) |
void |
service(ServletRequest request,
ServletResponse res) |
protected void |
unbindServlet(ServiceReference reference) |
public boolean accepts(SlingHttpServletRequest request)
OptingServlettrue if this servlet is
willing to handle the request. If false is returned, the
request will be ignored by this servlet, and may be handled by other
servlets.accepts in interface OptingServletrequest - The request to examinetrue if this servlet will handle the request,
false otherwisepublic void service(ServletRequest request,
ServletResponse res)
throws ServletException,
java.io.IOException
ServletExceptionjava.io.IOExceptionprotected NonExistingResourceServlet findServlet(SlingHttpServletRequest request)
protected void activate(ComponentContext context)
protected void deactivate(ComponentContext context)
protected void bindServlet(ServiceReference reference)
protected void unbindServlet(ServiceReference reference)