com.maxmind.geoip2.model.DomainResponse Java Examples

The following examples show how to use com.maxmind.geoip2.model.DomainResponse. 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 vote down vote up
/**
 * Look up an IP address in a GeoIP2 Domain database.
 *
 * @param ipAddress IPv4 or IPv6 address to lookup.
 * @return a DomainResponse 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 DomainResponse domain(InetAddress ipAddress) throws IOException,
        GeoIp2Exception {
    return this
            .get(ipAddress, DomainResponse.class, false, "GeoIP2-Domain");
}
 
Example #2
Source File: DatabaseReader.java    From nifi with Apache License 2.0 2 votes vote down vote up
/**
 * Look up an IP address in a GeoIP2 Domain database.
 *
 * @param ipAddress IPv4 or IPv6 address to lookup.
 * @return a DomainResponse 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 DomainResponse domain(InetAddress ipAddress) throws IOException, GeoIp2Exception {
    return this.get(ipAddress, DomainResponse.class, false, "GeoIP2-Domain");
}
 
Example #3
Source File: DatabaseReader.java    From nifi with Apache License 2.0 2 votes vote down vote up
/**
 * Look up an IP address in a GeoIP2 Domain database.
 *
 * @param ipAddress IPv4 or IPv6 address to lookup.
 * @return a DomainResponse for the requested IP address.
 * @throws IOException if there is an IO error
 */
public DomainResponse domain(InetAddress ipAddress) throws IOException {
    return get(ipAddress, DomainResponse.class, false, "GeoIP2-Domain");
}