Class RemoteIpDetails

    • Method Detail

      • city

        public final City city()

        The city information of the remote IP address.

        Returns:
        The city information of the remote IP address.
      • country

        public final Country country()

        The country code of the remote IP address.

        Returns:
        The country code of the remote IP address.
      • geoLocation

        public final GeoLocation geoLocation()

        The location information of the remote IP address.

        Returns:
        The location information of the remote IP address.
      • ipAddressV4

        public final String ipAddressV4()

        The IPv4 remote address of the connection.

        Returns:
        The IPv4 remote address of the connection.
      • ipAddressV6

        public final String ipAddressV6()

        The IPv6 remote address of the connection.

        Returns:
        The IPv6 remote address of the connection.
      • organization

        public final Organization organization()

        The ISP organization information of the remote IP address.

        Returns:
        The ISP organization information of the remote IP address.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)