public class WebDeviceSessionLogInfo extends DeviceSessionLogInfo
Modifier and Type | Class and Description |
---|---|
static class |
WebDeviceSessionLogInfo.Builder
Builder for
WebDeviceSessionLogInfo . |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
browser |
protected java.lang.String |
os |
protected WebSessionLogInfo |
sessionInfo |
protected java.lang.String |
userAgent |
created, ipAddress, updated
Constructor and Description |
---|
WebDeviceSessionLogInfo(java.lang.String userAgent,
java.lang.String os,
java.lang.String browser)
Information on active web sessions
|
WebDeviceSessionLogInfo(java.lang.String userAgent,
java.lang.String os,
java.lang.String browser,
java.lang.String ipAddress,
java.util.Date created,
java.util.Date updated,
WebSessionLogInfo sessionInfo)
Information on active web sessions
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBrowser()
Information on the browser used for this web session.
|
java.util.Date |
getCreated()
The time this session was created.
|
java.lang.String |
getIpAddress()
The IP address of the last activity from this session.
|
java.lang.String |
getOs()
Information on the hosting operating system.
|
WebSessionLogInfo |
getSessionInfo()
Web session unique id.
|
java.util.Date |
getUpdated()
The time of the last activity from this session.
|
java.lang.String |
getUserAgent()
Information on the hosting device.
|
int |
hashCode() |
static WebDeviceSessionLogInfo.Builder |
newBuilder(java.lang.String userAgent,
java.lang.String os,
java.lang.String browser)
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
newBuilder
protected final WebSessionLogInfo sessionInfo
protected final java.lang.String userAgent
protected final java.lang.String os
protected final java.lang.String browser
public WebDeviceSessionLogInfo(java.lang.String userAgent, java.lang.String os, java.lang.String browser, java.lang.String ipAddress, java.util.Date created, java.util.Date updated, WebSessionLogInfo sessionInfo)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
userAgent
- Information on the hosting device. Must not be null
.os
- Information on the hosting operating system. Must not be
null
.browser
- Information on the browser used for this web session.
Must not be null
.ipAddress
- The IP address of the last activity from this session.
Might be missing due to historical data gap.created
- The time this session was created. Might be missing due
to historical data gap.updated
- The time of the last activity from this session. Might be
missing due to historical data gap.sessionInfo
- Web session unique id. Might be missing due to
historical data gap.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public WebDeviceSessionLogInfo(java.lang.String userAgent, java.lang.String os, java.lang.String browser)
The default values for unset fields will be used.
userAgent
- Information on the hosting device. Must not be null
.os
- Information on the hosting operating system. Must not be
null
.browser
- Information on the browser used for this web session.
Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getUserAgent()
null
.public java.lang.String getOs()
null
.public java.lang.String getBrowser()
null
.public java.lang.String getIpAddress()
getIpAddress
in class DeviceSessionLogInfo
null
if not present.public java.util.Date getCreated()
getCreated
in class DeviceSessionLogInfo
null
if not present.public java.util.Date getUpdated()
getUpdated
in class DeviceSessionLogInfo
null
if not present.public WebSessionLogInfo getSessionInfo()
null
if not present.public static WebDeviceSessionLogInfo.Builder newBuilder(java.lang.String userAgent, java.lang.String os, java.lang.String browser)
userAgent
- Information on the hosting device. Must not be null
.os
- Information on the hosting operating system. Must not be
null
.browser
- Information on the browser used for this web session.
Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class DeviceSessionLogInfo
public boolean equals(java.lang.Object obj)
equals
in class DeviceSessionLogInfo
public java.lang.String toString()
toString
in class DeviceSessionLogInfo
public java.lang.String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class DeviceSessionLogInfo