@SlingServlet(resourceTypes="nt:file",
extensions="html")
public class ProxyServlet
extends SlingSafeMethodsServlet
implements OptingServlet
| Constructor and Description |
|---|
ProxyServlet() |
| 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. |
getServletInfo, servicedestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, logpublic boolean accepts(SlingHttpServletRequest request)
true 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.
Does not proxy for request to a nt:file that have no sling:resource type set in the jcr:content node.
accepts in interface OptingServletrequest - The request to examinetrue if this servlet will handle the request,
false otherwiseCopyright © 2010 - 2023 Adobe. All Rights Reserved