Skip navigation links
B C D G H I J L P R S T W 

B

build() - Method in class in.ankushs.dbip.api.GeoEntity.Builder
 
build() - Method in class in.ankushs.dbip.model.GeoAttributesImpl.Builder
 
Builder() - Constructor for class in.ankushs.dbip.api.GeoEntity.Builder
 
Builder() - Constructor for class in.ankushs.dbip.model.GeoAttributesImpl.Builder
 

C

checkEmptyString(String, String) - Static method in class in.ankushs.dbip.utils.PreConditions
Ensures the string passed to the method is not empty .
checkExpression(boolean, String) - Static method in class in.ankushs.dbip.utils.PreConditions
Ensures the truth of the expression passed.
checkNull(T, String) - Static method in class in.ankushs.dbip.utils.PreConditions
Ensures the object passed to the method is not null
CountryResolver - Class in in.ankushs.dbip.utils
 
CsvParser - Interface in in.ankushs.dbip.parser
 
CsvParserImpl - Class in in.ankushs.dbip.parser
 

D

DbIpClient - Class in in.ankushs.dbip.api
Class responsible for loading data into the JVM and also an API for resolving ip.
DbIpClient(File) - Constructor for class in.ankushs.dbip.api.DbIpClient
Create a new DbIpClient .
DbIpRepository - Interface in in.ankushs.dbip.repository
Abstraction for repository.For instance,a repository can be a TreeMap, or Redis.

G

GeoAttributes - Interface in in.ankushs.dbip.model
 
GeoAttributesImpl - Class in in.ankushs.dbip.model
 
GeoAttributesImpl.Builder - Class in in.ankushs.dbip.model
 
GeoEntity - Class in in.ankushs.dbip.api
 
GeoEntity(GeoEntity.Builder) - Constructor for class in.ankushs.dbip.api.GeoEntity
 
GeoEntity.Builder - Class in in.ankushs.dbip.api
 
GeoEntityLookupService - Interface in in.ankushs.dbip.lookup
 
GeoEntityLookupServiceImpl - Class in in.ankushs.dbip.lookup
Singleton class that resolves ip to Location info.
get(InetAddress) - Method in interface in.ankushs.dbip.repository.DbIpRepository
 
get(InetAddress) - Method in class in.ankushs.dbip.repository.JavaMapDbIpRepositoryImpl
Lookup GeoEntity for an InetAddress
getCity() - Method in class in.ankushs.dbip.api.GeoEntity
 
getCountry() - Method in class in.ankushs.dbip.api.GeoEntity
 
getCountryCode() - Method in class in.ankushs.dbip.api.GeoEntity
 
getEndInetAddress() - Method in interface in.ankushs.dbip.model.GeoAttributes
 
getEndInetAddress() - Method in class in.ankushs.dbip.model.GeoAttributesImpl
 
getGeoEntity() - Method in interface in.ankushs.dbip.model.GeoAttributes
 
getGeoEntity() - Method in class in.ankushs.dbip.model.GeoAttributesImpl
 
getInstance() - Static method in class in.ankushs.dbip.importer.ResourceImporter
 
getInstance() - Static method in class in.ankushs.dbip.lookup.GeoEntityLookupServiceImpl
 
getInstance() - Static method in class in.ankushs.dbip.parser.CsvParserImpl
 
getInstance() - Static method in class in.ankushs.dbip.repository.JavaMapDbIpRepositoryImpl
 
getIpv4Repo() - Method in class in.ankushs.dbip.api.DbIpClient
 
getIpv4Repository() - Static method in class in.ankushs.dbip.repository.JavaMapDbIpRepositoryImpl
 
getIsp() - Method in class in.ankushs.dbip.api.GeoEntity
 
getProvince() - Method in class in.ankushs.dbip.api.GeoEntity
 
getStartInetAddress() - Method in interface in.ankushs.dbip.model.GeoAttributes
 
getStartInetAddress() - Method in class in.ankushs.dbip.model.GeoAttributesImpl
 
GzipUtils - Class in in.ankushs.dbip.utils
Utilities for handling Gzipped files

H

hasText(String) - Static method in class in.ankushs.dbip.utils.Strings
Checks whether a String has any text in it.

I

