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 SummaryNested Classes Modifier and Type Class Description static classWebDeviceSessionLogInfo.BuilderBuilder forWebDeviceSessionLogInfo.
 - 
Field SummaryFields 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.DeviceSessionLogInfocreated, ipAddress, updated
 
- 
 - 
Constructor SummaryConstructors 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 SummaryAll 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.DeviceSessionLogInfonewBuilder
 
- 
 
- 
- 
- 
Field Detail- 
sessionInfoprotected final WebSessionLogInfo sessionInfo 
 - 
userAgentprotected final java.lang.String userAgent 
 - 
osprotected final java.lang.String os 
 - 
browserprotected final java.lang.String browser 
 
- 
 - 
Constructor Detail- 
WebDeviceSessionLogInfopublic 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 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.
- 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.
 
 - 
WebDeviceSessionLogInfopublic 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 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.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getUserAgentpublic java.lang.String getUserAgent() Information on the hosting device.- Returns:
- value for this field, never null.
 
 - 
getOspublic java.lang.String getOs() Information on the hosting operating system.- Returns:
- value for this field, never null.
 
 - 
getBrowserpublic java.lang.String getBrowser() Information on the browser used for this web session.- Returns:
- value for this field, never null.
 
 - 
getIpAddresspublic java.lang.String getIpAddress() The IP address of the last activity from this session.- Overrides:
- getIpAddressin class- DeviceSessionLogInfo
- Returns:
- value for this field, or nullif not present.
 
 - 
getCreatedpublic java.util.Date getCreated() The time this session was created.- Overrides:
- getCreatedin class- DeviceSessionLogInfo
- Returns:
- value for this field, or nullif not present.
 
 - 
getUpdatedpublic java.util.Date getUpdated() The time of the last activity from this session.- Overrides:
- getUpdatedin class- DeviceSessionLogInfo
- Returns:
- value for this field, or nullif not present.
 
 - 
getSessionInfopublic WebSessionLogInfo getSessionInfo() Web session unique id.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic 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 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.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- DeviceSessionLogInfo
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- DeviceSessionLogInfo
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- DeviceSessionLogInfo
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Overrides:
- toStringMultilinein class- DeviceSessionLogInfo
- Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-