Package com.dropbox.core.v2.teamlog
Class WebDeviceSessionLogInfo
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
-
- com.dropbox.core.v2.teamlog.WebDeviceSessionLogInfo
-
public class WebDeviceSessionLogInfo extends DeviceSessionLogInfo
Information on active web sessions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebDeviceSessionLogInfo.BuilderBuilder forWebDeviceSessionLogInfo.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringbrowserprotected java.lang.Stringosprotected WebSessionLogInfosessionInfoprotected java.lang.StringuserAgent-
Fields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
created, ipAddress, updated
-
-
Constructor Summary
Constructors Constructor Description WebDeviceSessionLogInfo(java.lang.String userAgent, java.lang.String os, java.lang.String browser)Information on active web sessionsWebDeviceSessionLogInfo(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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetBrowser()Information on the browser used for this web session.java.util.DategetCreated()The time this session was created.java.lang.StringgetIpAddress()The IP address of the last activity from this session.java.lang.StringgetOs()Information on the hosting operating system.WebSessionLogInfogetSessionInfo()Web session unique id.java.util.DategetUpdated()The time of the last activity from this session.java.lang.StringgetUserAgent()Information on the hosting device.inthashCode()static WebDeviceSessionLogInfo.BuildernewBuilder(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.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.-
Methods inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
newBuilder
-
-
-
-
Field Detail
-
sessionInfo
protected final WebSessionLogInfo sessionInfo
-
userAgent
protected final java.lang.String userAgent
-
os
protected final java.lang.String os
-
browser
protected final java.lang.String browser
-
-
Constructor Detail
-
WebDeviceSessionLogInfo
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)Information on active web sessionsUse
newBuilder(java.lang.String,java.lang.String,java.lang.String)to create instances of this class without specifying values for all optional fields.- Parameters:
userAgent- Information on the hosting device. Must not benull.os- Information on the hosting operating system. Must not benull.browser- Information on the browser used for this web session. Must not benull.ipAddress- The IP address of the last activity from this session.created- The time this session was created.updated- The time of the last activity from this session.sessionInfo- Web session unique id.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
WebDeviceSessionLogInfo
public WebDeviceSessionLogInfo(java.lang.String userAgent, java.lang.String os, java.lang.String browser)Information on active web sessionsThe default values for unset fields will be used.
- Parameters:
userAgent- Information on the hosting device. Must not benull.os- Information on the hosting operating system. Must not benull.browser- Information on the browser used for this web session. Must not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Detail
-
getUserAgent
public java.lang.String getUserAgent()
Information on the hosting device.- Returns:
- value for this field, never
null.
-
getOs
public java.lang.String getOs()
Information on the hosting operating system.- Returns:
- value for this field, never
null.
-
getBrowser
public java.lang.String getBrowser()
Information on the browser used for this web session.- Returns:
- value for this field, never
null.
-
getIpAddress
public java.lang.String getIpAddress()
The IP address of the last activity from this session.- Overrides:
getIpAddressin classDeviceSessionLogInfo- Returns:
- value for this field, or
nullif not present.
-
getCreated
public java.util.Date getCreated()
The time this session was created.- Overrides:
getCreatedin classDeviceSessionLogInfo- Returns:
- value for this field, or
nullif not present.
-
getUpdated
public java.util.Date getUpdated()
The time of the last activity from this session.- Overrides:
getUpdatedin classDeviceSessionLogInfo- Returns:
- value for this field, or
nullif not present.
-
getSessionInfo
public WebSessionLogInfo getSessionInfo()
Web session unique id.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public 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.- Parameters:
userAgent- Information on the hosting device. Must not benull.os- Information on the hosting operating system. Must not benull.browser- Information on the browser used for this web session. Must not benull.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDeviceSessionLogInfo
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classDeviceSessionLogInfo
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDeviceSessionLogInfo
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classDeviceSessionLogInfo- Returns:
- Formatted, multiline String representation of this object
-
-