Class RequestInfoProviderImpl
java.lang.Object
org.apache.sling.engine.impl.debug.RequestInfoProviderImpl
- All Implemented Interfaces:
RequestInfoProvider
Track requests.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear all request infosprotected void
int
Get the maximum number of provided infosint
Get the maximum number of provided infosgetRequestInfo
(String id) Get the request info for the idGet the request infosboolean
Is recording of requests enabled?boolean
isEnabledFor
(String path) Is recording of requests for this path enabled?static void
protected void
update
(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:RequestInfoProvider
Is recording of requests enabled?- Specified by:
isEnabled
in interfaceRequestInfoProvider
- Returns:
true
if enabled, false} otherwise
-
isEnabledFor
Description copied from interface:RequestInfoProvider
Is recording of requests for this path enabled?- Specified by:
isEnabledFor
in interfaceRequestInfoProvider
- Parameters:
path
- The path- Returns:
true
if enabled, false} otherwise
-
getMayNumberOfInfos
public int getMayNumberOfInfos()Description copied from interface:RequestInfoProvider
Get the maximum number of provided infos- Specified by:
getMayNumberOfInfos
in interfaceRequestInfoProvider
- Returns:
- The maximum number,
0
if no infos are recorded
-
getMaxNumberOfInfos
public int getMaxNumberOfInfos()Description copied from interface:RequestInfoProvider
Get the maximum number of provided infos- Specified by:
getMaxNumberOfInfos
in interfaceRequestInfoProvider
- Returns:
- The maximum number,
0
if no infos are recorded
-
clear
public void clear()Description copied from interface:RequestInfoProvider
Clear all request infos- Specified by:
clear
in interfaceRequestInfoProvider
-
getRequestInfo
Description copied from interface:RequestInfoProvider
Get the request info for the id- Specified by:
getRequestInfo
in interfaceRequestInfoProvider
- Parameters:
id
- The id- Returns:
- The request info or
null
-
getRequestInfos
Description copied from interface:RequestInfoProvider
Get the request infos- Specified by:
getRequestInfos
in interfaceRequestInfoProvider
- Returns:
- An iterator for the request infos
-