Class GeoLocationResponse

java.lang.Object
org.apereo.cas.authentication.adaptive.geo.GeoLocationResponse
All Implemented Interfaces:
Serializable

public class GeoLocationResponse extends Object implements Serializable
This is GeoLocationResponse that represents a particular geo location usually calculated from an ip address.
Since:
5.0.0
See Also:
  • Constructor Details

    • GeoLocationResponse

      public GeoLocationResponse()
  • Method Details

    • addAddress

      @CanIgnoreReturnValue public GeoLocationResponse addAddress(String address)
      Add address.
      Parameters:
      address - the address
      Returns:
      the geo location response
    • build

      public String build()
      Format the address into a long string.
      Returns:
      the string
    • builder

      public static GeoLocationResponse.GeoLocationResponseBuilder<?,?> builder()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAddresses

      public Set<String> getAddresses()
    • getLatitude

      public double getLatitude()
    • getLongitude

      public double getLongitude()
    • setLatitude

      public GeoLocationResponse setLatitude(double latitude)
      Returns:
      this.
    • setLongitude

      public GeoLocationResponse setLongitude(double longitude)
      Returns:
      this.