Package com.maxmind.geoip2.model
Class AbstractResponse
- java.lang.Object
-
- com.maxmind.geoip2.model.AbstractResponse
-
- Direct Known Subclasses:
AbstractCountryResponse
,AnonymousIpResponse
,AsnResponse
,ConnectionTypeResponse
,DomainResponse
public abstract class AbstractResponse extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractResponse()
-
-
-
Method Detail
-
toJson
public String toJson() throws IOException
- Returns:
- JSON representation of this object. The structure is the same as the JSON provided by the GeoIP2 web service.
- Throws:
IOException
- if there is an error serializing the object to JSON.
-
-