Class WebDeviceSessionLogInfo


  • public class WebDeviceSessionLogInfo
    extends DeviceSessionLogInfo
    Information on active web sessions
    • Field Detail

      • 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 sessions

        Use 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. 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.
        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 sessions

        The 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

      • 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. Might be missing due to historical data gap.
        Overrides:
        getIpAddress in class DeviceSessionLogInfo
        Returns:
        value for this field, or null if not present.
      • getCreated

        public java.util.Date getCreated()
        The time this session was created. Might be missing due to historical data gap.
        Overrides:
        getCreated in class DeviceSessionLogInfo
        Returns:
        value for this field, or null if not present.
      • getUpdated

        public java.util.Date getUpdated()
        The time of the last activity from this session. Might be missing due to historical data gap.
        Overrides:
        getUpdated in class DeviceSessionLogInfo
        Returns:
        value for this field, or null if not present.
      • getSessionInfo

        public WebSessionLogInfo getSessionInfo()
        Web session unique id. Might be missing due to historical data gap.
        Returns:
        value for this field, or null if 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 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.
      • toStringMultiline

        public java.lang.String toStringMultiline()
        Returns a String representation of this object formatted for easier readability.

        The returned String may contain newlines.

        Overrides:
        toStringMultiline in class DeviceSessionLogInfo
        Returns:
        Formatted, multiline String representation of this object