Package org.forgerock.services.context
Class RequestAuditContext
- java.lang.Object
-
- org.forgerock.services.context.AbstractContext
-
- org.forgerock.services.context.RequestAuditContext
-
- All Implemented Interfaces:
Context
public class RequestAuditContext extends AbstractContext
A context for audit information for an incoming request.
-
-
Field Summary
-
Fields inherited from class org.forgerock.services.context.AbstractContext
data
-
-
Constructor Summary
Constructors Constructor Description RequestAuditContext(JsonValue savedContext, ClassLoader classLoader)
Restores a saved context.RequestAuditContext(Context parent)
Constructs a new context using the specified parent and the current time as the request received time.RequestAuditContext(Context parent, Clock clock)
Constructs a new context using the specified parent and the current time as the request received time.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getRequestReceivedTime()
Get the time in milliseconds since the epoch that the request was received.-
Methods inherited from class org.forgerock.services.context.AbstractContext
asContext, containsContext, containsContext, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString
-
-
-
-
Constructor Detail
-
RequestAuditContext
public RequestAuditContext(Context parent)
Constructs a new context using the specified parent and the current time as the request received time.- Parameters:
parent
- The parent context.
-
RequestAuditContext
public RequestAuditContext(Context parent, Clock clock)
Constructs a new context using the specified parent and the current time as the request received time.- Parameters:
parent
- The parent context.clock
- The instance ofClock
to use.
-
RequestAuditContext
public RequestAuditContext(JsonValue savedContext, ClassLoader classLoader)
Restores a saved context.- Parameters:
savedContext
- The saved state.classLoader
- TheClassLoader
to use.
-
-