Package com.maxmind.geoip2.model
Class ConnectionTypeResponse
java.lang.Object
com.maxmind.geoip2.model.AbstractResponse
com.maxmind.geoip2.model.ConnectionTypeResponse
This class provides the GeoIP2 Connection-Type model.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The enumerated values that connection-type may take. -
Constructor Summary
ConstructorsConstructorDescriptionConnectionTypeResponse
(ConnectionTypeResponse.ConnectionType connectionType, String ipAddress, Network network) ConnectionTypeResponse
(ConnectionTypeResponse response, String ipAddress, Network network) ConnectionTypeResponse
(String connectionType, String ipAddress, Network network) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.maxmind.geoip2.model.AbstractResponse
toJson, toString
-
Constructor Details
-
ConnectionTypeResponse
public ConnectionTypeResponse(ConnectionTypeResponse.ConnectionType connectionType, String ipAddress, Network network) -
ConnectionTypeResponse
-
ConnectionTypeResponse
-
-
Method Details
-
getConnectionType
- Returns:
- The connection type of the IP address.
-
getIpAddress
- Returns:
- The IP address that the data in the model is for.
-
getNetwork
- Returns:
- The network associated with the record. In particular, this is the largest network where all the fields besides IP address have the same value.
-