Package com.dropbox.core.v2.teamlog
Class WebDeviceSessionLogInfo
java.lang.Object
com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
com.dropbox.core.v2.teamlog.WebDeviceSessionLogInfo
Information on active web sessions
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final WebSessionLogInfoprotected final StringFields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
created, ipAddress, updated -
Constructor Summary
ConstructorsConstructorDescriptionWebDeviceSessionLogInfo(String userAgent, String os, String browser) Information on active web sessionsWebDeviceSessionLogInfo(String userAgent, String os, String browser, String ipAddress, Date created, Date updated, WebSessionLogInfo sessionInfo) Information on active web sessions -
Method Summary
Modifier and TypeMethodDescriptionbooleanInformation on the browser used for this web session.The time this session was created.The IP address of the last activity from this session.getOs()Information on the hosting operating system.Web session unique id.The time of the last activity from this session.Information on the hosting device.inthashCode()newBuilder(String userAgent, String os, String browser) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.Methods inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
newBuilder
-
Field Details
-
sessionInfo
-
userAgent
-
os
-
browser
-
-
Constructor Details
-
WebDeviceSessionLogInfo
public WebDeviceSessionLogInfo(@Nonnull String userAgent, @Nonnull String os, @Nonnull String browser, @Nullable String ipAddress, @Nullable Date created, @Nullable Date updated, @Nullable 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
WebDeviceSessionLogInfo
public WebDeviceSessionLogInfo(@Nonnull String userAgent, @Nonnull String os, @Nonnull 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getUserAgent
Information on the hosting device.- Returns:
- value for this field, never
null.
-
getOs
Information on the hosting operating system.- Returns:
- value for this field, never
null.
-
getBrowser
Information on the browser used for this web session.- Returns:
- value for this field, never
null.
-
getIpAddress
The IP address of the last activity from this session.- Overrides:
getIpAddressin classDeviceSessionLogInfo- Returns:
- value for this field, or
nullif not present.
-
getCreated
The time this session was created.- Overrides:
getCreatedin classDeviceSessionLogInfo- Returns:
- value for this field, or
nullif not present.
-
getUpdated
The time of the last activity from this session.- Overrides:
getUpdatedin classDeviceSessionLogInfo- Returns:
- value for this field, or
nullif not present.
-
getSessionInfo
Web session unique id.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static WebDeviceSessionLogInfo.Builder newBuilder(String userAgent, String os, 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()- Overrides:
hashCodein classDeviceSessionLogInfo
-
equals
- Overrides:
equalsin classDeviceSessionLogInfo
-
toString
- Overrides:
toStringin classDeviceSessionLogInfo
-
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
-