Package org.apache.sling.engine
Interface RequestInfoProvider
-
public interface RequestInfoProviderThis service can be used to gather information about requests processed by the engine.- Since:
- 2.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clear all request infosintgetMayNumberOfInfos()Get the maximum number of provided infosRequestInfogetRequestInfo(java.lang.String id)Get the request info for the idjava.lang.Iterable<RequestInfo>getRequestInfos()Get the request infos
-
-
-
Method Detail
-
getRequestInfo
RequestInfo getRequestInfo(java.lang.String id)
Get the request info for the id- Parameters:
id- The id- Returns:
- The request info or
null
-
getRequestInfos
java.lang.Iterable<RequestInfo> getRequestInfos()
Get the request infos- Returns:
- An iterator for the request infos
-
getMayNumberOfInfos
int getMayNumberOfInfos()
Get the maximum number of provided infos- Returns:
- The maximum number,
0if no infos are recorded
-
clear
void clear()
Clear all request infos
-
-