com.maxmind.geoip2.model.ConnectionTypeResponse Java Examples
The following examples show how to use
com.maxmind.geoip2.model.ConnectionTypeResponse.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DatabaseReader.java From localization_nifi with Apache License 2.0 | 2 votes |
/** * Look up an IP address in a GeoIP2 Connection Type database. * * @param ipAddress IPv4 or IPv6 address to lookup. * @return a ConnectTypeResponse for the requested IP address. * @throws GeoIp2Exception if there is an error looking up the IP * @throws IOException if there is an IO error */ public ConnectionTypeResponse connectionType(InetAddress ipAddress) throws IOException, GeoIp2Exception { return this.get(ipAddress, ConnectionTypeResponse.class, false, "GeoIP2-Connection-Type"); }
Example #2
Source File: DatabaseReader.java From nifi with Apache License 2.0 | 2 votes |
/** * Look up an IP address in a GeoIP2 Connection Type database. * * @param ipAddress IPv4 or IPv6 address to lookup. * @return a ConnectTypeResponse for the requested IP address. * @throws GeoIp2Exception if there is an error looking up the IP * @throws IOException if there is an IO error */ public ConnectionTypeResponse connectionType(InetAddress ipAddress) throws IOException, GeoIp2Exception { return this.get(ipAddress, ConnectionTypeResponse.class, false, "GeoIP2-Connection-Type"); }
Example #3
Source File: DatabaseReader.java From nifi with Apache License 2.0 | 2 votes |
/** * Look up an IP address in a GeoIP2 Connection Type database. * * @param ipAddress IPv4 or IPv6 address to lookup. * @return a ConnectTypeResponse for the requested IP address. * @throws IOException if there is an IO error */ public ConnectionTypeResponse connectionType(InetAddress ipAddress) throws IOException { return get(ipAddress, ConnectionTypeResponse.class, false,"GeoIP2-Connection-Type"); }