Class RequestInfoProviderImpl
java.lang.Object
org.apache.sling.engine.impl.debug.RequestInfoProviderImpl
- All Implemented Interfaces:
RequestInfoProvider
Track requests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all request infosprotected voidintGet the maximum number of provided infosintGet the maximum number of provided infosgetRequestInfo(String id) Get the request info for the idGet the request infosbooleanIs recording of requests enabled?booleanisEnabledFor(String path) Is recording of requests for this path enabled?static voidprotected voidupdate(org.apache.sling.engine.impl.Config config)
-
Constructor Details
-
RequestInfoProviderImpl
public RequestInfoProviderImpl(org.apache.sling.engine.impl.Config config)
-
-
Method Details
-
update
protected void update(org.apache.sling.engine.impl.Config config) -
deactivate
protected void deactivate() -
recordRequest
-
isEnabled
public boolean isEnabled()Description copied from interface:RequestInfoProviderIs recording of requests enabled?- Specified by:
isEnabledin interfaceRequestInfoProvider- Returns:
trueif enabled, false} otherwise
-
isEnabledFor
Description copied from interface:RequestInfoProviderIs recording of requests for this path enabled?- Specified by:
isEnabledForin interfaceRequestInfoProvider- Parameters:
path- The path- Returns:
trueif enabled, false} otherwise
-
getMayNumberOfInfos
public int getMayNumberOfInfos()Description copied from interface:RequestInfoProviderGet the maximum number of provided infos- Specified by:
getMayNumberOfInfosin interfaceRequestInfoProvider- Returns:
- The maximum number,
0if no infos are recorded
-
getMaxNumberOfInfos
public int getMaxNumberOfInfos()Description copied from interface:RequestInfoProviderGet the maximum number of provided infos- Specified by:
getMaxNumberOfInfosin interfaceRequestInfoProvider- Returns:
- The maximum number,
0if no infos are recorded
-
clear
public void clear()Description copied from interface:RequestInfoProviderClear all request infos- Specified by:
clearin interfaceRequestInfoProvider
-
getRequestInfo
Description copied from interface:RequestInfoProviderGet the request info for the id- Specified by:
getRequestInfoin interfaceRequestInfoProvider- Parameters:
id- The id- Returns:
- The request info or
null
-
getRequestInfos
Description copied from interface:RequestInfoProviderGet the request infos- Specified by:
getRequestInfosin interfaceRequestInfoProvider- Returns:
- An iterator for the request infos
-