Class JSONAccessLogMessage
- java.lang.Object
-
- com.unboundid.ldap.sdk.unboundidds.logs.v2.json.JSONLogMessage
-
- com.unboundid.ldap.sdk.unboundidds.logs.v2.json.JSONAccessLogMessage
-
- All Implemented Interfaces:
AccessLogMessage,LogMessage,java.io.Serializable
- Direct Known Subclasses:
JSONClientCertificateAccessLogMessage,JSONConnectAccessLogMessage,JSONDisconnectAccessLogMessage,JSONEntryRebalancingRequestAccessLogMessage,JSONRequestAccessLogMessage,JSONSecurityNegotiationAccessLogMessage
@NotExtensible @ThreadSafety(level=INTERFACE_THREADSAFE) public abstract class JSONAccessLogMessage extends JSONLogMessage implements AccessLogMessage
This class provides a data structure that holds information about a JSON-formatted access log message.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundiddspackage structure, are only supported for use against Ping Identity, UnboundID, and Nokia/Alcatel-Lucent 8661 server products. These classes provide support for proprietary functionality or for external specifications that are not considered stable or mature enough to be guaranteed to work in an interoperable way with other types of LDAP servers.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJSONAccessLogMessage(JSONObject jsonObject)Creates a new JSON access log message from the provided JSON object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.LonggetConnectionID()Retrieves the connection ID for the connection with which this access log message is associated.java.lang.StringgetInstanceName()Retrieves the Directory Server instance name for this access log message.java.lang.StringgetProductName()Retrieves the server product name for this access log message.java.lang.StringgetStartupID()Retrieves the Directory Server startup ID for this access log message.java.lang.LonggetThreadID()Retrieves the thread ID for the server thread that generated this access log message.-
Methods inherited from class com.unboundid.ldap.sdk.unboundidds.logs.v2.json.JSONLogMessage
getBoolean, getDouble, getFields, getGeneralizedTime, getInteger, getJSONObject, getLogType, getLong, getRFC3339Timestamp, getString, getTimestamp, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.unboundid.ldap.sdk.unboundidds.logs.v2.AccessLogMessage
getMessageType
-
Methods inherited from interface com.unboundid.ldap.sdk.unboundidds.logs.v2.LogMessage
getBoolean, getDouble, getFields, getGeneralizedTime, getInteger, getLong, getRFC3339Timestamp, getString, getTimestamp, toString
-
-
-
-
Constructor Detail
-
JSONAccessLogMessage
protected JSONAccessLogMessage(@NotNull JSONObject jsonObject) throws LogException
Creates a new JSON access log message from the provided JSON object.- Parameters:
jsonObject- The JSON object that contains an encoded representation of this log message. It must not benull.- Throws:
LogException- If the provided JSON object cannot be parsed as a valid log message.
-
-
Method Detail
-
getProductName
@Nullable public final java.lang.String getProductName()
Retrieves the server product name for this access log message.- Specified by:
getProductNamein interfaceAccessLogMessage- Returns:
- The server product name for this access log message, or
nullif it is not included in the log message.
-
getInstanceName
@Nullable public final java.lang.String getInstanceName()
Retrieves the Directory Server instance name for this access log message.- Specified by:
getInstanceNamein interfaceAccessLogMessage- Returns:
- The Directory Server instance name for this access log message, or
nullif it is not included in the log message.
-
getStartupID
@Nullable public final java.lang.String getStartupID()
Retrieves the Directory Server startup ID for this access log message.- Specified by:
getStartupIDin interfaceAccessLogMessage- Returns:
- The Directory Server startup ID for this access log message, or
nullif it is not included in the log message.
-
getThreadID
@Nullable public final java.lang.Long getThreadID()
Retrieves the thread ID for the server thread that generated this access log message.- Specified by:
getThreadIDin interfaceAccessLogMessage- Returns:
- The Directory Server thread ID for this access log message, or
nullif it is not included in the log message.
-
getConnectionID
@Nullable public final java.lang.Long getConnectionID()
Retrieves the connection ID for the connection with which this access log message is associated.- Specified by:
getConnectionIDin interfaceAccessLogMessage- Returns:
- The connection ID for the connection with which this access log
message is associated, or
nullif it is not included in the log message.
-
-