Class GeoLocationResponse
java.lang.Object
org.apereo.cas.authentication.adaptive.geo.GeoLocationResponse
- All Implemented Interfaces:
Serializable
This is
GeoLocationResponse that represents a particular geo location
usually calculated from an ip address.- Since:
- 5.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGeoLocationResponse.GeoLocationResponseBuilder<C extends GeoLocationResponse,B extends GeoLocationResponse.GeoLocationResponseBuilder<C, B>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAddress(String address) Add address.build()Format the address into a long string.static GeoLocationResponse.GeoLocationResponseBuilder<?, ?> builder()doubledoublesetLatitude(double latitude) setLongitude(double longitude) toString()
-
Constructor Details
-
GeoLocationResponse
public GeoLocationResponse()
-
-
Method Details
-
addAddress
Add address.- Parameters:
address- the address- Returns:
- the geo location response
-
build
Format the address into a long string.- Returns:
- the string
-
builder
-
toString
-
getAddresses
-
getLatitude
public double getLatitude() -
getLongitude
public double getLongitude() -
setLatitude
- Returns:
this.
-
setLongitude
- Returns:
this.
-