public class IP2LocationWebService extends Object
Example usage scenarios:
Requirements: Java SDK 1.4 or later
Copyright (c) 2002-2020 IP2Location.com
| Constructor and Description |
|---|
IP2LocationWebService() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonObject |
GetCredit()
This function to check web service credit balance.
|
com.google.gson.JsonObject |
IPQuery(String IPAddress)
This function to query IP2Location data.
|
com.google.gson.JsonObject |
IPQuery(String IPAddress,
String Language)
This function to query IP2Location data.
|
com.google.gson.JsonObject |
IPQuery(String IPAddress,
String[] AddOns,
String Language)
This function to query IP2Location data.
|
void |
Open(String APIKey,
String Package)
This function initializes the params for the web service.
|
void |
Open(String APIKey,
String Package,
boolean UseSSL)
This function initializes the params for the web service.
|
public void Open(String APIKey, String Package) throws IllegalArgumentException
IllegalArgumentExceptionpublic void Open(String APIKey, String Package, boolean UseSSL) throws IllegalArgumentException
IllegalArgumentExceptionpublic com.google.gson.JsonObject IPQuery(String IPAddress) throws IllegalArgumentException, RuntimeException
IPAddress - IP Address you wish to queryIllegalArgumentExceptionRuntimeExceptionpublic com.google.gson.JsonObject IPQuery(String IPAddress, String Language) throws IllegalArgumentException, RuntimeException
IPAddress - IP Address you wish to query and translation languageIllegalArgumentExceptionRuntimeExceptionpublic com.google.gson.JsonObject IPQuery(String IPAddress, String[] AddOns, String Language) throws IllegalArgumentException, RuntimeException
IPAddress - IP Address you wish to query, Addons and translation languageIllegalArgumentExceptionRuntimeExceptionpublic com.google.gson.JsonObject GetCredit()
throws IllegalArgumentException,
RuntimeException
IllegalArgumentExceptionRuntimeExceptionCopyright © 2017–2020. All rights reserved.