in.ankushs.dbip.api - package in.ankushs.dbip.api
API package
in.ankushs.dbip.exceptions - package in.ankushs.dbip.exceptions
All custom exceptions.
in.ankushs.dbip.importer - package in.ankushs.dbip.importer
Contains classes for importing the data from file to repository.
in.ankushs.dbip.lookup - package in.ankushs.dbip.lookup
Contains classes for looking up and resolving ip to GeoEntity
in.ankushs.dbip.model - package in.ankushs.dbip.model
Contains model classes that interact with the repository layer and API
in.ankushs.dbip.parser - package in.ankushs.dbip.parser
Contains classes for parsing files
in.ankushs.dbip.repository - package in.ankushs.dbip.repository
Classes for Repository abstraction
in.ankushs.dbip.utils - package in.ankushs.dbip.utils
Utility classes
InvalidIPException - Exception in in.ankushs.dbip.exceptions
 
InvalidIPException(String) - Constructor for exception in.ankushs.dbip.exceptions.InvalidIPException
 
IPUtils - Class in in.ankushs.dbip.utils
Created by Ankush on 07/02/17.
IPUtils() - Constructor for class in.ankushs.dbip.utils.IPUtils
 
ipv6ToBigInteger(InetAddress) - Static method in class in.ankushs.dbip.utils.IPUtils
 
isGzipped(File) - Static method in class in.ankushs.dbip.utils.GzipUtils
Checks if the file is gzipped.

J

JavaMapDbIpRepositoryImpl - Class in in.ankushs.dbip.repository
Singletonthat uses a TreeMap as repository.

L

load(File) - Method in class in.ankushs.dbip.importer.ResourceImporter
Loads the file into JVM,reading line by line.
lookup(String) - Method in class in.ankushs.dbip.api.DbIpClient
Returns a loaded GeoEntity object for a given ip If nothing can be resolved for an ip , then the city,state and country for the GeoEntity will be set to 'Unknown' Any futher initializations of the DbIpClient will not load data into memory again.
lookup(InetAddress) - Method in class in.ankushs.dbip.api.DbIpClient
Returns a loaded GeoEntity object for a given inetAddress If nothing can be resolved for an inetAddress , then the city,state and country for the GeoEntity will be set to 'Unknown'
lookup(InetAddress) - Method in interface in.ankushs.dbip.lookup.GeoEntityLookupService
 
lookup(InetAddress) - Method in class in.ankushs.dbip.lookup.GeoEntityLookupServiceImpl
 

P

parser - Static variable in class in.ankushs.dbip.parser.CsvParserImpl
 
parseRecord(String) - Method in interface in.ankushs.dbip.parser.CsvParser
 
parseRecord(String) - Method in class in.ankushs.dbip.parser.CsvParserImpl
 
PreConditions - Class in in.ankushs.dbip.utils
Contains some run of the mill static methods for pre-conditions validations.

R

resolveToFullName(String) - Static method in class in.ankushs.dbip.utils.CountryResolver
 
ResourceImporter - Class in in.ankushs.dbip.importer
Singleton class responsible for loading the entire file into the JVM.

S

save(GeoAttributes) - Method in interface in.ankushs.dbip.repository.DbIpRepository
 
save(GeoAttributes) - Method in class in.ankushs.dbip.repository.JavaMapDbIpRepositoryImpl
Save GeoEntity for an InetAddress
Strings - Class in in.ankushs.dbip.utils
String utilities.

T

toString() - Method in class in.ankushs.dbip.api.GeoEntity
 

W

withCity(String) - Method in class in.ankushs.dbip.api.GeoEntity.Builder
 
withCity(String) - Method in class in.ankushs.dbip.model.GeoAttributesImpl.Builder
 
withCountry(String) - Method in class in.ankushs.dbip.api.GeoEntity.Builder
 
withCountry(String) - Method in class in.ankushs.dbip.model.GeoAttributesImpl.Builder
 
withCountryCode(String) - Method in class in.ankushs.dbip.api.GeoEntity.Builder
 
withCountryCode(String) - Method in class in.ankushs.dbip.model.GeoAttributesImpl.Builder
 
withEndInetAddress(InetAddress) - Method in class in.ankushs.dbip.model.GeoAttributesImpl.Builder
 
withIsp(String) - Method in class in.ankushs.dbip.api.GeoEntity.Builder
 
withIsp(String) - Method in class in.ankushs.dbip.model.GeoAttributesImpl.Builder
 
withProvince(String) - Method in class in.ankushs.dbip.api.GeoEntity.Builder
 
withProvince(String) - Method in class in.ankushs.dbip.model.GeoAttributesImpl.Builder
 
withStartInetAddress(InetAddress) - Method in class in.ankushs.dbip.model.GeoAttributesImpl.Builder
 
B C D G H I J L P R S T W 
Skip navigation links