Package com.maxmind.geoip2.model
Class ConnectionTypeResponse
- java.lang.Object
-
- com.maxmind.geoip2.model.AbstractResponse
-
- com.maxmind.geoip2.model.ConnectionTypeResponse
-
public class ConnectionTypeResponse extends AbstractResponse
This class provides the GeoIP2 Connection-Type model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConnectionTypeResponse.ConnectionTypeThe enumerated values that connection-type may take.
-
Constructor Summary
Constructors Constructor Description ConnectionTypeResponse(ConnectionTypeResponse.ConnectionType connectionType, String ipAddress)ConnectionTypeResponse(ConnectionTypeResponse.ConnectionType connectionType, String ipAddress, Network network)ConnectionTypeResponse(ConnectionTypeResponse response, String ipAddress, Network network)ConnectionTypeResponse(String connectionType, String ipAddress, Network network)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionTypeResponse.ConnectionTypegetConnectionType()StringgetIpAddress()NetworkgetNetwork()-
Methods inherited from class com.maxmind.geoip2.model.AbstractResponse
toJson, toString
-
-
-
-
Constructor Detail
-
ConnectionTypeResponse
public ConnectionTypeResponse(ConnectionTypeResponse.ConnectionType connectionType, String ipAddress)
-
ConnectionTypeResponse
public ConnectionTypeResponse(ConnectionTypeResponse.ConnectionType connectionType, String ipAddress, Network network)
-
ConnectionTypeResponse
public ConnectionTypeResponse(String connectionType, String ipAddress, Network network)
-
ConnectionTypeResponse
public ConnectionTypeResponse(ConnectionTypeResponse response, String ipAddress, Network network)
-
-
Method Detail
-
getConnectionType
public ConnectionTypeResponse.ConnectionType getConnectionType()
- Returns:
- The connection type of the IP address.
-
getIpAddress
public String getIpAddress()
- Returns:
- The IP address that the data in the model is for.
-
getNetwork
public Network getNetwork()
- Returns:
- The network associated with the record. In particular, this is the largest network where all of the fields besides IP address have the same value.
-
-