|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.api.servlets.SlingAllMethodsServlet
com.day.cq.commons.servlets.AbstractPredicateServlet
public abstract class AbstractPredicateServlet
Abstract servlet that retrieves the predicates from the request.
| Field Summary | |
|---|---|
static String |
FILTER_PARAM
default name for the filter parameter |
static String |
PATH_PARAM
default path parameter name |
static String |
PREDICATE_PARAM
default name for the predicate parameter |
| Constructor Summary | |
|---|---|
AbstractPredicateServlet()
|
|
| Method Summary | |
|---|---|
protected void |
doGet(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response)
Calls doGet(SlingHttpServletRequest, SlingHttpServletResponse, Predicate). |
protected void |
doGet(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
org.apache.commons.collections.Predicate predicate)
Handles the HTTP GET method |
org.apache.commons.collections.Predicate |
getPredicate(org.apache.sling.api.SlingHttpServletRequest request)
Returns the predicate retrieved from the given request. |
protected int |
selectorPredicateStart()
Returns the index of the first selector that should be considered when retrieving the predicates for this servlet. |
| Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet |
|---|
doDelete, doPost, doPut, getAllowedRequestMethods, isMethodValid, mayService |
| Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet |
|---|
doGeneric, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, 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 String PATH_PARAM
public static final String PREDICATE_PARAM
public static final String FILTER_PARAM
| Constructor Detail |
|---|
public AbstractPredicateServlet()
| Method Detail |
|---|
protected void doGet(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet(SlingHttpServletRequest, SlingHttpServletResponse, Predicate).
doGet in class org.apache.sling.api.servlets.SlingSafeMethodsServletjavax.servlet.ServletException
IOException
protected void doGet(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
org.apache.commons.collections.Predicate predicate)
throws javax.servlet.ServletException,
IOException
request - The HTTP requestresponse - The HTTP responsepredicate - the predicate retrieved from the request
javax.servlet.ServletException - if a servlet error occurs
IOException - if an I/O error occursprotected int selectorPredicateStart()
Integer.MAX_VALUEpublic org.apache.commons.collections.Predicate getPredicate(org.apache.sling.api.SlingHttpServletRequest request)
AnyPredicate. If no predicates are specified in the request a
TruePredicate is returned.
Note: the "filter" parameters are used to add ResourceFilter
predicates. although this is discouraged because java class names should
never be passed over the wire.
request - servlet request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||