Class IPLocation

  • All Implemented Interfaces:
    java.io.Serializable

    public final class IPLocation
    extends Location
    Geographic location based on the IP address of the client making the request.

    This information is likely not accurate, but may give some indication as to the general location of the request and may provide some hints for the client software to act and react appropriately.

    See Also:
    Serialized Form
    • Method Detail

      • getIP

        public java.lang.String getIP()
        Returns:
        The IP address of the client as received by the server
      • getStreetAddress

        public StreetAddress getStreetAddress()
        Returns:
        The physical street address, only returned when the WPSStreetAddressLookup parameter is set to WPS_LIMITED_STREET_ADDRESS_LOOKUP or WPS_FULL_STREET_ADDRESS_LOOKUP.
      • hasStreetAddress

        public boolean hasStreetAddress()
        Returns:
        true if street address information is available
        Since:
        5.0
      • getTimeZone

        public TimeZone getTimeZone()
        Returns:
        time zone information, only returned when the timeZoneLookup parameter is set to true.
        Since:
        5.0
      • hasTimeZone

        public boolean hasTimeZone()
        Returns:
        true if time zone information is available
        Since:
        5.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Location