@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, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, getServletConfig, getServletInfo, init, service
public 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 OptingServlet
request
- The request to examinetrue
if this servlet will handle the request,
false
otherwiseCopyright © 2010 - 2020 Adobe. All Rights Reserved