diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5e21f12..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -sudo: false -language: java - -jdk: - - oraclejdk8 - - oraclejdk10 - -install: - - mvn -B install -U - -after_success: - - util/deploy_snapshot.sh - - util/deploy_docs.sh - -branches: - only: - - master - -cache: - directories: - - $HOME/.m2 - - diff --git a/LICENSE b/LICENSE deleted file mode 100644 index f49a4e1..0000000 --- a/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index b9174e6..0000000 --- a/README.md +++ /dev/null @@ -1,78 +0,0 @@ -# Java IPinfo -[![License](http://img.shields.io/:license-apache-blue.svg)](LICENSE) -[![Travis](https://travis-ci.com/ipinfo/java-ipinfo.svg?branch=master&style=flat-square)](https://travis-ci.com/ipinfo/java-ipinfo) - -An official java wrapper around IPinfo's API. - -## Features: -- IP Lookup -- ASN Lookup - -## Using it - -### Maven - -```xml - - io.ipinfo - java-ipinfo - 1.0 - compile - -``` - -### Examples - -To get information about an IP: - -````java -import io.ipinfo.IPInfo; -import io.ipinfo.errors.RateLimitedException; -import io.ipinfo.model.IPResponse; - -public class Main { - - public static void main(String... args) { - IPInfo ipInfo = IPInfo.builder().setToken("YOUR TOKEN").build(); - - try { - IPResponse response = ipInfo.lookupIP("8.8.8.8"); - } catch (RateLimitedException ex) { - // Handle rate limits here. - } - } -} -```` - -To get the information about an ASN: - -````java -import io.ipinfo.IPInfo; -import io.ipinfo.errors.RateLimitedException; -import io.ipinfo.model.IPResponse; - -public class Main { - - public static void main(String... args) { - IPInfo ipInfo = IPInfo.builder().setToken("YOUR TOKEN").build(); - - try { - ASNResponse response = ipInfo.lookupASN("AS7922"); - } catch (RateLimitedException ex) { - // Handle rate limits here. - } - } -} -```` - -### Errors - -- ErrorResponseException: A runtime exception accessible through the ExecutionException of a future. This exception signals that something went wrong when mapping the API response to the wrapper. You probably can't recover from this exception. - -- RateLimitedException A runtime exception signalling that you've been rate limited. - -## Extra Information - -- This library is thread safe. Feel free to call the different endpoints from different threads. -- This library uses square's http client. Please refer to their documentation to get information on more functionality you can use. - diff --git a/allclasses-index.html b/allclasses-index.html new file mode 100644 index 0000000..d30b985 --- /dev/null +++ b/allclasses-index.html @@ -0,0 +1,200 @@ + + + + + +All Classes (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

All Classes

+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ClassDescription
Abuse 
ASN 
ASNRequest 
ASNResponse 
BaseRequest<T> 
Cache 
Carrier 
Company 
Context 
Domains 
ErrorResponseException 
IPinfo 
IPinfo.BatchReqOpts 
IPinfo.BatchReqOpts.Builder 
IPinfo.Builder 
IPRequest 
IPResponse 
MapRequest 
MapResponse 
NoCache 
Prefix 
Privacy 
RateLimitedException 
SimpleCache 
+
+
+
+ +
+
+ + diff --git a/allpackages-index.html b/allpackages-index.html new file mode 100644 index 0000000..5e19ea3 --- /dev/null +++ b/allpackages-index.html @@ -0,0 +1,120 @@ + + + + + +All Packages (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

All Packages

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Package Summary
PackageDescription
io.ipinfo.api 
io.ipinfo.api.cache 
io.ipinfo.api.context 
io.ipinfo.api.errors 
io.ipinfo.api.model 
io.ipinfo.api.request 
+
+
+ +
+
+ + diff --git a/constant-values.html b/constant-values.html new file mode 100644 index 0000000..681bb91 --- /dev/null +++ b/constant-values.html @@ -0,0 +1,86 @@ + + + + + +Constant Field Values (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Constant Field Values

+
+

Contents

+
+
+
+ +
+
+ + diff --git a/deprecated-list.html b/deprecated-list.html new file mode 100644 index 0000000..ab41950 --- /dev/null +++ b/deprecated-list.html @@ -0,0 +1,84 @@ + + + + + +Deprecated List (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Deprecated API

+

Contents

+
+
+ +
+
+ + diff --git a/element-list b/element-list new file mode 100644 index 0000000..6b33b8c --- /dev/null +++ b/element-list @@ -0,0 +1,6 @@ +io.ipinfo.api +io.ipinfo.api.cache +io.ipinfo.api.context +io.ipinfo.api.errors +io.ipinfo.api.model +io.ipinfo.api.request diff --git a/help-doc.html b/help-doc.html new file mode 100644 index 0000000..3de5441 --- /dev/null +++ b/help-doc.html @@ -0,0 +1,188 @@ + + + + + +API Help (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+

Overview

+

The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+
+
+

Package

+

Each package has a page that contains a list of its classes and interfaces, with a summary for each. These pages may contain six categories:

+
    +
  • Interfaces
  • +
  • Classes
  • +
  • Enums
  • +
  • Exceptions
  • +
  • Errors
  • +
  • Annotation Types
  • +
+
+
+

Class or Interface

+

Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

+
    +
  • Class Inheritance Diagram
  • +
  • Direct Subclasses
  • +
  • All Known Subinterfaces
  • +
  • All Known Implementing Classes
  • +
  • Class or Interface Declaration
  • +
  • Class or Interface Description
  • +
+
+
    +
  • Nested Class Summary
  • +
  • Field Summary
  • +
  • Property Summary
  • +
  • Constructor Summary
  • +
  • Method Summary
  • +
+
+
    +
  • Field Details
  • +
  • Property Details
  • +
  • Constructor Details
  • +
  • Method Details
  • +
+

The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

+
+
+

Annotation Type

+

Each annotation type has its own separate page with the following sections:

+
    +
  • Annotation Type Declaration
  • +
  • Annotation Type Description
  • +
  • Required Element Summary
  • +
  • Optional Element Summary
  • +
  • Element Details
  • +
+
+
+

Enum

+

Each enum has its own separate page with the following sections:

+
    +
  • Enum Declaration
  • +
  • Enum Description
  • +
  • Enum Constant Summary
  • +
  • Enum Constant Details
  • +
+
+
+

Use

+

Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its "Use" page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.

+
+
+

Tree (Class Hierarchy)

+

There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. Classes are organized by inheritance structure starting with java.lang.Object. Interfaces do not inherit from java.lang.Object.

+
    +
  • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
  • +
  • When viewing a particular package, class or interface page, clicking on "Tree" displays the hierarchy for only that package.
  • +
+
+
+

Deprecated API

+

The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to shortcomings, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

+
+
+

Index

+

The Index contains an alphabetic index of all classes, interfaces, constructors, methods, and fields, as well as lists of all packages and all classes.

+
+
+

Serialized Form

+

Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to those who implement rather than use the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See Also" section of the class description.

+
+
+

Constant Field Values

+

The Constant Field Values page lists the static final fields and their values.

+
+
+

Search

+

You can search for definitions of modules, packages, types, fields, methods, system properties and other terms defined in the API, using some or all of the name, optionally using "camel-case" abbreviations. For example:

+
    +
  • j.l.obj will match "java.lang.Object"
  • +
  • InpStr will match "java.io.InputStream"
  • +
  • HM.cK will match "java.util.HashMap.containsKey(Object)"
  • +
+

Refer to the Javadoc Search Specification for a full description of search features.

+
+
+This help file applies to API documentation generated by the standard doclet.
+ +
+
+ + diff --git a/index-all.html b/index-all.html new file mode 100644 index 0000000..eefe1cb --- /dev/null +++ b/index-all.html @@ -0,0 +1,523 @@ + + + + + +Index (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M N P R S T 
All Classes|All Packages +

A

+
+
Abuse - Class in io.ipinfo.api.model
+
 
+
Abuse(String, String, String, String, String, String) - Constructor for class io.ipinfo.api.model.Abuse
+
 
+
ASN - Class in io.ipinfo.api.model
+
 
+
ASN(String, String, String, String, String) - Constructor for class io.ipinfo.api.model.ASN
+
 
+
ASNRequest - Class in io.ipinfo.api.request
+
 
+
ASNRequest(OkHttpClient, String, String) - Constructor for class io.ipinfo.api.request.ASNRequest
+
 
+
ASNResponse - Class in io.ipinfo.api.model
+
 
+
ASNResponse(String, String, String, String, String, String, Integer, String, List<Prefix>, List<Prefix>, List<String>, List<String>, List<String>) - Constructor for class io.ipinfo.api.model.ASNResponse
+
 
+
+

B

+
+
BaseRequest<T> - Class in io.ipinfo.api.request
+
 
+
BaseRequest(OkHttpClient, String) - Constructor for class io.ipinfo.api.request.BaseRequest
+
 
+
BatchReqOpts(int, int, int, boolean) - Constructor for class io.ipinfo.api.IPinfo.BatchReqOpts
+
 
+
batchSize - Variable in class io.ipinfo.api.IPinfo.BatchReqOpts
+
 
+
build() - Method in class io.ipinfo.api.IPinfo.BatchReqOpts.Builder
+
 
+
build() - Method in class io.ipinfo.api.IPinfo.Builder
+
 
+
Builder() - Constructor for class io.ipinfo.api.IPinfo.BatchReqOpts.Builder
+
 
+
Builder() - Constructor for class io.ipinfo.api.IPinfo.Builder
+
 
+
+

C

+
+
Cache - Interface in io.ipinfo.api.cache
+
 
+
cacheKey(String) - Static method in class io.ipinfo.api.IPinfo
+
+
Converts a normal key into a versioned cache key.
+
+
Carrier - Class in io.ipinfo.api.model
+
 
+
Carrier(String, String, String) - Constructor for class io.ipinfo.api.model.Carrier
+
 
+
clear() - Method in interface io.ipinfo.api.cache.Cache
+
+
Clears all entries in the cache.
+
+
clear() - Method in class io.ipinfo.api.cache.NoCache
+
 
+
clear() - Method in class io.ipinfo.api.cache.SimpleCache
+
 
+
Company - Class in io.ipinfo.api.model
+
 
+
Company(String, String, String) - Constructor for class io.ipinfo.api.model.Company
+
 
+
Context - Class in io.ipinfo.api.context
+
 
+
Context(Map<String, String>) - Constructor for class io.ipinfo.api.context.Context
+
 
+
+

D

+
+
Domains - Class in io.ipinfo.api.model
+
 
+
Domains(String, List<String>) - Constructor for class io.ipinfo.api.model.Domains
+
 
+
+

E

+
+
ErrorResponseException - Exception in io.ipinfo.api.errors
+
 
+
ErrorResponseException() - Constructor for exception io.ipinfo.api.errors.ErrorResponseException
+
 
+
ErrorResponseException(Exception) - Constructor for exception io.ipinfo.api.errors.ErrorResponseException
+
 
+
+

F

+
+
filter - Variable in class io.ipinfo.api.IPinfo.BatchReqOpts
+
 
+
+

G

+
+
get(String) - Method in interface io.ipinfo.api.cache.Cache
+
+
Gets an arbitrary object stored in cache.
+
+
get(String) - Method in class io.ipinfo.api.cache.NoCache
+
 
+
get(String) - Method in class io.ipinfo.api.cache.SimpleCache
+
 
+
getAbuse() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getAddress() - Method in class io.ipinfo.api.model.Abuse
+
 
+
getAllocated() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getAnycast() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getAsn() - Method in class io.ipinfo.api.model.ASN
+
 
+
getAsn() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getAsn() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getBatch(List<String>) - Method in class io.ipinfo.api.IPinfo
+
+
Get the result of a list of URLs in bulk.
+
+
getBatch(List<String>, IPinfo.BatchReqOpts) - Method in class io.ipinfo.api.IPinfo
+
+
Get the result of a list of URLs in bulk.
+
+
getBatchAsns(List<String>) - Method in class io.ipinfo.api.IPinfo
+
+
Get the result of a list of ASNs in bulk.
+
+
getBatchAsns(List<String>, IPinfo.BatchReqOpts) - Method in class io.ipinfo.api.IPinfo
+
+
Get the result of a list of ASNs in bulk.
+
+
getBatchIps(List<String>) - Method in class io.ipinfo.api.IPinfo
+
+
Get the result of a list of IPs in bulk.
+
+
getBatchIps(List<String>, IPinfo.BatchReqOpts) - Method in class io.ipinfo.api.IPinfo
+
+
Get the result of a list of IPs in bulk.
+
+
getCarrier() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getCity() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getCompany() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getCountry() - Method in class io.ipinfo.api.model.Abuse
+
 
+
getCountry() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getCountry() - Method in class io.ipinfo.api.model.Prefix
+
 
+
getCountryCode() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getCountryCode() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getCountryName() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getCountryName() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getCountryName(String) - Method in class io.ipinfo.api.context.Context
+
 
+
getDomain() - Method in class io.ipinfo.api.model.ASN
+
 
+
getDomain() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getDomain() - Method in class io.ipinfo.api.model.Company
+
 
+
getDomain() - Method in class io.ipinfo.api.model.Prefix
+
 
+
getDomains() - Method in class io.ipinfo.api.model.Domains
+
 
+
getDomains() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getDownstreams() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getEmail() - Method in class io.ipinfo.api.model.Abuse
+
 
+
getHosting() - Method in class io.ipinfo.api.model.Privacy
+
 
+
getHostname() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getId() - Method in class io.ipinfo.api.model.Prefix
+
 
+
getIp() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getLatitude() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getLocation() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getLongitude() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getMap(List<String>) - Method in class io.ipinfo.api.IPinfo
+
+
Get a map of a list of IPs.
+
+
getMcc() - Method in class io.ipinfo.api.model.Carrier
+
 
+
getMnc() - Method in class io.ipinfo.api.model.Carrier
+
 
+
getName() - Method in class io.ipinfo.api.model.Abuse
+
 
+
getName() - Method in class io.ipinfo.api.model.ASN
+
 
+
getName() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getName() - Method in class io.ipinfo.api.model.Carrier
+
 
+
getName() - Method in class io.ipinfo.api.model.Company
+
 
+
getName() - Method in class io.ipinfo.api.model.Prefix
+
 
+
getNetblock() - Method in class io.ipinfo.api.model.Prefix
+
 
+
getNetwork() - Method in class io.ipinfo.api.model.Abuse
+
 
+
getNumIps() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getOrg() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getPeers() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getPhone() - Method in class io.ipinfo.api.model.Abuse
+
 
+
getPostal() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getPrefixes() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getPrefixes6() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getPrivacy() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getProxy() - Method in class io.ipinfo.api.model.Privacy
+
 
+
getRegion() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getRegistry() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getRelay() - Method in class io.ipinfo.api.model.Privacy
+
 
+
getReportUrl() - Method in class io.ipinfo.api.model.MapResponse
+
 
+
getRoute() - Method in class io.ipinfo.api.model.ASN
+
 
+
getService() - Method in class io.ipinfo.api.model.Privacy
+
 
+
getSize() - Method in class io.ipinfo.api.model.Prefix
+
 
+
getStatus() - Method in class io.ipinfo.api.model.MapResponse
+
 
+
getStatus() - Method in class io.ipinfo.api.model.Prefix
+
 
+
getTimezone() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
getTor() - Method in class io.ipinfo.api.model.Privacy
+
 
+
getTotal() - Method in class io.ipinfo.api.model.Domains
+
 
+
getType() - Method in class io.ipinfo.api.model.ASN
+
 
+
getType() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getType() - Method in class io.ipinfo.api.model.Company
+
 
+
getUpstreams() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
getVpn() - Method in class io.ipinfo.api.model.Privacy
+
 
+
gson - Static variable in class io.ipinfo.api.request.BaseRequest
+
 
+
+

H

+
+
handle() - Method in class io.ipinfo.api.request.ASNRequest
+
 
+
handle() - Method in class io.ipinfo.api.request.BaseRequest
+
 
+
handle() - Method in class io.ipinfo.api.request.IPRequest
+
 
+
handle() - Method in class io.ipinfo.api.request.MapRequest
+
 
+
handleRequest(Request.Builder) - Method in class io.ipinfo.api.request.BaseRequest
+
 
+
+

I

+
+
io.ipinfo.api - package io.ipinfo.api
+
 
+
io.ipinfo.api.cache - package io.ipinfo.api.cache
+
 
+
io.ipinfo.api.context - package io.ipinfo.api.context
+
 
+
io.ipinfo.api.errors - package io.ipinfo.api.errors
+
 
+
io.ipinfo.api.model - package io.ipinfo.api.model
+
 
+
io.ipinfo.api.request - package io.ipinfo.api.request
+
 
+
IPinfo - Class in io.ipinfo.api
+
 
+
IPinfo.BatchReqOpts - Class in io.ipinfo.api
+
 
+
IPinfo.BatchReqOpts.Builder - Class in io.ipinfo.api
+
 
+
IPinfo.Builder - Class in io.ipinfo.api
+
 
+
IPRequest - Class in io.ipinfo.api.request
+
 
+
IPRequest(OkHttpClient, String, String) - Constructor for class io.ipinfo.api.request.IPRequest
+
 
+
IPResponse - Class in io.ipinfo.api.model
+
 
+
IPResponse(String, String, boolean, String, String, String, String, String, String, String, ASN, Company, Carrier, Privacy, Abuse, Domains) - Constructor for class io.ipinfo.api.model.IPResponse
+
 
+
+

L

+
+
lookupASN(String) - Method in class io.ipinfo.api.IPinfo
+
+
Lookup ASN information using the AS number.
+
+
lookupIP(String) - Method in class io.ipinfo.api.IPinfo
+
+
Lookup IP information using the IP.
+
+
+

M

+
+
main(String...) - Static method in class io.ipinfo.api.IPinfo
+
 
+
MapRequest - Class in io.ipinfo.api.request
+
 
+
MapRequest(OkHttpClient, String, List<String>) - Constructor for class io.ipinfo.api.request.MapRequest
+
 
+
MapResponse - Class in io.ipinfo.api.model
+
 
+
MapResponse(String, String) - Constructor for class io.ipinfo.api.model.MapResponse
+
 
+
+

N

+
+
NoCache - Class in io.ipinfo.api.cache
+
 
+
NoCache() - Constructor for class io.ipinfo.api.cache.NoCache
+
 
+
+

P

+
+
Prefix - Class in io.ipinfo.api.model
+
 
+
Prefix(String, String, String, String, String, String, String) - Constructor for class io.ipinfo.api.model.Prefix
+
 
+
Privacy - Class in io.ipinfo.api.model
+
 
+
Privacy(boolean, boolean, boolean, boolean, boolean, String) - Constructor for class io.ipinfo.api.model.Privacy
+
 
+
+

R

+
+
RateLimitedException - Exception in io.ipinfo.api.errors
+
 
+
RateLimitedException() - Constructor for exception io.ipinfo.api.errors.RateLimitedException
+
 
+
+

S

+
+
set(String, Object) - Method in interface io.ipinfo.api.cache.Cache
+
+
Sets a key/value pair in the cache.
+
+
set(String, Object) - Method in class io.ipinfo.api.cache.NoCache
+
 
+
set(String, Object) - Method in class io.ipinfo.api.cache.SimpleCache
+
 
+
setBatchSize(int) - Method in class io.ipinfo.api.IPinfo.BatchReqOpts.Builder
+
+
batchSize is the internal batch size used per API request; the IPinfo + API has a maximum batch size, but the batch request functions available + in this library do not.
+
+
setCache(Cache) - Method in class io.ipinfo.api.IPinfo.Builder
+
 
+
setClient(OkHttpClient) - Method in class io.ipinfo.api.IPinfo.Builder
+
 
+
setContext(Context) - Method in class io.ipinfo.api.model.ASNResponse
+
+
Set by the library for extra utility functions
+
+
setContext(Context) - Method in class io.ipinfo.api.model.IPResponse
+
+
Set by the library for extra utility functions
+
+
setCountryFile(File) - Method in class io.ipinfo.api.IPinfo.Builder
+
 
+
setFilter(boolean) - Method in class io.ipinfo.api.IPinfo.BatchReqOpts.Builder
+
+
filter, if turned on, will filter out a URL whose value was deemed empty + on the server.
+
+
setTimeoutPerBatch(int) - Method in class io.ipinfo.api.IPinfo.BatchReqOpts.Builder
+
+
timeoutPerBatch is the timeout in seconds that each batch of size + `BatchSize` will have for its own request.
+
+
setTimeoutTotal(int) - Method in class io.ipinfo.api.IPinfo.BatchReqOpts.Builder
+
+
timeoutTotal is the total timeout in seconds for all batch requests in a + batch request function to complete.
+
+
setToken(String) - Method in class io.ipinfo.api.IPinfo.Builder
+
 
+
SimpleCache - Class in io.ipinfo.api.cache
+
 
+
SimpleCache(Duration) - Constructor for class io.ipinfo.api.cache.SimpleCache
+
 
+
+

T

+
+
timeoutPerBatch - Variable in class io.ipinfo.api.IPinfo.BatchReqOpts
+
 
+
timeoutTotal - Variable in class io.ipinfo.api.IPinfo.BatchReqOpts
+
 
+
toString() - Method in class io.ipinfo.api.model.Abuse
+
 
+
toString() - Method in class io.ipinfo.api.model.ASN
+
 
+
toString() - Method in class io.ipinfo.api.model.ASNResponse
+
 
+
toString() - Method in class io.ipinfo.api.model.Carrier
+
 
+
toString() - Method in class io.ipinfo.api.model.Company
+
 
+
toString() - Method in class io.ipinfo.api.model.Domains
+
 
+
toString() - Method in class io.ipinfo.api.model.IPResponse
+
 
+
toString() - Method in class io.ipinfo.api.model.MapResponse
+
 
+
toString() - Method in class io.ipinfo.api.model.Prefix
+
 
+
toString() - Method in class io.ipinfo.api.model.Privacy
+
 
+
+A B C D E F G H I L M N P R S T 
All Classes|All Packages
+ +
+
+ + diff --git a/index.html b/index.html new file mode 100644 index 0000000..afa10bf --- /dev/null +++ b/index.html @@ -0,0 +1,120 @@ + + + + + +Overview (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

IPinfo-API 2.1 API

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages
PackageDescription
io.ipinfo.api 
io.ipinfo.api.cache 
io.ipinfo.api.context 
io.ipinfo.api.errors 
io.ipinfo.api.model 
io.ipinfo.api.request 
+
+
+ +
+
+ + diff --git a/io/ipinfo/api/IPinfo.BatchReqOpts.Builder.html b/io/ipinfo/api/IPinfo.BatchReqOpts.Builder.html new file mode 100644 index 0000000..68ca2b3 --- /dev/null +++ b/io/ipinfo/api/IPinfo.BatchReqOpts.Builder.html @@ -0,0 +1,325 @@ + + + + + +IPinfo.BatchReqOpts.Builder (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+
Package io.ipinfo.api
+

Class IPinfo.BatchReqOpts.Builder

+
+
java.lang.Object +
io.ipinfo.api.IPinfo.BatchReqOpts.Builder
+
+
+
+
Enclosing class:
+
IPinfo.BatchReqOpts
+
+
+
public static class IPinfo.BatchReqOpts.Builder
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Builder

      +
      public Builder()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      setBatchSize

      +
      public IPinfo.BatchReqOpts.Builder setBatchSize​(int batchSize)
      +
      batchSize is the internal batch size used per API request; the IPinfo + API has a maximum batch size, but the batch request functions available + in this library do not. Therefore the library chunks the input slices + internally into chunks of size `batchSize`, clipping to the maximum + allowed by the IPinfo API. + + 0 means to use the default batch size which is the max allowed by the + IPinfo API.
      +
      +
      Parameters:
      +
      batchSize - see description.
      +
      Returns:
      +
      the builder.
      +
      +
      +
    • +
    • +
      +

      setTimeoutPerBatch

      +
      public IPinfo.BatchReqOpts.Builder setTimeoutPerBatch​(int timeoutPerBatch)
      +
      timeoutPerBatch is the timeout in seconds that each batch of size + `BatchSize` will have for its own request. + + 0 means to use a default of 5 seconds; any negative number will turn it + off; turning it off does _not_ disable the effects of `timeoutTotal`.
      +
      +
      Parameters:
      +
      timeoutPerBatch - see description.
      +
      Returns:
      +
      the builder.
      +
      +
      +
    • +
    • +
      +

      setTimeoutTotal

      +
      public IPinfo.BatchReqOpts.Builder setTimeoutTotal​(int timeoutTotal)
      +
      timeoutTotal is the total timeout in seconds for all batch requests in a + batch request function to complete. + + 0 means no total timeout; `timeoutPerBatch` will still apply.
      +
      +
      Parameters:
      +
      timeoutTotal - see description.
      +
      Returns:
      +
      the builder.
      +
      +
      +
    • +
    • +
      +

      setFilter

      +
      public IPinfo.BatchReqOpts.Builder setFilter​(boolean filter)
      +
      filter, if turned on, will filter out a URL whose value was deemed empty + on the server.
      +
      +
      Parameters:
      +
      filter - see description.
      +
      Returns:
      +
      the builder.
      +
      +
      +
    • +
    • +
      +

      build

      +
      public IPinfo.BatchReqOpts build()
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/IPinfo.BatchReqOpts.html b/io/ipinfo/api/IPinfo.BatchReqOpts.html new file mode 100644 index 0000000..33d518b --- /dev/null +++ b/io/ipinfo/api/IPinfo.BatchReqOpts.html @@ -0,0 +1,287 @@ + + + + + +IPinfo.BatchReqOpts (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+
Package io.ipinfo.api
+

Class IPinfo.BatchReqOpts

+
+
java.lang.Object +
io.ipinfo.api.IPinfo.BatchReqOpts
+
+
+
+
Enclosing class:
+
IPinfo
+
+
+
public static class IPinfo.BatchReqOpts
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      batchSize

      +
      public final int batchSize
      +
      +
    • +
    • +
      +

      timeoutPerBatch

      +
      public final int timeoutPerBatch
      +
      +
    • +
    • +
      +

      timeoutTotal

      +
      public final int timeoutTotal
      +
      +
    • +
    • +
      +

      filter

      +
      public final boolean filter
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BatchReqOpts

      +
      public BatchReqOpts​(int batchSize, +int timeoutPerBatch, +int timeoutTotal, +boolean filter)
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/IPinfo.Builder.html b/io/ipinfo/api/IPinfo.Builder.html new file mode 100644 index 0000000..502ae9b --- /dev/null +++ b/io/ipinfo/api/IPinfo.Builder.html @@ -0,0 +1,269 @@ + + + + + +IPinfo.Builder (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+
Package io.ipinfo.api
+

Class IPinfo.Builder

+
+
java.lang.Object +
io.ipinfo.api.IPinfo.Builder
+
+
+
+
Enclosing class:
+
IPinfo
+
+
+
public static class IPinfo.Builder
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Builder

      +
      public Builder()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/IPinfo.html b/io/ipinfo/api/IPinfo.html new file mode 100644 index 0000000..cd1a882 --- /dev/null +++ b/io/ipinfo/api/IPinfo.html @@ -0,0 +1,450 @@ + + + + + +IPinfo (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+
Package io.ipinfo.api
+

Class IPinfo

+
+
java.lang.Object +
io.ipinfo.api.IPinfo
+
+
+
+
public class IPinfo
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      main

      +
      public static void main​(String... args)
      +
      +
    • +
    • +
      +

      lookupIP

      +
      public IPResponse lookupIP​(String ip) + throws RateLimitedException
      +
      Lookup IP information using the IP.
      +
      +
      Parameters:
      +
      ip - the ip string to lookup - accepts both ipv4 and ipv6.
      +
      Returns:
      +
      IPResponse response from the api.
      +
      Throws:
      +
      RateLimitedException - an exception when your api key has been rate limited.
      +
      +
      +
    • +
    • +
      +

      lookupASN

      +
      public ASNResponse lookupASN​(String asn) + throws RateLimitedException
      +
      Lookup ASN information using the AS number.
      +
      +
      Parameters:
      +
      asn - the asn string to lookup.
      +
      Returns:
      +
      ASNResponse response from the api.
      +
      Throws:
      +
      RateLimitedException - an exception when your api key has been rate limited.
      +
      +
      +
    • +
    • +
      +

      getMap

      +
      public String getMap​(List<String> ips) + throws RateLimitedException
      +
      Get a map of a list of IPs.
      +
      +
      Parameters:
      +
      ips - the list of IPs to map.
      +
      Returns:
      +
      String the URL to the map.
      +
      Throws:
      +
      RateLimitedException - an exception when your API key has been rate limited.
      +
      +
      +
    • +
    • +
      +

      getBatch

      +
      public ConcurrentHashMap<String,​Object> getBatch​(List<String> urls) + throws RateLimitedException
      +
      Get the result of a list of URLs in bulk.
      +
      +
      Parameters:
      +
      urls - the list of URLs.
      +
      Returns:
      +
      the result where each URL is the key and the value is the data for that URL.
      +
      Throws:
      +
      RateLimitedException - an exception when your API key has been rate limited.
      +
      +
      +
    • +
    • +
      +

      getBatch

      +
      public ConcurrentHashMap<String,​Object> getBatch​(List<String> urls, +IPinfo.BatchReqOpts opts) + throws RateLimitedException
      +
      Get the result of a list of URLs in bulk.
      +
      +
      Parameters:
      +
      urls - the list of URLs.
      +
      opts - options to modify the behavior of the batch operation.
      +
      Returns:
      +
      the result where each URL is the key and the value is the data for that URL.
      +
      Throws:
      +
      RateLimitedException - an exception when your API key has been rate limited.
      +
      +
      +
    • +
    • +
      +

      getBatchIps

      +
      public ConcurrentHashMap<String,​IPResponse> getBatchIps​(List<String> ips) + throws RateLimitedException
      +
      Get the result of a list of IPs in bulk.
      +
      +
      Parameters:
      +
      ips - the list of IPs.
      +
      Returns:
      +
      the result where each IP is the key and the value is the data for that IP.
      +
      Throws:
      +
      RateLimitedException - an exception when your API key has been rate limited.
      +
      +
      +
    • +
    • +
      +

      getBatchIps

      +
      public ConcurrentHashMap<String,​IPResponse> getBatchIps​(List<String> ips, +IPinfo.BatchReqOpts opts) + throws RateLimitedException
      +
      Get the result of a list of IPs in bulk.
      +
      +
      Parameters:
      +
      ips - the list of IPs.
      +
      opts - options to modify the behavior of the batch operation.
      +
      Returns:
      +
      the result where each IP is the key and the value is the data for that IP.
      +
      Throws:
      +
      RateLimitedException - an exception when your API key has been rate limited.
      +
      +
      +
    • +
    • +
      +

      getBatchAsns

      +
      public ConcurrentHashMap<String,​ASNResponse> getBatchAsns​(List<String> asns) + throws RateLimitedException
      +
      Get the result of a list of ASNs in bulk.
      +
      +
      Parameters:
      +
      asns - the list of ASNs.
      +
      Returns:
      +
      the result where each ASN is the key and the value is the data for that ASN.
      +
      Throws:
      +
      RateLimitedException - an exception when your API key has been rate limited.
      +
      +
      +
    • +
    • +
      +

      getBatchAsns

      +
      public ConcurrentHashMap<String,​ASNResponse> getBatchAsns​(List<String> asns, +IPinfo.BatchReqOpts opts) + throws RateLimitedException
      +
      Get the result of a list of ASNs in bulk.
      +
      +
      Parameters:
      +
      asns - the list of ASNs.
      +
      opts - options to modify the behavior of the batch operation.
      +
      Returns:
      +
      the result where each ASN is the key and the value is the data for that ASN.
      +
      Throws:
      +
      RateLimitedException - an exception when your API key has been rate limited.
      +
      +
      +
    • +
    • +
      +

      cacheKey

      +
      public static String cacheKey​(String k)
      +
      Converts a normal key into a versioned cache key.
      +
      +
      Parameters:
      +
      k - the key to convert into a versioned cache key.
      +
      Returns:
      +
      the versioned cache key.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/cache/Cache.html b/io/ipinfo/api/cache/Cache.html new file mode 100644 index 0000000..9a62569 --- /dev/null +++ b/io/ipinfo/api/cache/Cache.html @@ -0,0 +1,231 @@ + + + + + +Cache (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Cache

+
+
+
+
All Known Implementing Classes:
+
NoCache, SimpleCache
+
+
+
public interface Cache
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    booleanclear() +
    Clears all entries in the cache.
    +
    Objectget​(String key) +
    Gets an arbitrary object stored in cache.
    +
    booleanset​(String key, +Object val) +
    Sets a key/value pair in the cache.
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      get

      +
      Object get​(String key)
      +
      Gets an arbitrary object stored in cache.
      +
      +
      Parameters:
      +
      key - the key that maps to the object.
      +
      Returns:
      +
      the value mapped to from `key`.
      +
      +
      +
    • +
    • +
      +

      set

      +
      boolean set​(String key, +Object val)
      +
      Sets a key/value pair in the cache.
      +
      +
      Parameters:
      +
      key - the key.
      +
      val - the value.
      +
      Returns:
      +
      if caching was successful.
      +
      +
      +
    • +
    • +
      +

      clear

      +
      boolean clear()
      +
      Clears all entries in the cache.
      +
      +
      Returns:
      +
      if clear was successful.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/cache/NoCache.html b/io/ipinfo/api/cache/NoCache.html new file mode 100644 index 0000000..6020429 --- /dev/null +++ b/io/ipinfo/api/cache/NoCache.html @@ -0,0 +1,285 @@ + + + + + +NoCache (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NoCache

+
+
java.lang.Object +
io.ipinfo.api.cache.NoCache
+
+
+
+
All Implemented Interfaces:
+
Cache
+
+
+
public class NoCache
+extends Object
+implements Cache
+
+
+
    + +
  • +
    +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors
    ConstructorDescription
    NoCache() 
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    booleanclear() +
    Clears all entries in the cache.
    +
    Objectget​(String key) +
    Gets an arbitrary object stored in cache.
    +
    booleanset​(String key, +Object val) +
    Sets a key/value pair in the cache.
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NoCache

      +
      public NoCache()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      get

      +
      public Object get​(String key)
      +
      Description copied from interface: Cache
      +
      Gets an arbitrary object stored in cache.
      +
      +
      Specified by:
      +
      get in interface Cache
      +
      Parameters:
      +
      key - the key that maps to the object.
      +
      Returns:
      +
      the value mapped to from `key`.
      +
      +
      +
    • +
    • +
      +

      set

      +
      public boolean set​(String key, +Object val)
      +
      Description copied from interface: Cache
      +
      Sets a key/value pair in the cache.
      +
      +
      Specified by:
      +
      set in interface Cache
      +
      Parameters:
      +
      key - the key.
      +
      val - the value.
      +
      Returns:
      +
      if caching was successful.
      +
      +
      +
    • +
    • +
      +

      clear

      +
      public boolean clear()
      +
      Description copied from interface: Cache
      +
      Clears all entries in the cache.
      +
      +
      Specified by:
      +
      clear in interface Cache
      +
      Returns:
      +
      if clear was successful.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/cache/SimpleCache.html b/io/ipinfo/api/cache/SimpleCache.html new file mode 100644 index 0000000..163eaf0 --- /dev/null +++ b/io/ipinfo/api/cache/SimpleCache.html @@ -0,0 +1,285 @@ + + + + + +SimpleCache (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class SimpleCache

+
+
java.lang.Object +
io.ipinfo.api.cache.SimpleCache
+
+
+
+
All Implemented Interfaces:
+
Cache
+
+
+
public class SimpleCache
+extends Object
+implements Cache
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      SimpleCache

      +
      public SimpleCache​(Duration duration)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      get

      +
      public Object get​(String key)
      +
      Description copied from interface: Cache
      +
      Gets an arbitrary object stored in cache.
      +
      +
      Specified by:
      +
      get in interface Cache
      +
      Parameters:
      +
      key - the key that maps to the object.
      +
      Returns:
      +
      the value mapped to from `key`.
      +
      +
      +
    • +
    • +
      +

      set

      +
      public boolean set​(String key, +Object val)
      +
      Description copied from interface: Cache
      +
      Sets a key/value pair in the cache.
      +
      +
      Specified by:
      +
      set in interface Cache
      +
      Parameters:
      +
      key - the key.
      +
      val - the value.
      +
      Returns:
      +
      if caching was successful.
      +
      +
      +
    • +
    • +
      +

      clear

      +
      public boolean clear()
      +
      Description copied from interface: Cache
      +
      Clears all entries in the cache.
      +
      +
      Specified by:
      +
      clear in interface Cache
      +
      Returns:
      +
      if clear was successful.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/cache/class-use/Cache.html b/io/ipinfo/api/cache/class-use/Cache.html new file mode 100644 index 0000000..d532781 --- /dev/null +++ b/io/ipinfo/api/cache/class-use/Cache.html @@ -0,0 +1,161 @@ + + + + + +Uses of Interface io.ipinfo.api.cache.Cache (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.ipinfo.api.cache.Cache

+
+
+ + + + + + + + + + + + + + + + + + +
Packages that use Cache
PackageDescription
io.ipinfo.api 
io.ipinfo.api.cache 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/cache/class-use/NoCache.html b/io/ipinfo/api/cache/class-use/NoCache.html new file mode 100644 index 0000000..77b1dfe --- /dev/null +++ b/io/ipinfo/api/cache/class-use/NoCache.html @@ -0,0 +1,83 @@ + + + + + +Uses of Class io.ipinfo.api.cache.NoCache (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.cache.NoCache

+
+No usage of io.ipinfo.api.cache.NoCache
+ +
+
+ + diff --git a/io/ipinfo/api/cache/class-use/SimpleCache.html b/io/ipinfo/api/cache/class-use/SimpleCache.html new file mode 100644 index 0000000..769e5a6 --- /dev/null +++ b/io/ipinfo/api/cache/class-use/SimpleCache.html @@ -0,0 +1,83 @@ + + + + + +Uses of Class io.ipinfo.api.cache.SimpleCache (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.cache.SimpleCache

+
+No usage of io.ipinfo.api.cache.SimpleCache
+ +
+
+ + diff --git a/io/ipinfo/api/cache/package-summary.html b/io/ipinfo/api/cache/package-summary.html new file mode 100644 index 0000000..a891e4a --- /dev/null +++ b/io/ipinfo/api/cache/package-summary.html @@ -0,0 +1,129 @@ + + + + + +io.ipinfo.api.cache (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.ipinfo.api.cache

+
+
+
    +
  • +
    + + + + + + + + + + + + + + +
    Interface Summary
    InterfaceDescription
    Cache 
    +
    +
  • +
  • +
    + + + + + + + + + + + + + + + + + + +
    Class Summary
    ClassDescription
    NoCache 
    SimpleCache 
    +
    +
  • +
+
+
+ +
+
+ + diff --git a/io/ipinfo/api/cache/package-tree.html b/io/ipinfo/api/cache/package-tree.html new file mode 100644 index 0000000..371250e --- /dev/null +++ b/io/ipinfo/api/cache/package-tree.html @@ -0,0 +1,104 @@ + + + + + +io.ipinfo.api.cache Class Hierarchy (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.ipinfo.api.cache

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+
    +
  • io.ipinfo.api.cache.Cache
  • +
+
+
+ +
+
+ + diff --git a/io/ipinfo/api/cache/package-use.html b/io/ipinfo/api/cache/package-use.html new file mode 100644 index 0000000..5c3448b --- /dev/null +++ b/io/ipinfo/api/cache/package-use.html @@ -0,0 +1,150 @@ + + + + + +Uses of Package io.ipinfo.api.cache (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.ipinfo.api.cache

+
+
+ + + + + + + + + + + + + + + + + + +
Packages that use io.ipinfo.api.cache
PackageDescription
io.ipinfo.api 
io.ipinfo.api.cache 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/class-use/IPinfo.BatchReqOpts.Builder.html b/io/ipinfo/api/class-use/IPinfo.BatchReqOpts.Builder.html new file mode 100644 index 0000000..bd72da4 --- /dev/null +++ b/io/ipinfo/api/class-use/IPinfo.BatchReqOpts.Builder.html @@ -0,0 +1,156 @@ + + + + + +Uses of Class io.ipinfo.api.IPinfo.BatchReqOpts.Builder (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.IPinfo.BatchReqOpts.Builder

+
+
+ + + + + + + + + + + + + + +
Packages that use IPinfo.BatchReqOpts.Builder
PackageDescription
io.ipinfo.api 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/class-use/IPinfo.BatchReqOpts.html b/io/ipinfo/api/class-use/IPinfo.BatchReqOpts.html new file mode 100644 index 0000000..5875325 --- /dev/null +++ b/io/ipinfo/api/class-use/IPinfo.BatchReqOpts.html @@ -0,0 +1,166 @@ + + + + + +Uses of Class io.ipinfo.api.IPinfo.BatchReqOpts (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.IPinfo.BatchReqOpts

+
+
+ + + + + + + + + + + + + + +
Packages that use IPinfo.BatchReqOpts
PackageDescription
io.ipinfo.api 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/class-use/IPinfo.Builder.html b/io/ipinfo/api/class-use/IPinfo.Builder.html new file mode 100644 index 0000000..5a0fb01 --- /dev/null +++ b/io/ipinfo/api/class-use/IPinfo.Builder.html @@ -0,0 +1,143 @@ + + + + + +Uses of Class io.ipinfo.api.IPinfo.Builder (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.IPinfo.Builder

+
+
+ + + + + + + + + + + + + + +
Packages that use IPinfo.Builder
PackageDescription
io.ipinfo.api 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/class-use/IPinfo.html b/io/ipinfo/api/class-use/IPinfo.html new file mode 100644 index 0000000..9f2f370 --- /dev/null +++ b/io/ipinfo/api/class-use/IPinfo.html @@ -0,0 +1,128 @@ + + + + + +Uses of Class io.ipinfo.api.IPinfo (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.IPinfo

+
+
+ + + + + + + + + + + + + + +
Packages that use IPinfo
PackageDescription
io.ipinfo.api 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/context/Context.html b/io/ipinfo/api/context/Context.html new file mode 100644 index 0000000..0a2e802 --- /dev/null +++ b/io/ipinfo/api/context/Context.html @@ -0,0 +1,221 @@ + + + + + +Context (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Context

+
+
java.lang.Object +
io.ipinfo.api.context.Context
+
+
+
+
public class Context
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getCountryName

      +
      public String getCountryName​(String countryCode)
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/context/class-use/Context.html b/io/ipinfo/api/context/class-use/Context.html new file mode 100644 index 0000000..ccbd083 --- /dev/null +++ b/io/ipinfo/api/context/class-use/Context.html @@ -0,0 +1,137 @@ + + + + + +Uses of Class io.ipinfo.api.context.Context (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.context.Context

+
+
+ + + + + + + + + + + + + + +
Packages that use Context
PackageDescription
io.ipinfo.api.model 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/context/package-summary.html b/io/ipinfo/api/context/package-summary.html new file mode 100644 index 0000000..e6e8c6d --- /dev/null +++ b/io/ipinfo/api/context/package-summary.html @@ -0,0 +1,106 @@ + + + + + +io.ipinfo.api.context (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.ipinfo.api.context

+
+
+
    +
  • +
    + + + + + + + + + + + + + + +
    Class Summary
    ClassDescription
    Context 
    +
    +
  • +
+
+
+ +
+
+ + diff --git a/io/ipinfo/api/context/package-tree.html b/io/ipinfo/api/context/package-tree.html new file mode 100644 index 0000000..b6012ee --- /dev/null +++ b/io/ipinfo/api/context/package-tree.html @@ -0,0 +1,97 @@ + + + + + +io.ipinfo.api.context Class Hierarchy (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.ipinfo.api.context

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/context/package-use.html b/io/ipinfo/api/context/package-use.html new file mode 100644 index 0000000..7017174 --- /dev/null +++ b/io/ipinfo/api/context/package-use.html @@ -0,0 +1,125 @@ + + + + + +Uses of Package io.ipinfo.api.context (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.ipinfo.api.context

+
+
+ + + + + + + + + + + + + + +
Packages that use io.ipinfo.api.context
PackageDescription
io.ipinfo.api.model 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/errors/ErrorResponseException.html b/io/ipinfo/api/errors/ErrorResponseException.html new file mode 100644 index 0000000..ea6823b --- /dev/null +++ b/io/ipinfo/api/errors/ErrorResponseException.html @@ -0,0 +1,207 @@ + + + + + +ErrorResponseException (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ErrorResponseException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
io.ipinfo.api.errors.ErrorResponseException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class ErrorResponseException
+extends RuntimeException
+
+
See Also:
+
Serialized Form
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ErrorResponseException

      +
      public ErrorResponseException()
      +
      +
    • +
    • +
      +

      ErrorResponseException

      +
      public ErrorResponseException​(Exception ex)
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/errors/RateLimitedException.html b/io/ipinfo/api/errors/RateLimitedException.html new file mode 100644 index 0000000..02a3412 --- /dev/null +++ b/io/ipinfo/api/errors/RateLimitedException.html @@ -0,0 +1,195 @@ + + + + + +RateLimitedException (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class RateLimitedException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
io.ipinfo.api.errors.RateLimitedException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class RateLimitedException
+extends Exception
+
+
See Also:
+
Serialized Form
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      RateLimitedException

      +
      public RateLimitedException()
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/errors/class-use/ErrorResponseException.html b/io/ipinfo/api/errors/class-use/ErrorResponseException.html new file mode 100644 index 0000000..e638d3c --- /dev/null +++ b/io/ipinfo/api/errors/class-use/ErrorResponseException.html @@ -0,0 +1,83 @@ + + + + + +Uses of Class io.ipinfo.api.errors.ErrorResponseException (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.errors.ErrorResponseException

+
+No usage of io.ipinfo.api.errors.ErrorResponseException
+ +
+
+ + diff --git a/io/ipinfo/api/errors/class-use/RateLimitedException.html b/io/ipinfo/api/errors/class-use/RateLimitedException.html new file mode 100644 index 0000000..c6f70ce --- /dev/null +++ b/io/ipinfo/api/errors/class-use/RateLimitedException.html @@ -0,0 +1,237 @@ + + + + + +Uses of Class io.ipinfo.api.errors.RateLimitedException (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.errors.RateLimitedException

+
+
+ + + + + + + + + + + + + + + + + + +
Packages that use RateLimitedException
PackageDescription
io.ipinfo.api 
io.ipinfo.api.request 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/errors/package-summary.html b/io/ipinfo/api/errors/package-summary.html new file mode 100644 index 0000000..57b9cc7 --- /dev/null +++ b/io/ipinfo/api/errors/package-summary.html @@ -0,0 +1,110 @@ + + + + + +io.ipinfo.api.errors (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.ipinfo.api.errors

+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/errors/package-tree.html b/io/ipinfo/api/errors/package-tree.html new file mode 100644 index 0000000..826b18e --- /dev/null +++ b/io/ipinfo/api/errors/package-tree.html @@ -0,0 +1,110 @@ + + + + + +io.ipinfo.api.errors Class Hierarchy (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.ipinfo.api.errors

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/errors/package-use.html b/io/ipinfo/api/errors/package-use.html new file mode 100644 index 0000000..f4624f6 --- /dev/null +++ b/io/ipinfo/api/errors/package-use.html @@ -0,0 +1,150 @@ + + + + + +Uses of Package io.ipinfo.api.errors (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.ipinfo.api.errors

+
+
+ + + + + + + + + + + + + + + + + + +
Packages that use io.ipinfo.api.errors
PackageDescription
io.ipinfo.api 
io.ipinfo.api.request 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/model/ASN.html b/io/ipinfo/api/model/ASN.html new file mode 100644 index 0000000..152d5ea --- /dev/null +++ b/io/ipinfo/api/model/ASN.html @@ -0,0 +1,288 @@ + + + + + +ASN (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ASN

+
+
java.lang.Object +
io.ipinfo.api.model.ASN
+
+
+
+
public class ASN
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getAsn

      +
      public String getAsn()
      +
      +
    • +
    • +
      +

      getName

      +
      public String getName()
      +
      +
    • +
    • +
      +

      getDomain

      +
      public String getDomain()
      +
      +
    • +
    • +
      +

      getRoute

      +
      public String getRoute()
      +
      +
    • +
    • +
      +

      getType

      +
      public String getType()
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/model/ASNResponse.html b/io/ipinfo/api/model/ASNResponse.html new file mode 100644 index 0000000..afe46bd --- /dev/null +++ b/io/ipinfo/api/model/ASNResponse.html @@ -0,0 +1,432 @@ + + + + + +ASNResponse (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ASNResponse

+
+
java.lang.Object +
io.ipinfo.api.model.ASNResponse
+
+
+
+
public class ASNResponse
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      setContext

      +
      public void setContext​(Context context)
      +
      Set by the library for extra utility functions
      +
      +
      Parameters:
      +
      context - for country information
      +
      +
      +
    • +
    • +
      +

      getAsn

      +
      public String getAsn()
      +
      +
    • +
    • +
      +

      getName

      +
      public String getName()
      +
      +
    • +
    • +
      +

      getCountry

      +
      public String getCountry()
      +
      +
    • +
    • +
      +

      getCountryCode

      +
      public String getCountryCode()
      +
      +
    • +
    • +
      +

      getCountryName

      +
      public String getCountryName()
      +
      +
    • +
    • +
      +

      getAllocated

      +
      public String getAllocated()
      +
      +
    • +
    • +
      +

      getRegistry

      +
      public String getRegistry()
      +
      +
    • +
    • +
      +

      getDomain

      +
      public String getDomain()
      +
      +
    • +
    • +
      +

      getNumIps

      +
      public Integer getNumIps()
      +
      +
    • +
    • +
      +

      getType

      +
      public String getType()
      +
      +
    • +
    • +
      +

      getPrefixes

      +
      public List<Prefix> getPrefixes()
      +
      +
    • +
    • +
      +

      getPrefixes6

      +
      public List<Prefix> getPrefixes6()
      +
      +
    • +
    • +
      +

      getPeers

      +
      public List<String> getPeers()
      +
      +
    • +
    • +
      +

      getUpstreams

      +
      public List<String> getUpstreams()
      +
      +
    • +
    • +
      +

      getDownstreams

      +
      public List<String> getDownstreams()
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/model/Abuse.html b/io/ipinfo/api/model/Abuse.html new file mode 100644 index 0000000..4108859 --- /dev/null +++ b/io/ipinfo/api/model/Abuse.html @@ -0,0 +1,301 @@ + + + + + +Abuse (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Abuse

+
+
java.lang.Object +
io.ipinfo.api.model.Abuse
+
+
+
+
public class Abuse
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getAddress

      +
      public String getAddress()
      +
      +
    • +
    • +
      +

      getCountry

      +
      public String getCountry()
      +
      +
    • +
    • +
      +

      getEmail

      +
      public String getEmail()
      +
      +
    • +
    • +
      +

      getName

      +
      public String getName()
      +
      +
    • +
    • +
      +

      getNetwork

      +
      public String getNetwork()
      +
      +
    • +
    • +
      +

      getPhone

      +
      public String getPhone()
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/model/Carrier.html b/io/ipinfo/api/model/Carrier.html new file mode 100644 index 0000000..cb6c575 --- /dev/null +++ b/io/ipinfo/api/model/Carrier.html @@ -0,0 +1,262 @@ + + + + + +Carrier (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Carrier

+
+
java.lang.Object +
io.ipinfo.api.model.Carrier
+
+
+
+
public class Carrier
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getName

      +
      public String getName()
      +
      +
    • +
    • +
      +

      getMcc

      +
      public String getMcc()
      +
      +
    • +
    • +
      +

      getMnc

      +
      public String getMnc()
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/model/Company.html b/io/ipinfo/api/model/Company.html new file mode 100644 index 0000000..bc7b626 --- /dev/null +++ b/io/ipinfo/api/model/Company.html @@ -0,0 +1,262 @@ + + + + + +Company (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Company

+
+
java.lang.Object +
io.ipinfo.api.model.Company
+
+
+
+
public class Company
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getName

      +
      public String getName()
      +
      +
    • +
    • +
      +

      getDomain

      +
      public String getDomain()
      +
      +
    • +
    • +
      +

      getType

      +
      public String getType()
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/model/Domains.html b/io/ipinfo/api/model/Domains.html new file mode 100644 index 0000000..96c35ca --- /dev/null +++ b/io/ipinfo/api/model/Domains.html @@ -0,0 +1,249 @@ + + + + + +Domains (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Domains

+
+
java.lang.Object +
io.ipinfo.api.model.Domains
+
+
+
+
public class Domains
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getTotal

      +
      public String getTotal()
      +
      +
    • +
    • +
      +

      getDomains

      +
      public List<String> getDomains()
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/model/IPResponse.html b/io/ipinfo/api/model/IPResponse.html new file mode 100644 index 0000000..5298c61 --- /dev/null +++ b/io/ipinfo/api/model/IPResponse.html @@ -0,0 +1,482 @@ + + + + + +IPResponse (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class IPResponse

+
+
java.lang.Object +
io.ipinfo.api.model.IPResponse
+
+
+
+
public class IPResponse
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      setContext

      +
      public void setContext​(Context context)
      +
      Set by the library for extra utility functions
      +
      +
      Parameters:
      +
      context - for country information
      +
      +
      +
    • +
    • +
      +

      getIp

      +
      public String getIp()
      +
      +
    • +
    • +
      +

      getHostname

      +
      public String getHostname()
      +
      +
    • +
    • +
      +

      getAnycast

      +
      public boolean getAnycast()
      +
      +
    • +
    • +
      +

      getCity

      +
      public String getCity()
      +
      +
    • +
    • +
      +

      getRegion

      +
      public String getRegion()
      +
      +
    • +
    • +
      +

      getCountryCode

      +
      public String getCountryCode()
      +
      +
    • +
    • +
      +

      getCountryName

      +
      public String getCountryName()
      +
      +
    • +
    • +
      +

      getLocation

      +
      public String getLocation()
      +
      +
    • +
    • +
      +

      getLatitude

      +
      public String getLatitude()
      +
      +
    • +
    • +
      +

      getLongitude

      +
      public String getLongitude()
      +
      +
    • +
    • +
      +

      getOrg

      +
      public String getOrg()
      +
      +
    • +
    • +
      +

      getPostal

      +
      public String getPostal()
      +
      +
    • +
    • +
      +

      getTimezone

      +
      public String getTimezone()
      +
      +
    • +
    • +
      +

      getAsn

      +
      public ASN getAsn()
      +
      +
    • +
    • +
      +

      getCompany

      +
      public Company getCompany()
      +
      +
    • +
    • +
      +

      getCarrier

      +
      public Carrier getCarrier()
      +
      +
    • +
    • +
      +

      getPrivacy

      +
      public Privacy getPrivacy()
      +
      +
    • +
    • +
      +

      getAbuse

      +
      public Abuse getAbuse()
      +
      +
    • +
    • +
      +

      getDomains

      +
      public Domains getDomains()
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/model/MapResponse.html b/io/ipinfo/api/model/MapResponse.html new file mode 100644 index 0000000..2528fc2 --- /dev/null +++ b/io/ipinfo/api/model/MapResponse.html @@ -0,0 +1,249 @@ + + + + + +MapResponse (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MapResponse

+
+
java.lang.Object +
io.ipinfo.api.model.MapResponse
+
+
+
+
public class MapResponse
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MapResponse

      +
      public MapResponse​(String reportUrl, +String status)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getReportUrl

      +
      public String getReportUrl()
      +
      +
    • +
    • +
      +

      getStatus

      +
      public String getStatus()
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/model/Prefix.html b/io/ipinfo/api/model/Prefix.html new file mode 100644 index 0000000..06e9ad8 --- /dev/null +++ b/io/ipinfo/api/model/Prefix.html @@ -0,0 +1,314 @@ + + + + + +Prefix (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Prefix

+
+
java.lang.Object +
io.ipinfo.api.model.Prefix
+
+
+
+
public class Prefix
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getNetblock

      +
      public String getNetblock()
      +
      +
    • +
    • +
      +

      getId

      +
      public String getId()
      +
      +
    • +
    • +
      +

      getName

      +
      public String getName()
      +
      +
    • +
    • +
      +

      getCountry

      +
      public String getCountry()
      +
      +
    • +
    • +
      +

      getSize

      +
      public String getSize()
      +
      +
    • +
    • +
      +

      getStatus

      +
      public String getStatus()
      +
      +
    • +
    • +
      +

      getDomain

      +
      public String getDomain()
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/model/Privacy.html b/io/ipinfo/api/model/Privacy.html new file mode 100644 index 0000000..756ecef --- /dev/null +++ b/io/ipinfo/api/model/Privacy.html @@ -0,0 +1,301 @@ + + + + + +Privacy (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Privacy

+
+
java.lang.Object +
io.ipinfo.api.model.Privacy
+
+
+
+
public class Privacy
+extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Privacy

      +
      public Privacy​(boolean vpn, +boolean proxy, +boolean tor, +boolean relay, +boolean hosting, +String service)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getVpn

      +
      public boolean getVpn()
      +
      +
    • +
    • +
      +

      getProxy

      +
      public boolean getProxy()
      +
      +
    • +
    • +
      +

      getTor

      +
      public boolean getTor()
      +
      +
    • +
    • +
      +

      getRelay

      +
      public boolean getRelay()
      +
      +
    • +
    • +
      +

      getHosting

      +
      public boolean getHosting()
      +
      +
    • +
    • +
      +

      getService

      +
      public String getService()
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/model/class-use/ASN.html b/io/ipinfo/api/model/class-use/ASN.html new file mode 100644 index 0000000..2e926e9 --- /dev/null +++ b/io/ipinfo/api/model/class-use/ASN.html @@ -0,0 +1,160 @@ + + + + + +Uses of Class io.ipinfo.api.model.ASN (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.model.ASN

+
+
+ + + + + + + + + + + + + + +
Packages that use ASN
PackageDescription
io.ipinfo.api.model 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/model/class-use/ASNResponse.html b/io/ipinfo/api/model/class-use/ASNResponse.html new file mode 100644 index 0000000..7cc6488 --- /dev/null +++ b/io/ipinfo/api/model/class-use/ASNResponse.html @@ -0,0 +1,187 @@ + + + + + +Uses of Class io.ipinfo.api.model.ASNResponse (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.model.ASNResponse

+
+
+ + + + + + + + + + + + + + + + + + +
Packages that use ASNResponse
PackageDescription
io.ipinfo.api 
io.ipinfo.api.request 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/model/class-use/Abuse.html b/io/ipinfo/api/model/class-use/Abuse.html new file mode 100644 index 0000000..beecb31 --- /dev/null +++ b/io/ipinfo/api/model/class-use/Abuse.html @@ -0,0 +1,160 @@ + + + + + +Uses of Class io.ipinfo.api.model.Abuse (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.model.Abuse

+
+
+ + + + + + + + + + + + + + +
Packages that use Abuse
PackageDescription
io.ipinfo.api.model 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/model/class-use/Carrier.html b/io/ipinfo/api/model/class-use/Carrier.html new file mode 100644 index 0000000..a3e3de0 --- /dev/null +++ b/io/ipinfo/api/model/class-use/Carrier.html @@ -0,0 +1,160 @@ + + + + + +Uses of Class io.ipinfo.api.model.Carrier (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.model.Carrier

+
+
+ + + + + + + + + + + + + + +
Packages that use Carrier
PackageDescription
io.ipinfo.api.model 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/model/class-use/Company.html b/io/ipinfo/api/model/class-use/Company.html new file mode 100644 index 0000000..28c2422 --- /dev/null +++ b/io/ipinfo/api/model/class-use/Company.html @@ -0,0 +1,160 @@ + + + + + +Uses of Class io.ipinfo.api.model.Company (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.model.Company

+
+
+ + + + + + + + + + + + + + +
Packages that use Company
PackageDescription
io.ipinfo.api.model 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/model/class-use/Domains.html b/io/ipinfo/api/model/class-use/Domains.html new file mode 100644 index 0000000..895fc30 --- /dev/null +++ b/io/ipinfo/api/model/class-use/Domains.html @@ -0,0 +1,160 @@ + + + + + +Uses of Class io.ipinfo.api.model.Domains (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.model.Domains

+
+
+ + + + + + + + + + + + + + +
Packages that use Domains
PackageDescription
io.ipinfo.api.model 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/model/class-use/IPResponse.html b/io/ipinfo/api/model/class-use/IPResponse.html new file mode 100644 index 0000000..11c9db4 --- /dev/null +++ b/io/ipinfo/api/model/class-use/IPResponse.html @@ -0,0 +1,187 @@ + + + + + +Uses of Class io.ipinfo.api.model.IPResponse (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.model.IPResponse

+
+
+ + + + + + + + + + + + + + + + + + +
Packages that use IPResponse
PackageDescription
io.ipinfo.api 
io.ipinfo.api.request 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/model/class-use/MapResponse.html b/io/ipinfo/api/model/class-use/MapResponse.html new file mode 100644 index 0000000..53feb3b --- /dev/null +++ b/io/ipinfo/api/model/class-use/MapResponse.html @@ -0,0 +1,128 @@ + + + + + +Uses of Class io.ipinfo.api.model.MapResponse (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.model.MapResponse

+
+
+ + + + + + + + + + + + + + +
Packages that use MapResponse
PackageDescription
io.ipinfo.api.request 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/model/class-use/Prefix.html b/io/ipinfo/api/model/class-use/Prefix.html new file mode 100644 index 0000000..440b844 --- /dev/null +++ b/io/ipinfo/api/model/class-use/Prefix.html @@ -0,0 +1,162 @@ + + + + + +Uses of Class io.ipinfo.api.model.Prefix (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.model.Prefix

+
+
+ + + + + + + + + + + + + + +
Packages that use Prefix
PackageDescription
io.ipinfo.api.model 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/model/class-use/Privacy.html b/io/ipinfo/api/model/class-use/Privacy.html new file mode 100644 index 0000000..3338c14 --- /dev/null +++ b/io/ipinfo/api/model/class-use/Privacy.html @@ -0,0 +1,160 @@ + + + + + +Uses of Class io.ipinfo.api.model.Privacy (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.model.Privacy

+
+
+ + + + + + + + + + + + + + +
Packages that use Privacy
PackageDescription
io.ipinfo.api.model 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/model/package-summary.html b/io/ipinfo/api/model/package-summary.html new file mode 100644 index 0000000..57ce8df --- /dev/null +++ b/io/ipinfo/api/model/package-summary.html @@ -0,0 +1,142 @@ + + + + + +io.ipinfo.api.model (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.ipinfo.api.model

+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/model/package-tree.html b/io/ipinfo/api/model/package-tree.html new file mode 100644 index 0000000..cab411c --- /dev/null +++ b/io/ipinfo/api/model/package-tree.html @@ -0,0 +1,106 @@ + + + + + +io.ipinfo.api.model Class Hierarchy (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.ipinfo.api.model

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/model/package-use.html b/io/ipinfo/api/model/package-use.html new file mode 100644 index 0000000..eb854f2 --- /dev/null +++ b/io/ipinfo/api/model/package-use.html @@ -0,0 +1,211 @@ + + + + + +Uses of Package io.ipinfo.api.model (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.ipinfo.api.model

+
+
+ + + + + + + + + + + + + + + + + + + + + + +
Packages that use io.ipinfo.api.model
PackageDescription
io.ipinfo.api 
io.ipinfo.api.model 
io.ipinfo.api.request 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/package-summary.html b/io/ipinfo/api/package-summary.html new file mode 100644 index 0000000..8239c4c --- /dev/null +++ b/io/ipinfo/api/package-summary.html @@ -0,0 +1,118 @@ + + + + + +io.ipinfo.api (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.ipinfo.api

+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/package-tree.html b/io/ipinfo/api/package-tree.html new file mode 100644 index 0000000..0e1db90 --- /dev/null +++ b/io/ipinfo/api/package-tree.html @@ -0,0 +1,100 @@ + + + + + +io.ipinfo.api Class Hierarchy (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.ipinfo.api

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/package-use.html b/io/ipinfo/api/package-use.html new file mode 100644 index 0000000..acf0be5 --- /dev/null +++ b/io/ipinfo/api/package-use.html @@ -0,0 +1,137 @@ + + + + + +Uses of Package io.ipinfo.api (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.ipinfo.api

+
+
+ + + + + + + + + + + + + + +
Packages that use io.ipinfo.api
PackageDescription
io.ipinfo.api 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/request/ASNRequest.html b/io/ipinfo/api/request/ASNRequest.html new file mode 100644 index 0000000..856d37e --- /dev/null +++ b/io/ipinfo/api/request/ASNRequest.html @@ -0,0 +1,246 @@ + + + + + +ASNRequest (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ASNRequest

+
+
java.lang.Object +
io.ipinfo.api.request.BaseRequest<ASNResponse> +
io.ipinfo.api.request.ASNRequest
+
+
+
+
+
public class ASNRequest
+extends BaseRequest<ASNResponse>
+
+
+ +
+
+ +
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/request/BaseRequest.html b/io/ipinfo/api/request/BaseRequest.html new file mode 100644 index 0000000..dc44203 --- /dev/null +++ b/io/ipinfo/api/request/BaseRequest.html @@ -0,0 +1,289 @@ + + + + + +BaseRequest (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BaseRequest<T>

+
+
java.lang.Object +
io.ipinfo.api.request.BaseRequest<T>
+
+
+
+
Direct Known Subclasses:
+
ASNRequest, IPRequest, MapRequest
+
+
+
public abstract class BaseRequest<T>
+extends Object
+
+
+
    + +
  • +
    +

    Field Summary

    +
    + + + + + + + + + + + + + + + + +
    Fields
    Modifier and TypeFieldDescription
    protected static com.google.gson.Gsongson 
    +
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    + + + + + + + + + + + + + + + + +
    Constructors
    ModifierConstructorDescription
    protected BaseRequest​(okhttp3.OkHttpClient client, +String token) 
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    abstract Thandle() 
    okhttp3.ResponsehandleRequest​(okhttp3.Request.Builder request) 
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      gson

      +
      protected static final com.google.gson.Gson gson
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BaseRequest

      +
      protected BaseRequest​(okhttp3.OkHttpClient client, +String token)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/request/IPRequest.html b/io/ipinfo/api/request/IPRequest.html new file mode 100644 index 0000000..933ccad --- /dev/null +++ b/io/ipinfo/api/request/IPRequest.html @@ -0,0 +1,246 @@ + + + + + +IPRequest (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class IPRequest

+
+
java.lang.Object +
io.ipinfo.api.request.BaseRequest<IPResponse> +
io.ipinfo.api.request.IPRequest
+
+
+
+
+
public class IPRequest
+extends BaseRequest<IPResponse>
+
+
+ +
+
+ +
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/request/MapRequest.html b/io/ipinfo/api/request/MapRequest.html new file mode 100644 index 0000000..18f9a62 --- /dev/null +++ b/io/ipinfo/api/request/MapRequest.html @@ -0,0 +1,246 @@ + + + + + +MapRequest (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MapRequest

+
+
java.lang.Object +
io.ipinfo.api.request.BaseRequest<MapResponse> +
io.ipinfo.api.request.MapRequest
+
+
+
+
+
public class MapRequest
+extends BaseRequest<MapResponse>
+
+
+ +
+
+ +
+ +
+ +
+
+ + diff --git a/io/ipinfo/api/request/class-use/ASNRequest.html b/io/ipinfo/api/request/class-use/ASNRequest.html new file mode 100644 index 0000000..e4cff18 --- /dev/null +++ b/io/ipinfo/api/request/class-use/ASNRequest.html @@ -0,0 +1,83 @@ + + + + + +Uses of Class io.ipinfo.api.request.ASNRequest (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.request.ASNRequest

+
+No usage of io.ipinfo.api.request.ASNRequest
+ +
+
+ + diff --git a/io/ipinfo/api/request/class-use/BaseRequest.html b/io/ipinfo/api/request/class-use/BaseRequest.html new file mode 100644 index 0000000..25be43e --- /dev/null +++ b/io/ipinfo/api/request/class-use/BaseRequest.html @@ -0,0 +1,138 @@ + + + + + +Uses of Class io.ipinfo.api.request.BaseRequest (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.request.BaseRequest

+
+
+ + + + + + + + + + + + + + +
Packages that use BaseRequest
PackageDescription
io.ipinfo.api.request 
+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/request/class-use/IPRequest.html b/io/ipinfo/api/request/class-use/IPRequest.html new file mode 100644 index 0000000..b91d062 --- /dev/null +++ b/io/ipinfo/api/request/class-use/IPRequest.html @@ -0,0 +1,83 @@ + + + + + +Uses of Class io.ipinfo.api.request.IPRequest (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.request.IPRequest

+
+No usage of io.ipinfo.api.request.IPRequest
+ +
+
+ + diff --git a/io/ipinfo/api/request/class-use/MapRequest.html b/io/ipinfo/api/request/class-use/MapRequest.html new file mode 100644 index 0000000..b9cfeae --- /dev/null +++ b/io/ipinfo/api/request/class-use/MapRequest.html @@ -0,0 +1,83 @@ + + + + + +Uses of Class io.ipinfo.api.request.MapRequest (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.ipinfo.api.request.MapRequest

+
+No usage of io.ipinfo.api.request.MapRequest
+ +
+
+ + diff --git a/io/ipinfo/api/request/package-summary.html b/io/ipinfo/api/request/package-summary.html new file mode 100644 index 0000000..327843c --- /dev/null +++ b/io/ipinfo/api/request/package-summary.html @@ -0,0 +1,118 @@ + + + + + +io.ipinfo.api.request (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.ipinfo.api.request

+
+
+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/request/package-tree.html b/io/ipinfo/api/request/package-tree.html new file mode 100644 index 0000000..54db142 --- /dev/null +++ b/io/ipinfo/api/request/package-tree.html @@ -0,0 +1,103 @@ + + + + + +io.ipinfo.api.request Class Hierarchy (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.ipinfo.api.request

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+ +
+
+ + diff --git a/io/ipinfo/api/request/package-use.html b/io/ipinfo/api/request/package-use.html new file mode 100644 index 0000000..85e0755 --- /dev/null +++ b/io/ipinfo/api/request/package-use.html @@ -0,0 +1,125 @@ + + + + + +Uses of Package io.ipinfo.api.request (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.ipinfo.api.request

+
+
+ + + + + + + + + + + + + + +
Packages that use io.ipinfo.api.request
PackageDescription
io.ipinfo.api.request 
+
+
+ +
+
+ +
+
+ + diff --git a/jquery-ui.overrides.css b/jquery-ui.overrides.css new file mode 100644 index 0000000..f89acb6 --- /dev/null +++ b/jquery-ui.overrides.css @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +.ui-state-active, +.ui-widget-content .ui-state-active, +.ui-widget-header .ui-state-active, +a.ui-button:active, +.ui-button:active, +.ui-button.ui-state-active:hover { + /* Overrides the color of selection used in jQuery UI */ + background: #F8981D; +} diff --git a/member-search-index.js b/member-search-index.js new file mode 100644 index 0000000..e16aa2d --- /dev/null +++ b/member-search-index.js @@ -0,0 +1 @@ +memberSearchIndex = [{"p":"io.ipinfo.api.model","c":"Abuse","l":"Abuse(String, String, String, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"io.ipinfo.api.model","c":"ASN","l":"ASN(String, String, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"io.ipinfo.api.request","c":"ASNRequest","l":"ASNRequest(OkHttpClient, String, String)","u":"%3Cinit%3E(okhttp3.OkHttpClient,java.lang.String,java.lang.String)"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"ASNResponse(String, String, String, String, String, String, Integer, String, List, List, List, List, List)","u":"%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,java.lang.String,java.util.List,java.util.List,java.util.List,java.util.List,java.util.List)"},{"p":"io.ipinfo.api.request","c":"BaseRequest","l":"BaseRequest(OkHttpClient, String)","u":"%3Cinit%3E(okhttp3.OkHttpClient,java.lang.String)"},{"p":"io.ipinfo.api","c":"IPinfo.BatchReqOpts","l":"BatchReqOpts(int, int, int, boolean)","u":"%3Cinit%3E(int,int,int,boolean)"},{"p":"io.ipinfo.api","c":"IPinfo.BatchReqOpts","l":"batchSize"},{"p":"io.ipinfo.api","c":"IPinfo.BatchReqOpts.Builder","l":"build()"},{"p":"io.ipinfo.api","c":"IPinfo.Builder","l":"build()"},{"p":"io.ipinfo.api","c":"IPinfo.BatchReqOpts.Builder","l":"Builder()","u":"%3Cinit%3E()"},{"p":"io.ipinfo.api","c":"IPinfo.Builder","l":"Builder()","u":"%3Cinit%3E()"},{"p":"io.ipinfo.api","c":"IPinfo","l":"cacheKey(String)","u":"cacheKey(java.lang.String)"},{"p":"io.ipinfo.api.model","c":"Carrier","l":"Carrier(String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String)"},{"p":"io.ipinfo.api.cache","c":"Cache","l":"clear()"},{"p":"io.ipinfo.api.cache","c":"NoCache","l":"clear()"},{"p":"io.ipinfo.api.cache","c":"SimpleCache","l":"clear()"},{"p":"io.ipinfo.api.model","c":"Company","l":"Company(String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String)"},{"p":"io.ipinfo.api.context","c":"Context","l":"Context(Map)","u":"%3Cinit%3E(java.util.Map)"},{"p":"io.ipinfo.api.model","c":"Domains","l":"Domains(String, List)","u":"%3Cinit%3E(java.lang.String,java.util.List)"},{"p":"io.ipinfo.api.errors","c":"ErrorResponseException","l":"ErrorResponseException()","u":"%3Cinit%3E()"},{"p":"io.ipinfo.api.errors","c":"ErrorResponseException","l":"ErrorResponseException(Exception)","u":"%3Cinit%3E(java.lang.Exception)"},{"p":"io.ipinfo.api","c":"IPinfo.BatchReqOpts","l":"filter"},{"p":"io.ipinfo.api.cache","c":"Cache","l":"get(String)","u":"get(java.lang.String)"},{"p":"io.ipinfo.api.cache","c":"NoCache","l":"get(String)","u":"get(java.lang.String)"},{"p":"io.ipinfo.api.cache","c":"SimpleCache","l":"get(String)","u":"get(java.lang.String)"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getAbuse()"},{"p":"io.ipinfo.api.model","c":"Abuse","l":"getAddress()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getAllocated()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getAnycast()"},{"p":"io.ipinfo.api.model","c":"ASN","l":"getAsn()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getAsn()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getAsn()"},{"p":"io.ipinfo.api","c":"IPinfo","l":"getBatch(List)","u":"getBatch(java.util.List)"},{"p":"io.ipinfo.api","c":"IPinfo","l":"getBatch(List, IPinfo.BatchReqOpts)","u":"getBatch(java.util.List,io.ipinfo.api.IPinfo.BatchReqOpts)"},{"p":"io.ipinfo.api","c":"IPinfo","l":"getBatchAsns(List)","u":"getBatchAsns(java.util.List)"},{"p":"io.ipinfo.api","c":"IPinfo","l":"getBatchAsns(List, IPinfo.BatchReqOpts)","u":"getBatchAsns(java.util.List,io.ipinfo.api.IPinfo.BatchReqOpts)"},{"p":"io.ipinfo.api","c":"IPinfo","l":"getBatchIps(List)","u":"getBatchIps(java.util.List)"},{"p":"io.ipinfo.api","c":"IPinfo","l":"getBatchIps(List, IPinfo.BatchReqOpts)","u":"getBatchIps(java.util.List,io.ipinfo.api.IPinfo.BatchReqOpts)"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getCarrier()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getCity()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getCompany()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getCountry()"},{"p":"io.ipinfo.api.model","c":"Abuse","l":"getCountry()"},{"p":"io.ipinfo.api.model","c":"Prefix","l":"getCountry()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getCountryCode()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getCountryCode()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getCountryName()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getCountryName()"},{"p":"io.ipinfo.api.context","c":"Context","l":"getCountryName(String)","u":"getCountryName(java.lang.String)"},{"p":"io.ipinfo.api.model","c":"ASN","l":"getDomain()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getDomain()"},{"p":"io.ipinfo.api.model","c":"Company","l":"getDomain()"},{"p":"io.ipinfo.api.model","c":"Prefix","l":"getDomain()"},{"p":"io.ipinfo.api.model","c":"Domains","l":"getDomains()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getDomains()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getDownstreams()"},{"p":"io.ipinfo.api.model","c":"Abuse","l":"getEmail()"},{"p":"io.ipinfo.api.model","c":"Privacy","l":"getHosting()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getHostname()"},{"p":"io.ipinfo.api.model","c":"Prefix","l":"getId()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getIp()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getLatitude()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getLocation()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getLongitude()"},{"p":"io.ipinfo.api","c":"IPinfo","l":"getMap(List)","u":"getMap(java.util.List)"},{"p":"io.ipinfo.api.model","c":"Carrier","l":"getMcc()"},{"p":"io.ipinfo.api.model","c":"Carrier","l":"getMnc()"},{"p":"io.ipinfo.api.model","c":"ASN","l":"getName()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getName()"},{"p":"io.ipinfo.api.model","c":"Abuse","l":"getName()"},{"p":"io.ipinfo.api.model","c":"Carrier","l":"getName()"},{"p":"io.ipinfo.api.model","c":"Company","l":"getName()"},{"p":"io.ipinfo.api.model","c":"Prefix","l":"getName()"},{"p":"io.ipinfo.api.model","c":"Prefix","l":"getNetblock()"},{"p":"io.ipinfo.api.model","c":"Abuse","l":"getNetwork()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getNumIps()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getOrg()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getPeers()"},{"p":"io.ipinfo.api.model","c":"Abuse","l":"getPhone()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getPostal()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getPrefixes()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getPrefixes6()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getPrivacy()"},{"p":"io.ipinfo.api.model","c":"Privacy","l":"getProxy()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getRegion()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getRegistry()"},{"p":"io.ipinfo.api.model","c":"Privacy","l":"getRelay()"},{"p":"io.ipinfo.api.model","c":"MapResponse","l":"getReportUrl()"},{"p":"io.ipinfo.api.model","c":"ASN","l":"getRoute()"},{"p":"io.ipinfo.api.model","c":"Privacy","l":"getService()"},{"p":"io.ipinfo.api.model","c":"Prefix","l":"getSize()"},{"p":"io.ipinfo.api.model","c":"MapResponse","l":"getStatus()"},{"p":"io.ipinfo.api.model","c":"Prefix","l":"getStatus()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"getTimezone()"},{"p":"io.ipinfo.api.model","c":"Privacy","l":"getTor()"},{"p":"io.ipinfo.api.model","c":"Domains","l":"getTotal()"},{"p":"io.ipinfo.api.model","c":"ASN","l":"getType()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getType()"},{"p":"io.ipinfo.api.model","c":"Company","l":"getType()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"getUpstreams()"},{"p":"io.ipinfo.api.model","c":"Privacy","l":"getVpn()"},{"p":"io.ipinfo.api.request","c":"BaseRequest","l":"gson"},{"p":"io.ipinfo.api.request","c":"ASNRequest","l":"handle()"},{"p":"io.ipinfo.api.request","c":"BaseRequest","l":"handle()"},{"p":"io.ipinfo.api.request","c":"IPRequest","l":"handle()"},{"p":"io.ipinfo.api.request","c":"MapRequest","l":"handle()"},{"p":"io.ipinfo.api.request","c":"BaseRequest","l":"handleRequest(Request.Builder)","u":"handleRequest(okhttp3.Request.Builder)"},{"p":"io.ipinfo.api.request","c":"IPRequest","l":"IPRequest(OkHttpClient, String, String)","u":"%3Cinit%3E(okhttp3.OkHttpClient,java.lang.String,java.lang.String)"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"IPResponse(String, String, boolean, String, String, String, String, String, String, String, ASN, Company, Carrier, Privacy, Abuse, Domains)","u":"%3Cinit%3E(java.lang.String,java.lang.String,boolean,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,io.ipinfo.api.model.ASN,io.ipinfo.api.model.Company,io.ipinfo.api.model.Carrier,io.ipinfo.api.model.Privacy,io.ipinfo.api.model.Abuse,io.ipinfo.api.model.Domains)"},{"p":"io.ipinfo.api","c":"IPinfo","l":"lookupASN(String)","u":"lookupASN(java.lang.String)"},{"p":"io.ipinfo.api","c":"IPinfo","l":"lookupIP(String)","u":"lookupIP(java.lang.String)"},{"p":"io.ipinfo.api","c":"IPinfo","l":"main(String...)","u":"main(java.lang.String...)"},{"p":"io.ipinfo.api.request","c":"MapRequest","l":"MapRequest(OkHttpClient, String, List)","u":"%3Cinit%3E(okhttp3.OkHttpClient,java.lang.String,java.util.List)"},{"p":"io.ipinfo.api.model","c":"MapResponse","l":"MapResponse(String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String)"},{"p":"io.ipinfo.api.cache","c":"NoCache","l":"NoCache()","u":"%3Cinit%3E()"},{"p":"io.ipinfo.api.model","c":"Prefix","l":"Prefix(String, String, String, String, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"io.ipinfo.api.model","c":"Privacy","l":"Privacy(boolean, boolean, boolean, boolean, boolean, String)","u":"%3Cinit%3E(boolean,boolean,boolean,boolean,boolean,java.lang.String)"},{"p":"io.ipinfo.api.errors","c":"RateLimitedException","l":"RateLimitedException()","u":"%3Cinit%3E()"},{"p":"io.ipinfo.api.cache","c":"Cache","l":"set(String, Object)","u":"set(java.lang.String,java.lang.Object)"},{"p":"io.ipinfo.api.cache","c":"NoCache","l":"set(String, Object)","u":"set(java.lang.String,java.lang.Object)"},{"p":"io.ipinfo.api.cache","c":"SimpleCache","l":"set(String, Object)","u":"set(java.lang.String,java.lang.Object)"},{"p":"io.ipinfo.api","c":"IPinfo.BatchReqOpts.Builder","l":"setBatchSize(int)"},{"p":"io.ipinfo.api","c":"IPinfo.Builder","l":"setCache(Cache)","u":"setCache(io.ipinfo.api.cache.Cache)"},{"p":"io.ipinfo.api","c":"IPinfo.Builder","l":"setClient(OkHttpClient)","u":"setClient(okhttp3.OkHttpClient)"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"setContext(Context)","u":"setContext(io.ipinfo.api.context.Context)"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"setContext(Context)","u":"setContext(io.ipinfo.api.context.Context)"},{"p":"io.ipinfo.api","c":"IPinfo.Builder","l":"setCountryFile(File)","u":"setCountryFile(java.io.File)"},{"p":"io.ipinfo.api","c":"IPinfo.BatchReqOpts.Builder","l":"setFilter(boolean)"},{"p":"io.ipinfo.api","c":"IPinfo.BatchReqOpts.Builder","l":"setTimeoutPerBatch(int)"},{"p":"io.ipinfo.api","c":"IPinfo.BatchReqOpts.Builder","l":"setTimeoutTotal(int)"},{"p":"io.ipinfo.api","c":"IPinfo.Builder","l":"setToken(String)","u":"setToken(java.lang.String)"},{"p":"io.ipinfo.api.cache","c":"SimpleCache","l":"SimpleCache(Duration)","u":"%3Cinit%3E(java.time.Duration)"},{"p":"io.ipinfo.api","c":"IPinfo.BatchReqOpts","l":"timeoutPerBatch"},{"p":"io.ipinfo.api","c":"IPinfo.BatchReqOpts","l":"timeoutTotal"},{"p":"io.ipinfo.api.model","c":"ASN","l":"toString()"},{"p":"io.ipinfo.api.model","c":"ASNResponse","l":"toString()"},{"p":"io.ipinfo.api.model","c":"Abuse","l":"toString()"},{"p":"io.ipinfo.api.model","c":"Carrier","l":"toString()"},{"p":"io.ipinfo.api.model","c":"Company","l":"toString()"},{"p":"io.ipinfo.api.model","c":"Domains","l":"toString()"},{"p":"io.ipinfo.api.model","c":"IPResponse","l":"toString()"},{"p":"io.ipinfo.api.model","c":"MapResponse","l":"toString()"},{"p":"io.ipinfo.api.model","c":"Prefix","l":"toString()"},{"p":"io.ipinfo.api.model","c":"Privacy","l":"toString()"}];updateSearchResults(); \ No newline at end of file diff --git a/module-search-index.js b/module-search-index.js new file mode 100644 index 0000000..0d59754 --- /dev/null +++ b/module-search-index.js @@ -0,0 +1 @@ +moduleSearchIndex = [];updateSearchResults(); \ No newline at end of file diff --git a/overview-summary.html b/overview-summary.html new file mode 100644 index 0000000..e0fc34d --- /dev/null +++ b/overview-summary.html @@ -0,0 +1,26 @@ + + + + + +IPinfo-API 2.1 API + + + + + + + + + + +
+ +

index.html

+
+ + diff --git a/overview-tree.html b/overview-tree.html new file mode 100644 index 0000000..5761d28 --- /dev/null +++ b/overview-tree.html @@ -0,0 +1,145 @@ + + + + + +Class Hierarchy (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+
    +
  • io.ipinfo.api.cache.Cache
  • +
+
+
+ +
+
+ + diff --git a/package-search-index.js b/package-search-index.js new file mode 100644 index 0000000..259e65c --- /dev/null +++ b/package-search-index.js @@ -0,0 +1 @@ +packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"io.ipinfo.api"},{"l":"io.ipinfo.api.cache"},{"l":"io.ipinfo.api.context"},{"l":"io.ipinfo.api.errors"},{"l":"io.ipinfo.api.model"},{"l":"io.ipinfo.api.request"}];updateSearchResults(); \ No newline at end of file diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 3192a9e..0000000 --- a/pom.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - 4.0.0 - - io.ipinfo - java-ipinfo - 1.0-SNAPSHOT - jar - - - org.sonatype.oss - oss-parent - 7 - - - - UTF-8 - - - Java-IPInfo - - https://github.com/ipinfo/java-ipinfo - Java wrapper for the IPInfo API - - - GitHub - https://github.com/ipinfo/java-ipinfo/issues - - - - - Apache 2.0 - https://www.apache.org/licenses/LICENSE-2.0 - repo - - - - - git@github.com:ipinfo/java-ipinfo.git - scm:git:git@github.com:ipinfo/java-ipinfo.git - scm:git:git@github.com:ipinfo/java-ipinfo.git - - - - - aaomidi - Amir Omidi - amir@ipinfo.io - IPInfo - - - - - - com.google.code.gson - gson - 2.8.2 - compile - - - com.squareup.okhttp3 - okhttp - 3.9.0 - compile - - - - - clean package - target - target/classes - ${basedir}/src/main/java - - ${project.name}-${project.version} - - - ${project.basedir}/src/main/resources - - *.json - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.7.0 - - 1.8 - 1.8 - - - - org.apache.maven.plugins - maven-source-plugin - 3.0.1 - - - attach-sources - generate-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.0.1 - - - attach-javadocs - - jar - - - - - - - diff --git a/resources/glass.png b/resources/glass.png new file mode 100644 index 0000000..a7f591f Binary files /dev/null and b/resources/glass.png differ diff --git a/resources/x.png b/resources/x.png new file mode 100644 index 0000000..30548a7 Binary files /dev/null and b/resources/x.png differ diff --git a/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png b/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png new file mode 100644 index 0000000..34abd18 Binary files /dev/null and b/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png differ diff --git a/script-dir/images/ui-bg_glass_65_dadada_1x400.png b/script-dir/images/ui-bg_glass_65_dadada_1x400.png new file mode 100644 index 0000000..f058a93 Binary files /dev/null and b/script-dir/images/ui-bg_glass_65_dadada_1x400.png differ diff --git a/script-dir/images/ui-bg_glass_75_dadada_1x400.png b/script-dir/images/ui-bg_glass_75_dadada_1x400.png new file mode 100644 index 0000000..2ce04c1 Binary files /dev/null and b/script-dir/images/ui-bg_glass_75_dadada_1x400.png differ diff --git a/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png b/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png new file mode 100644 index 0000000..a90afb8 Binary files /dev/null and b/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png differ diff --git a/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png b/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png new file mode 100644 index 0000000..dbe091f Binary files /dev/null and b/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png differ diff --git a/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png new file mode 100644 index 0000000..5dc3593 Binary files /dev/null and b/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png differ diff --git a/script-dir/images/ui-icons_222222_256x240.png b/script-dir/images/ui-icons_222222_256x240.png new file mode 100644 index 0000000..e723e17 Binary files /dev/null and b/script-dir/images/ui-icons_222222_256x240.png differ diff --git a/script-dir/images/ui-icons_2e83ff_256x240.png b/script-dir/images/ui-icons_2e83ff_256x240.png new file mode 100644 index 0000000..1f5f497 Binary files /dev/null and b/script-dir/images/ui-icons_2e83ff_256x240.png differ diff --git a/script-dir/images/ui-icons_454545_256x240.png b/script-dir/images/ui-icons_454545_256x240.png new file mode 100644 index 0000000..618f5b0 Binary files /dev/null and b/script-dir/images/ui-icons_454545_256x240.png differ diff --git a/script-dir/images/ui-icons_888888_256x240.png b/script-dir/images/ui-icons_888888_256x240.png new file mode 100644 index 0000000..ee5e33f Binary files /dev/null and b/script-dir/images/ui-icons_888888_256x240.png differ diff --git a/script-dir/images/ui-icons_cd0a0a_256x240.png b/script-dir/images/ui-icons_cd0a0a_256x240.png new file mode 100644 index 0000000..7e8ebc1 Binary files /dev/null and b/script-dir/images/ui-icons_cd0a0a_256x240.png differ diff --git a/script-dir/jquery-3.5.1.min.js b/script-dir/jquery-3.5.1.min.js new file mode 100644 index 0000000..b061403 --- /dev/null +++ b/script-dir/jquery-3.5.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0a;a++)for(s in o[a])n=o[a][s],o[a].hasOwnProperty(s)&&void 0!==n&&(e[s]=t.isPlainObject(n)?t.isPlainObject(e[s])?t.widget.extend({},e[s],n):t.widget.extend({},n):n);return e},t.widget.bridge=function(e,s){var n=s.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=i.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,s=t.data(this,n);return"instance"===o?(l=s,!1):s?t.isFunction(s[o])&&"_"!==o.charAt(0)?(i=s[o].apply(s,r),i!==s&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,n);e?(e.option(o||{}),e._init&&e._init()):t.data(this,n,new s(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?n.on(h,c,r):i.on(h,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var n,o=Math.max,a=Math.abs,r=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("
"),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.widthi?"left":e>0?"right":"center",vertical:0>r?"top":s>0?"bottom":"middle"};h>p&&p>a(e+i)&&(u.horizontal="center"),c>f&&f>a(s+r)&&(u.vertical="middle"),u.important=o(a(e),a(i))>o(a(s),a(r))?"horizontal":"vertical",n.using.call(this,t,u)}),l.offset(t.extend(D,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,l=n-r,h=r+e.collisionWidth-a-n;e.collisionWidth>a?l>0&&0>=h?(i=t.left+l+e.collisionWidth-a-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+a-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,l=n-r,h=r+e.collisionHeight-a-n;e.collisionHeight>a?l>0&&0>=h?(i=t.top+l+e.collisionHeight-a-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+a-e.collisionHeight:n:l>0?t.top+=l:h>0?t.top-=h:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,r=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-r-o,(0>i||a(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-l,(s>0||u>a(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,r=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-r-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-r-o,(0>s||a(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,(i>0||u>a(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultElement:"
    ",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),s=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),s=t(e.currentTarget);i[0]===s[0]&&(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,s))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){var i=!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,s,n,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,s=this.previousFilter||"",o=!1,n=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===s?o=!0:n=s+n,i=this._filterMenuItems(n),i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(n=String.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,s,n,o,a=this,r=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),s=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),s=t("").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(s),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(s,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"ui-menu-divider","ui-widget-content")}),n=i.not(".ui-menu-item, .ui-menu-divider"),o=n.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,s,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(e),void 0)},previousPage:function(e){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first())),void 0):(this.next(e),void 0)},_hasScroll:function(){return this.element.outerHeight()",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,void 0;e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),void 0):(this._searchTimeout(t),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(t),this._change(t),void 0)}}),this._initSource(),this.menu=t("
      ").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),void 0):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-label")||n.value,s&&t.trim(s).length&&(this.liveRegion.children().hide(),t("
      ").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,i){var s=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=s})),!1!==this._trigger("select",e,{item:s})&&this._value(s.value),this.term=this._value(),this.close(e),this.selectedItem=s}}),this.liveRegion=t("
      ",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length").append(t("
      ").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[t](e),void 0):(this.search(null,e),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("
      ").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete}); \ No newline at end of file diff --git a/script-dir/jquery-ui.structure.min.css b/script-dir/jquery-ui.structure.min.css new file mode 100644 index 0000000..e880892 --- /dev/null +++ b/script-dir/jquery-ui.structure.min.css @@ -0,0 +1,5 @@ +/*! jQuery UI - v1.12.1 - 2018-12-06 +* http://jqueryui.com +* Copyright jQuery Foundation and other contributors; Licensed MIT */ + +.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0} \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..4428408 --- /dev/null +++ b/script.js @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +var moduleSearchIndex; +var packageSearchIndex; +var typeSearchIndex; +var memberSearchIndex; +var tagSearchIndex; +function loadScripts(doc, tag) { + createElem(doc, tag, 'search.js'); + + createElem(doc, tag, 'module-search-index.js'); + createElem(doc, tag, 'package-search-index.js'); + createElem(doc, tag, 'type-search-index.js'); + createElem(doc, tag, 'member-search-index.js'); + createElem(doc, tag, 'tag-search-index.js'); +} + +function createElem(doc, tag, path) { + var script = doc.createElement(tag); + var scriptElement = doc.getElementsByTagName(tag)[0]; + script.src = pathtoroot + path; + scriptElement.parentNode.insertBefore(script, scriptElement); +} + +function show(type) { + count = 0; + for (var key in data) { + var row = document.getElementById(key); + if ((data[key] & type) !== 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) { + var firstRow = document.getElementById(Object.keys(data)[0]); + var table = firstRow.closest('table'); + for (var value in tabs) { + var tab = document.getElementById(tabs[value][0]); + if (value == type) { + tab.className = activeTableTab; + tab.innerHTML = tabs[value][1]; + tab.setAttribute('aria-selected', true); + tab.setAttribute('tabindex',0); + table.setAttribute('aria-labelledby', tabs[value][0]); + } + else { + tab.className = tableTab; + tab.setAttribute('aria-selected', false); + tab.setAttribute('tabindex',-1); + tab.setAttribute('onclick', "show("+ value + ")"); + tab.innerHTML = tabs[value][1]; + } + } +} + +function switchTab(e) { + if (e.keyCode == 37 || e.keyCode == 38) { + $("[aria-selected=true]").prev().click().focus(); + e.preventDefault(); + } + if (e.keyCode == 39 || e.keyCode == 40) { + $("[aria-selected=true]").next().click().focus(); + e.preventDefault(); + } +} + +var updateSearchResults = function() {}; + +function indexFilesLoaded() { + return moduleSearchIndex + && packageSearchIndex + && typeSearchIndex + && memberSearchIndex + && tagSearchIndex; +} diff --git a/search.js b/search.js new file mode 100644 index 0000000..9d19ba1 --- /dev/null +++ b/search.js @@ -0,0 +1,378 @@ +/* + * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +var noResult = {l: "No results found"}; +var loading = {l: "Loading search index..."}; +var catModules = "Modules"; +var catPackages = "Packages"; +var catTypes = "Types"; +var catMembers = "Members"; +var catSearchTags = "SearchTags"; +var highlight = "$&"; +var searchPattern = ""; +var RANKING_THRESHOLD = 2; +var NO_MATCH = 0xffff; +var MAX_RESULTS_PER_CATEGORY = 500; +var UNNAMED = ""; +function escapeHtml(str) { + return str.replace(//g, ">"); +} +function getHighlightedText(item, matcher) { + var escapedItem = escapeHtml(item); + return escapedItem.replace(matcher, highlight); +} +function getURLPrefix(ui) { + var urlPrefix=""; + var slash = "/"; + if (ui.item.category === catModules) { + return ui.item.l + slash; + } else if (ui.item.category === catPackages && ui.item.m) { + return ui.item.m + slash; + } else if (ui.item.category === catTypes || ui.item.category === catMembers) { + if (ui.item.m) { + urlPrefix = ui.item.m + slash; + } else { + $.each(packageSearchIndex, function(index, item) { + if (item.m && ui.item.p === item.l) { + urlPrefix = item.m + slash; + } + }); + } + return urlPrefix; + } + return urlPrefix; +} +function makeCamelCaseRegex(term) { + var pattern = ""; + var isWordToken = false; + term.replace(/,\s*/g, ", ").trim().split(/\s+/).forEach(function(w, index) { + if (index > 0) { + // whitespace between identifiers is significant + pattern += (isWordToken && /^\w/.test(w)) ? "\\s+" : "\\s*"; + } + var tokens = w.split(/(?=[A-Z,.()<>[\/])/); + for (var i = 0; i < tokens.length; i++) { + var s = tokens[i]; + if (s === "") { + continue; + } + pattern += $.ui.autocomplete.escapeRegex(s); + isWordToken = /\w$/.test(s); + if (isWordToken) { + pattern += "([a-z0-9_$<>\\[\\]]*?)"; + } + } + }); + return pattern; +} +function createMatcher(pattern, flags) { + var isCamelCase = /[A-Z]/.test(pattern); + return new RegExp(pattern, flags + (isCamelCase ? "" : "i")); +} +var watermark = 'Search'; +$(function() { + $("#search").val(''); + $("#search").prop("disabled", false); + $("#reset").prop("disabled", false); + $("#search").val(watermark).addClass('watermark'); + $("#search").blur(function() { + if ($(this).val().length == 0) { + $(this).val(watermark).addClass('watermark'); + } + }); + $("#search").on('click keydown paste', function() { + if ($(this).val() == watermark) { + $(this).val('').removeClass('watermark'); + } + }); + $("#reset").click(function() { + $("#search").val(''); + $("#search").focus(); + }); + $("#search").focus(); + $("#search")[0].setSelectionRange(0, 0); +}); +$.widget("custom.catcomplete", $.ui.autocomplete, { + _create: function() { + this._super(); + this.widget().menu("option", "items", "> :not(.ui-autocomplete-category)"); + }, + _renderMenu: function(ul, items) { + var rMenu = this; + var currentCategory = ""; + rMenu.menu.bindings = $(); + $.each(items, function(index, item) { + var li; + if (item.category && item.category !== currentCategory) { + ul.append("
    • " + item.category + "
    • "); + currentCategory = item.category; + } + li = rMenu._renderItemData(ul, item); + if (item.category) { + li.attr("aria-label", item.category + " : " + item.l); + li.attr("class", "result-item"); + } else { + li.attr("aria-label", item.l); + li.attr("class", "result-item"); + } + }); + }, + _renderItem: function(ul, item) { + var label = ""; + var matcher = createMatcher(escapeHtml(searchPattern), "g"); + if (item.category === catModules) { + label = getHighlightedText(item.l, matcher); + } else if (item.category === catPackages) { + label = getHighlightedText(item.l, matcher); + } else if (item.category === catTypes) { + label = (item.p && item.p !== UNNAMED) + ? getHighlightedText(item.p + "." + item.l, matcher) + : getHighlightedText(item.l, matcher); + } else if (item.category === catMembers) { + label = (item.p && item.p !== UNNAMED) + ? getHighlightedText(item.p + "." + item.c + "." + item.l, matcher) + : getHighlightedText(item.c + "." + item.l, matcher); + } else if (item.category === catSearchTags) { + label = getHighlightedText(item.l, matcher); + } else { + label = item.l; + } + var li = $("
    • ").appendTo(ul); + var div = $("
      ").appendTo(li); + if (item.category === catSearchTags) { + if (item.d) { + div.html(label + " (" + item.h + ")
      " + + item.d + "
      "); + } else { + div.html(label + " (" + item.h + ")"); + } + } else { + if (item.m) { + div.html(item.m + "/" + label); + } else { + div.html(label); + } + } + return li; + } +}); +function rankMatch(match, category) { + if (!match) { + return NO_MATCH; + } + var index = match.index; + var input = match.input; + var leftBoundaryMatch = 2; + var periferalMatch = 0; + var delta = 0; + // make sure match is anchored on a left word boundary + if (index === 0 || /\W/.test(input[index - 1]) || "_" === input[index - 1] || "_" === input[index]) { + leftBoundaryMatch = 0; + } else if (input[index] === input[index].toUpperCase() && !/^[A-Z0-9_$]+$/.test(input)) { + leftBoundaryMatch = 1; + } + var matchEnd = index + match[0].length; + var leftParen = input.indexOf("("); + // exclude peripheral matches + if (category !== catModules && category !== catSearchTags) { + var endOfName = leftParen > -1 ? leftParen : input.length; + var delim = category === catPackages ? "/" : "."; + if (leftParen > -1 && leftParen < index) { + periferalMatch += 2; + } else if (input.lastIndexOf(delim, endOfName) >= matchEnd) { + periferalMatch += 2; + } + } + for (var i = 1; i < match.length; i++) { + // lower ranking if parts of the name are missing + if (match[i]) + delta += match[i].length; + } + if (category === catTypes) { + // lower ranking if a type name contains unmatched camel-case parts + if (/[A-Z]/.test(input.substring(matchEnd))) + delta += 5; + if (/[A-Z]/.test(input.substring(0, index))) + delta += 5; + } + return leftBoundaryMatch + periferalMatch + (delta / 200); + +} +function doSearch(request, response) { + var result = []; + var newResults = []; + + searchPattern = makeCamelCaseRegex(request.term); + if (searchPattern === "") { + return this.close(); + } + var camelCaseMatcher = createMatcher(searchPattern, ""); + var boundaryMatcher = createMatcher("\\b" + searchPattern, ""); + + function concatResults(a1, a2) { + a2.sort(function(e1, e2) { + return e1.ranking - e2.ranking; + }); + a1 = a1.concat(a2.map(function(e) { return e.item; })); + a2.length = 0; + return a1; + } + + if (moduleSearchIndex) { + $.each(moduleSearchIndex, function(index, item) { + item.category = catModules; + var ranking = rankMatch(boundaryMatcher.exec(item.l), catModules); + if (ranking < RANKING_THRESHOLD) { + newResults.push({ ranking: ranking, item: item }); + } + return newResults.length < MAX_RESULTS_PER_CATEGORY; + }); + result = concatResults(result, newResults); + } + if (packageSearchIndex) { + $.each(packageSearchIndex, function(index, item) { + item.category = catPackages; + var name = (item.m && request.term.indexOf("/") > -1) + ? (item.m + "/" + item.l) + : item.l; + var ranking = rankMatch(boundaryMatcher.exec(name), catPackages); + if (ranking < RANKING_THRESHOLD) { + newResults.push({ ranking: ranking, item: item }); + } + return newResults.length < MAX_RESULTS_PER_CATEGORY; + }); + result = concatResults(result, newResults); + } + if (typeSearchIndex) { + $.each(typeSearchIndex, function(index, item) { + item.category = catTypes; + var name = request.term.indexOf(".") > -1 + ? item.p + "." + item.l + : item.l; + var ranking = rankMatch(camelCaseMatcher.exec(name), catTypes); + if (ranking < RANKING_THRESHOLD) { + newResults.push({ ranking: ranking, item: item }); + } + return newResults.length < MAX_RESULTS_PER_CATEGORY; + }); + result = concatResults(result, newResults); + } + if (memberSearchIndex) { + $.each(memberSearchIndex, function(index, item) { + item.category = catMembers; + var name = request.term.indexOf(".") > -1 + ? item.p + "." + item.c + "." + item.l + : item.l; + var ranking = rankMatch(camelCaseMatcher.exec(name), catMembers); + if (ranking < RANKING_THRESHOLD) { + newResults.push({ ranking: ranking, item: item }); + } + return newResults.length < MAX_RESULTS_PER_CATEGORY; + }); + result = concatResults(result, newResults); + } + if (tagSearchIndex) { + $.each(tagSearchIndex, function(index, item) { + item.category = catSearchTags; + var ranking = rankMatch(boundaryMatcher.exec(item.l), catSearchTags); + if (ranking < RANKING_THRESHOLD) { + newResults.push({ ranking: ranking, item: item }); + } + return newResults.length < MAX_RESULTS_PER_CATEGORY; + }); + result = concatResults(result, newResults); + } + if (!indexFilesLoaded()) { + updateSearchResults = function() { + doSearch(request, response); + } + result.unshift(loading); + } else { + updateSearchResults = function() {}; + } + response(result); +} +$(function() { + $("#search").catcomplete({ + minLength: 1, + delay: 300, + source: doSearch, + response: function(event, ui) { + if (!ui.content.length) { + ui.content.push(noResult); + } else { + $("#search").empty(); + } + }, + autoFocus: true, + focus: function(event, ui) { + return false; + }, + position: { + collision: "flip" + }, + select: function(event, ui) { + if (ui.item.category) { + var url = getURLPrefix(ui); + if (ui.item.category === catModules) { + url += "module-summary.html"; + } else if (ui.item.category === catPackages) { + if (ui.item.u) { + url = ui.item.u; + } else { + url += ui.item.l.replace(/\./g, '/') + "/package-summary.html"; + } + } else if (ui.item.category === catTypes) { + if (ui.item.u) { + url = ui.item.u; + } else if (ui.item.p === UNNAMED) { + url += ui.item.l + ".html"; + } else { + url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.l + ".html"; + } + } else if (ui.item.category === catMembers) { + if (ui.item.p === UNNAMED) { + url += ui.item.c + ".html" + "#"; + } else { + url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.c + ".html" + "#"; + } + if (ui.item.u) { + url += ui.item.u; + } else { + url += ui.item.l; + } + } else if (ui.item.category === catSearchTags) { + url += ui.item.u; + } + if (top !== window) { + parent.classFrame.location = pathtoroot + url; + } else { + window.location.href = pathtoroot + url; + } + $("#search").focus(); + } + } + }); +}); diff --git a/serialized-form.html b/serialized-form.html new file mode 100644 index 0000000..fba538e --- /dev/null +++ b/serialized-form.html @@ -0,0 +1,102 @@ + + + + + +Serialized Form (IPinfo-API 2.1 API) + + + + + + + + + + + + + + +
      + +
      +
      +
      +

      Serialized Form

      +
      + +
      + +
      +
      + + diff --git a/src/main/java/io/ipinfo/IPInfo.java b/src/main/java/io/ipinfo/IPInfo.java deleted file mode 100644 index 37facb7..0000000 --- a/src/main/java/io/ipinfo/IPInfo.java +++ /dev/null @@ -1,69 +0,0 @@ -package io.ipinfo; - -import io.ipinfo.errors.RateLimitedException; -import io.ipinfo.model.ASNResponse; -import io.ipinfo.model.IPResponse; -import io.ipinfo.request.ASNRequest; -import io.ipinfo.request.IPRequest; -import okhttp3.OkHttpClient; - -import java.util.Map; - -public class IPInfo { - private final OkHttpClient client; - private final String token; - private final Map countryMap; - - IPInfo(OkHttpClient client, String token, Map countryMap) { - this.client = client; - this.token = token; - this.countryMap = countryMap; - } - - public static void main(String... args) { - System.out.println("This library is not meant to be run as a standalone jar."); - - System.exit(0); - } - - /** - * Gets the builder for IPInfo - * - * @return - */ - public static IPInfoBuilder builder() { - return new IPInfoBuilder(); - } - - /** - * Lookup IP information using the IP. - * - * @param ip - * @return IPResponse - * @throws RateLimitedException - */ - public IPResponse lookupIP(String ip) throws RateLimitedException { - return new IPRequest(client, token, ip).handle(); - } - - /** - * Lookup ASN information using the AS number. - * - * @param asn - * @return ASNResponse - * @throws RateLimitedException - */ - public ASNResponse lookupASN(String asn) throws RateLimitedException { - return new ASNRequest(client, token, asn).handle(); - } - - /** - * Looks up a country name. - * - * @param countryCode - * @return The name of the country. - */ - public String lookupCountryName(String countryCode) { - return countryMap.getOrDefault(countryCode, null); - } -} diff --git a/src/main/java/io/ipinfo/IPInfoBuilder.java b/src/main/java/io/ipinfo/IPInfoBuilder.java deleted file mode 100644 index 46c1e3e..0000000 --- a/src/main/java/io/ipinfo/IPInfoBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -package io.ipinfo; - -import com.google.gson.Gson; -import com.google.gson.reflect.TypeToken; -import okhttp3.OkHttpClient; - -import java.io.File; -import java.io.FileReader; -import java.lang.reflect.Type; -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; - -public class IPInfoBuilder { - private File countryFile = new File(this.getClass().getClassLoader().getResource("en_US.json").getFile()); - private OkHttpClient client = new OkHttpClient.Builder().build(); - private String token = ""; - - public IPInfoBuilder setClient(OkHttpClient client) { - this.client = client; - return this; - } - - public IPInfoBuilder setToken(String token) { - this.token = token; - return this; - } - - public IPInfoBuilder setCountryFile(File file) { - this.countryFile = file; - return this; - } - - public IPInfo build() { - Type type = new TypeToken>() { - }.getType(); - - Gson gson = new Gson(); - Map map; - - try { - map = Collections.unmodifiableMap(gson.fromJson(new FileReader(countryFile), type)); - } catch (Exception e) { - map = Collections.unmodifiableMap(new HashMap<>()); - } - - return new IPInfo(client, token, map); - } -} diff --git a/src/main/java/io/ipinfo/errors/ErrorResponseException.java b/src/main/java/io/ipinfo/errors/ErrorResponseException.java deleted file mode 100644 index 676ad29..0000000 --- a/src/main/java/io/ipinfo/errors/ErrorResponseException.java +++ /dev/null @@ -1,4 +0,0 @@ -package io.ipinfo.errors; - -public class ErrorResponseException extends RuntimeException { -} diff --git a/src/main/java/io/ipinfo/errors/RateLimitedException.java b/src/main/java/io/ipinfo/errors/RateLimitedException.java deleted file mode 100644 index cfadd07..0000000 --- a/src/main/java/io/ipinfo/errors/RateLimitedException.java +++ /dev/null @@ -1,8 +0,0 @@ -package io.ipinfo.errors; - -public class RateLimitedException extends Exception { - - public RateLimitedException() { - super("You have been sending too many requests. Visit https://ipinfo.io/account to see your API limits."); - } -} diff --git a/src/main/java/io/ipinfo/model/ASN.java b/src/main/java/io/ipinfo/model/ASN.java deleted file mode 100644 index 12ff414..0000000 --- a/src/main/java/io/ipinfo/model/ASN.java +++ /dev/null @@ -1,50 +0,0 @@ -package io.ipinfo.model; - - -public class ASN { - private final String asn; - private final String name; - private final String domain; - private final String route; - private final String type; - - public ASN(String asn, String name, String domain, String route, String type) { - this.asn = asn; - this.name = name; - this.domain = domain; - this.route = route; - this.type = type; - } - - public String getAsn() { - return asn; - } - - public String getName() { - - return name; - } - - public String getDomain() { - return domain; - } - - public String getRoute() { - return route; - } - - public String getType() { - return type; - } - - @Override - public String toString() { - return "ASN{" + - "asn='" + asn + '\'' + - ", name='" + name + '\'' + - ", domain='" + domain + '\'' + - ", route='" + route + '\'' + - ", type='" + type + '\'' + - '}'; - } -} diff --git a/src/main/java/io/ipinfo/model/ASNResponse.java b/src/main/java/io/ipinfo/model/ASNResponse.java deleted file mode 100644 index 5f50ce7..0000000 --- a/src/main/java/io/ipinfo/model/ASNResponse.java +++ /dev/null @@ -1,82 +0,0 @@ -package io.ipinfo.model; - - -import com.google.gson.annotations.SerializedName; - -import java.util.List; - -public class ASNResponse { - private final String asn; - private final String name; - private final String country; - private final String allocated; - private final String registry; - private final String domain; - @SerializedName("num_ips") - private final String numIps; - private final List prefixes; - private final List prefixes6; - - public ASNResponse(String asn, String name, String country, String allocated, String registry, String domain, String numIps, List prefixes, List prefixes6) { - this.asn = asn; - this.name = name; - this.country = country; - this.allocated = allocated; - this.registry = registry; - this.domain = domain; - this.numIps = numIps; - this.prefixes = prefixes; - this.prefixes6 = prefixes6; - } - - public String getAsn() { - return asn; - } - - public String getName() { - return name; - } - - public String getCountry() { - return country; - } - - public String getAllocated() { - return allocated; - } - - public String getRegistry() { - return registry; - } - - public String getDomain() { - return domain; - } - - public String getNumIps() { - return numIps; - } - - public List getPrefixes() { - return prefixes; - } - - public List getPrefixes6() { - return prefixes6; - } - - @Override - public String toString() { - return "ASNResponse{" + - "asn='" + asn + '\'' + - ", name='" + name + '\'' + - ", country='" + country + '\'' + - ", allocated='" + allocated + '\'' + - ", registry='" + registry + '\'' + - ", domain='" + domain + '\'' + - ", numIps='" + numIps + '\'' + - ", prefixes=" + prefixes + - ", prefixes6=" + prefixes6 + - '}'; - } -} diff --git a/src/main/java/io/ipinfo/model/Carrier.java b/src/main/java/io/ipinfo/model/Carrier.java deleted file mode 100644 index 24c3e0a..0000000 --- a/src/main/java/io/ipinfo/model/Carrier.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.ipinfo.model; - - -public class Carrier { - private final String name; - private final String mcc; - private final String mnc; - - public Carrier(String name, String mcc, String mnc) { - this.name = name; - this.mcc = mcc; - this.mnc = mnc; - } - - public String getName() { - return name; - } - - public String getMcc() { - return mcc; - } - - public String getMnc() { - return mnc; - } - - @Override - public String toString() { - return "Carrier{" + - "name='" + name + '\'' + - ", mcc='" + mcc + '\'' + - ", mnc='" + mnc + '\'' + - '}'; - } -} diff --git a/src/main/java/io/ipinfo/model/Company.java b/src/main/java/io/ipinfo/model/Company.java deleted file mode 100644 index 4ab8fca..0000000 --- a/src/main/java/io/ipinfo/model/Company.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.ipinfo.model; - - -public class Company { - private final String name; - private final String domain; - private final String type; - - public Company(String name, String domain, String type) { - this.name = name; - this.domain = domain; - this.type = type; - } - - @Override - public String toString() { - return "Company{" + - "name='" + name + '\'' + - ", domain='" + domain + '\'' + - ", type='" + type + '\'' + - '}'; - } - - public String getName() { - return name; - } - - public String getDomain() { - return domain; - } - - public String getType() { - return type; - } -} diff --git a/src/main/java/io/ipinfo/model/IPResponse.java b/src/main/java/io/ipinfo/model/IPResponse.java deleted file mode 100644 index e8d2484..0000000 --- a/src/main/java/io/ipinfo/model/IPResponse.java +++ /dev/null @@ -1,97 +0,0 @@ -package io.ipinfo.model; - -public class IPResponse { - private final String ip; - private final String hostname; - private final String city; - private final String region; - private final String country; - private final String loc; - private final String postal; - private final String org; - private final String phone; - private final ASN asn; - private final Company company; - private final Carrier carrier; - - public IPResponse(String ip, String hostname, String city, String region, String country, String loc, String postal, String org, String phone, ASN asn, Company company, Carrier carrier) { - this.ip = ip; - this.hostname = hostname; - this.city = city; - this.region = region; - this.country = country; - this.loc = loc; - this.postal = postal; - this.org = org; - this.phone = phone; - this.asn = asn; - this.company = company; - this.carrier = carrier; - } - - public String getIp() { - return ip; - } - - public String getHostname() { - return hostname; - } - - public String getCity() { - return city; - } - - public String getRegion() { - return region; - } - - public String getCountry() { - return country; - } - - public String getLoc() { - return loc; - } - - public String getPostal() { - return postal; - } - - public String getOrg() { - return org; - } - - public String getPhone() { - return phone; - } - - public ASN getAsn() { - return asn; - } - - public Company getCompany() { - return company; - } - - public Carrier getCarrier() { - return carrier; - } - - @Override - public String toString() { - return "IPResponse{" + - "ip='" + ip + '\'' + - ", hostname='" + hostname + '\'' + - ", city='" + city + '\'' + - ", region='" + region + '\'' + - ", country='" + country + '\'' + - ", loc='" + loc + '\'' + - ", postal='" + postal + '\'' + - ", org='" + org + '\'' + - ", phone='" + phone + '\'' + - ", asn=" + asn + - ", company=" + company + - ", carrier=" + carrier + - '}'; - } -} diff --git a/src/main/java/io/ipinfo/model/Prefix.java b/src/main/java/io/ipinfo/model/Prefix.java deleted file mode 100644 index 6e5b87d..0000000 --- a/src/main/java/io/ipinfo/model/Prefix.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.ipinfo.model; - -public class Prefix { - private final String netblock; - private final String id; - private final String name; - private final String country; - - public Prefix(String netblock, String id, String name, String country) { - this.netblock = netblock; - this.id = id; - this.name = name; - this.country = country; - } - - @Override - public String toString() { - return "Prefix{" + - "netblock='" + netblock + '\'' + - ", id='" + id + '\'' + - ", name='" + name + '\'' + - ", country='" + country + '\'' + - '}'; - } - - public String getId() { - return id; - } - - public String getName() { - return name; - } - - public String getCountry() { - return country; - } - - public String getNetblock() { - - return netblock; - } -} diff --git a/src/main/java/io/ipinfo/request/ASNRequest.java b/src/main/java/io/ipinfo/request/ASNRequest.java deleted file mode 100644 index 67185d6..0000000 --- a/src/main/java/io/ipinfo/request/ASNRequest.java +++ /dev/null @@ -1,39 +0,0 @@ -package io.ipinfo.request; - -import io.ipinfo.errors.ErrorResponseException; -import io.ipinfo.errors.RateLimitedException; -import io.ipinfo.model.ASNResponse; -import okhttp3.OkHttpClient; -import okhttp3.Request; -import okhttp3.Response; - - -public class ASNRequest extends BaseRequest { - private final static String URL_FORMAT = "https://ipinfo.io/%s/json"; - private final String asn; - - public ASNRequest(OkHttpClient client, String token, String asn) { - super(client, token); - this.asn = asn; - } - - @Override - public ASNResponse handle() throws RateLimitedException { - String url = String.format(URL_FORMAT, asn); - Request.Builder request = new Request.Builder().url(url).get(); - - try (Response response = handleRequest(request)) { - if (response == null || response.body() == null) return null; - - if (response.code() == 429) { - throw new RateLimitedException(); - } - - try { - return gson.fromJson(response.body().string(), ASNResponse.class); - } catch (Exception ex) { - throw new ErrorResponseException(); - } - } - } -} diff --git a/src/main/java/io/ipinfo/request/BaseRequest.java b/src/main/java/io/ipinfo/request/BaseRequest.java deleted file mode 100644 index df3a272..0000000 --- a/src/main/java/io/ipinfo/request/BaseRequest.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.ipinfo.request; - -import com.google.gson.Gson; -import io.ipinfo.errors.RateLimitedException; -import okhttp3.Credentials; -import okhttp3.OkHttpClient; -import okhttp3.Request; -import okhttp3.Response; - -public abstract class BaseRequest { - protected final static Gson gson = new Gson(); - - private final OkHttpClient client; - private final String token; - - protected BaseRequest(OkHttpClient client, String token) { - this.client = client; - this.token = token; - } - - public abstract T handle() throws RateLimitedException; - - public Response handleRequest(Request.Builder request) { - request - .addHeader("Authorization", Credentials.basic(token, "")) - .addHeader("user-agent", "IPinfoClient/Java/1.0"); - try { - return client.newCall(request.build()).execute(); - } catch (Exception e) { - return null; - } - } -} - diff --git a/src/main/java/io/ipinfo/request/IPRequest.java b/src/main/java/io/ipinfo/request/IPRequest.java deleted file mode 100644 index 1d33df0..0000000 --- a/src/main/java/io/ipinfo/request/IPRequest.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.ipinfo.request; - -import io.ipinfo.errors.ErrorResponseException; -import io.ipinfo.errors.RateLimitedException; -import io.ipinfo.model.IPResponse; -import okhttp3.OkHttpClient; -import okhttp3.Request; -import okhttp3.Response; - -public class IPRequest extends BaseRequest { - private final static String URL_FORMAT = "https://ipinfo.io/%s/json"; - private final String ip; - - public IPRequest(OkHttpClient client, String token, String ip) { - super(client, token); - this.ip = ip; - } - - @Override - public IPResponse handle() throws RateLimitedException { - String url = String.format(URL_FORMAT, ip); - Request.Builder request = new Request.Builder().url(url).get(); - - try (Response response = handleRequest(request)) { - if (response == null || response.body() == null) return null; - - if (response.code() == 429) { - throw new RateLimitedException(); - } - - try { - return gson.fromJson(response.body().string(), IPResponse.class); - } catch (Exception ex) { - throw new ErrorResponseException(); - } - } - } -} diff --git a/src/main/resources/en_US.json b/src/main/resources/en_US.json deleted file mode 100644 index fa6ee37..0000000 --- a/src/main/resources/en_US.json +++ /dev/null @@ -1,252 +0,0 @@ -{ - "BD": "Bangladesh", - "BE": "Belgium", - "BF": "Burkina Faso", - "BG": "Bulgaria", - "BA": "Bosnia and Herzegovina", - "BB": "Barbados", - "WF": "Wallis and Futuna", - "BL": "Saint Barthelemy", - "BM": "Bermuda", - "BN": "Brunei", - "BO": "Bolivia", - "BH": "Bahrain", - "BI": "Burundi", - "BJ": "Benin", - "BT": "Bhutan", - "JM": "Jamaica", - "BV": "Bouvet Island", - "BW": "Botswana", - "WS": "Samoa", - "BQ": "Bonaire, Saint Eustatius and Saba ", - "BR": "Brazil", - "BS": "Bahamas", - "JE": "Jersey", - "BY": "Belarus", - "BZ": "Belize", - "RU": "Russia", - "RW": "Rwanda", - "RS": "Serbia", - "TL": "East Timor", - "RE": "Reunion", - "TM": "Turkmenistan", - "TJ": "Tajikistan", - "RO": "Romania", - "TK": "Tokelau", - "GW": "Guinea-Bissau", - "GU": "Guam", - "GT": "Guatemala", - "GS": "South Georgia and the South Sandwich Islands", - "GR": "Greece", - "GQ": "Equatorial Guinea", - "GP": "Guadeloupe", - "JP": "Japan", - "GY": "Guyana", - "GG": "Guernsey", - "GF": "French Guiana", - "GE": "Georgia", - "GD": "Grenada", - "GB": "United Kingdom", - "GA": "Gabon", - "SV": "El Salvador", - "GN": "Guinea", - "GM": "Gambia", - "GL": "Greenland", - "GI": "Gibraltar", - "GH": "Ghana", - "OM": "Oman", - "TN": "Tunisia", - "JO": "Jordan", - "HR": "Croatia", - "HT": "Haiti", - "HU": "Hungary", - "HK": "Hong Kong", - "HN": "Honduras", - "HM": "Heard Island and McDonald Islands", - "VE": "Venezuela", - "PR": "Puerto Rico", - "PS": "Palestinian Territory", - "PW": "Palau", - "PT": "Portugal", - "SJ": "Svalbard and Jan Mayen", - "PY": "Paraguay", - "IQ": "Iraq", - "PA": "Panama", - "PF": "French Polynesia", - "PG": "Papua New Guinea", - "PE": "Peru", - "PK": "Pakistan", - "PH": "Philippines", - "PN": "Pitcairn", - "PL": "Poland", - "PM": "Saint Pierre and Miquelon", - "ZM": "Zambia", - "EH": "Western Sahara", - "EE": "Estonia", - "EG": "Egypt", - "ZA": "South Africa", - "EC": "Ecuador", - "IT": "Italy", - "VN": "Vietnam", - "SB": "Solomon Islands", - "ET": "Ethiopia", - "SO": "Somalia", - "ZW": "Zimbabwe", - "SA": "Saudi Arabia", - "ES": "Spain", - "ER": "Eritrea", - "ME": "Montenegro", - "MD": "Moldova", - "MG": "Madagascar", - "MF": "Saint Martin", - "MA": "Morocco", - "MC": "Monaco", - "UZ": "Uzbekistan", - "MM": "Myanmar", - "ML": "Mali", - "MO": "Macao", - "MN": "Mongolia", - "MH": "Marshall Islands", - "MK": "Macedonia", - "MU": "Mauritius", - "MT": "Malta", - "MW": "Malawi", - "MV": "Maldives", - "MQ": "Martinique", - "MP": "Northern Mariana Islands", - "MS": "Montserrat", - "MR": "Mauritania", - "IM": "Isle of Man", - "UG": "Uganda", - "TZ": "Tanzania", - "MY": "Malaysia", - "MX": "Mexico", - "IL": "Israel", - "FR": "France", - "IO": "British Indian Ocean Territory", - "SH": "Saint Helena", - "FI": "Finland", - "FJ": "Fiji", - "FK": "Falkland Islands", - "FM": "Micronesia", - "FO": "Faroe Islands", - "NI": "Nicaragua", - "NL": "Netherlands", - "NO": "Norway", - "NA": "Namibia", - "VU": "Vanuatu", - "NC": "New Caledonia", - "NE": "Niger", - "NF": "Norfolk Island", - "NG": "Nigeria", - "NZ": "New Zealand", - "NP": "Nepal", - "NR": "Nauru", - "NU": "Niue", - "CK": "Cook Islands", - "XK": "Kosovo", - "CI": "Ivory Coast", - "CH": "Switzerland", - "CO": "Colombia", - "CN": "China", - "CM": "Cameroon", - "CL": "Chile", - "CC": "Cocos Islands", - "CA": "Canada", - "CG": "Republic of the Congo", - "CF": "Central African Republic", - "CD": "Democratic Republic of the Congo", - "CZ": "Czech Republic", - "CY": "Cyprus", - "CX": "Christmas Island", - "CR": "Costa Rica", - "CW": "Curacao", - "CV": "Cape Verde", - "CU": "Cuba", - "SZ": "Swaziland", - "SY": "Syria", - "SX": "Sint Maarten", - "KG": "Kyrgyzstan", - "KE": "Kenya", - "SS": "South Sudan", - "SR": "Suriname", - "KI": "Kiribati", - "KH": "Cambodia", - "KN": "Saint Kitts and Nevis", - "KM": "Comoros", - "ST": "Sao Tome and Principe", - "SK": "Slovakia", - "KR": "South Korea", - "SI": "Slovenia", - "KP": "North Korea", - "KW": "Kuwait", - "SN": "Senegal", - "SM": "San Marino", - "SL": "Sierra Leone", - "SC": "Seychelles", - "KZ": "Kazakhstan", - "KY": "Cayman Islands", - "SG": "Singapore", - "SE": "Sweden", - "SD": "Sudan", - "DO": "Dominican Republic", - "DM": "Dominica", - "DJ": "Djibouti", - "DK": "Denmark", - "VG": "British Virgin Islands", - "DE": "Germany", - "YE": "Yemen", - "DZ": "Algeria", - "US": "United States", - "UY": "Uruguay", - "YT": "Mayotte", - "UM": "United States Minor Outlying Islands", - "LB": "Lebanon", - "LC": "Saint Lucia", - "LA": "Laos", - "TV": "Tuvalu", - "TW": "Taiwan", - "TT": "Trinidad and Tobago", - "TR": "Turkey", - "LK": "Sri Lanka", - "LI": "Liechtenstein", - "LV": "Latvia", - "TO": "Tonga", - "LT": "Lithuania", - "LU": "Luxembourg", - "LR": "Liberia", - "LS": "Lesotho", - "TH": "Thailand", - "TF": "French Southern Territories", - "TG": "Togo", - "TD": "Chad", - "TC": "Turks and Caicos Islands", - "LY": "Libya", - "VA": "Vatican", - "VC": "Saint Vincent and the Grenadines", - "AE": "United Arab Emirates", - "AD": "Andorra", - "AG": "Antigua and Barbuda", - "AF": "Afghanistan", - "AI": "Anguilla", - "VI": "U.S. Virgin Islands", - "IS": "Iceland", - "IR": "Iran`", - "AM": "Armenia", - "AL": "Albania", - "AO": "Angola", - "AQ": "Antarctica", - "AS": "American Samoa", - "AR": "Argentina", - "AU": "Australia", - "AT": "Austria", - "AW": "Aruba", - "IN": "India", - "AX": "Aland Islands", - "AZ": "Azerbaijan", - "IE": "Ireland", - "ID": "Indonesia", - "UA": "Ukraine", - "QA": "Qatar", - "MZ": "Mozambique" -} diff --git a/stylesheet.css b/stylesheet.css new file mode 100644 index 0000000..79a9d97 --- /dev/null +++ b/stylesheet.css @@ -0,0 +1,792 @@ +/* + * Javadoc style sheet + */ + +@import url('resources/fonts/dejavu.css'); + +/* + * Styles for individual HTML elements. + * + * These are styles that are specific to individual HTML elements. Changing them affects the style of a particular + * HTML element throughout the page. + */ + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; + padding:0; + height:100%; + width:100%; +} +iframe { + margin:0; + padding:0; + height:100%; + width:100%; + overflow-y:scroll; + border:none; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a[href]:hover, a[href]:focus { + text-decoration:none; + color:#bb7a2a; +} +a[name] { + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +button { + font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size: 14px; +} +/* + * Styles for HTML generated by javadoc. + * + * These are style classes that are used by the standard doclet to generate HTML documentation. + */ + +/* + * Styles for document title and copyright. + */ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.about-language { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legal-copy { + margin-left:.5em; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* + * Styles for navigation bar. + */ +@media screen { + .flex-box { + position:fixed; + display:flex; + flex-direction:column; + height: 100%; + width: 100%; + } + .flex-header { + flex: 0 0 auto; + } + .flex-content { + flex: 1 1 auto; + overflow-y: auto; + } +} +.top-nav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottom-nav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.sub-nav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.sub-nav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +.sub-nav .nav-list { + padding-top:5px; +} +ul.nav-list, ul.sub-nav-list { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.nav-list li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +.sub-nav .nav-list-search { + float:right; + margin:0 0 0 0; + padding:5px 6px; + clear:none; +} +.nav-list-search label { + position:relative; + right:-16px; +} +ul.sub-nav-list li { + list-style:none; + float:left; + padding-top:10px; +} +.top-nav a:link, .top-nav a:active, .top-nav a:visited, .bottom-nav a:link, .bottom-nav a:active, .bottom-nav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.top-nav a:hover, .bottom-nav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.nav-bar-cell1-rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skip-nav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* + * Hide navigation links and search box in print layout + */ +@media print { + ul.nav-list, div.sub-nav { + display:none; + } +} +/* + * Styles for page header and footer. + */ +.title { + color:#2c4557; + margin:10px 0; +} +.sub-title { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* + * Styles for headings. + */ +body.class-declaration-page .summary h2, +body.class-declaration-page .details h2, +body.class-use-page h2, +body.module-declaration-page .block-list h2 { + font-style: italic; + padding:0; + margin:15px 0; +} +body.class-declaration-page .summary h3, +body.class-declaration-page .details h3, +body.class-declaration-page .summary .inherited-list h2 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +/* + * Styles for page layout containers. + */ +main { + clear:both; + padding:10px 20px; + position:relative; +} +dl.notes > dt { + font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +dl.notes > dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} +dl.name-value > dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +dl.name-value > dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* + * Styles for lists. + */ +li.circle { + list-style:circle; +} +ul.horizontal li { + display:inline; + font-size:0.9em; +} +div.inheritance { + margin:0; + padding:0; +} +div.inheritance div.inheritance { + margin-left:2em; +} +ul.block-list, +ul.details-list, +ul.member-list, +ul.summary-list { + margin:10px 0 10px 0; + padding:0; +} +ul.block-list > li, +ul.details-list > li, +ul.member-list > li, +ul.summary-list > li { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* + * Styles for tables. + */ +.overview-summary table, .member-summary table, .type-summary table, .use-summary table, .constants-summary table, .deprecated-summary table, +.requires-summary table, .packages-summary table, .provides-summary table, .uses-summary table, .system-properties-summary table { + width:100%; + border-spacing:0; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overview-summary table, .member-summary table, .requires-summary table, .packages-summary table, +.provides-summary table, .uses-summary table, .system-properties-summary table { + padding:0px; +} +.overview-summary caption, .member-summary caption, .type-summary caption, +.use-summary caption, .constants-summary caption, .deprecated-summary caption, +.requires-summary caption, .packages-summary caption, .provides-summary caption, +.uses-summary caption, .system-properties-summary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.constants-summary caption a:link, .constants-summary caption a:visited, +.use-summary caption a:link, .use-summary caption a:visited { + color:#1f389c; +} +.overview-summary caption a:link, .member-summary caption a:link, .type-summary caption a:link, +.deprecated-summary caption a:link, +.requires-summary caption a:link, .packages-summary caption a:link, .provides-summary caption a:link, +.uses-summary caption a:link, +.overview-summary caption a:hover, .member-summary caption a:hover, .type-summary caption a:hover, +.use-summary caption a:hover, .constants-summary caption a:hover, .deprecated-summary caption a:hover, +.requires-summary caption a:hover, .packages-summary caption a:hover, .provides-summary caption a:hover, +.uses-summary caption a:hover, +.overview-summary caption a:active, .member-summary caption a:active, .type-summary caption a:active, +.use-summary caption a:active, .constants-summary caption a:active, .deprecated-summary caption a:active, +.requires-summary caption a:active, .packages-summary caption a:active, .provides-summary caption a:active, +.uses-summary caption a:active, +.overview-summary caption a:visited, .member-summary caption a:visited, .type-summary caption a:visited, +.deprecated-summary caption a:visited, +.requires-summary caption a:visited, .packages-summary caption a:visited, .provides-summary caption a:visited, +.uses-summary caption a:visited { + color:#FFFFFF; +} +.overview-summary caption span, .member-summary caption span, .type-summary caption span, +.use-summary caption span, .constants-summary caption span, .deprecated-summary caption span, +.requires-summary caption span, .packages-summary caption span, .provides-summary caption span, +.uses-summary caption span, .system-properties-summary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} + +div.table-tabs > button { + border: none; + cursor: pointer; + padding: 5px 12px 7px 12px; + font-weight: bold; + margin-right: 3px; +} +div.table-tabs > button.active-table-tab { + background: #F8981D; + color: #253441; +} +div.table-tabs > button.table-tab { + background: #4D7A97; + color: #FFFFFF; +} + +.row-color th, +.alt-color th { + font-weight:normal; +} +.overview-summary td, .member-summary td, .type-summary td, +.use-summary td, .constants-summary td, .deprecated-summary td, +.requires-summary td, .packages-summary td, .provides-summary td, +.uses-summary td, .system-properties-summary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.col-first, th.col-second, th.col-last, th.col-constructor-name, th.col-deprecated-item-name, .use-summary th, +.constants-summary th, .packages-summary th, td.col-first, td.col-second, td.col-last, .use-summary td, +.constants-summary td, .system-properties-summary th { + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.col-first, th.col-second, th.col-last, th.col-constructor-name, th.col-deprecated-item-name, .constants-summary th, +.packages-summary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.col-first, th.col-first { + font-size:13px; +} +td.col-second, th.col-second, td.col-last, th.col-constructor-name, th.col-deprecated-item-name, th.col-last { + font-size:13px; +} +.constants-summary th, .packages-summary th { + font-size:13px; +} +.provides-summary th.col-first, .provides-summary th.col-last, .provides-summary td.col-first, +.provides-summary td.col-last { + white-space:normal; + font-size:13px; +} +.overview-summary td.col-first, .overview-summary th.col-first, +.requires-summary td.col-first, .requires-summary th.col-first, +.packages-summary td.col-first, .packages-summary td.col-second, .packages-summary th.col-first, .packages-summary th, +.uses-summary td.col-first, .uses-summary th.col-first, +.provides-summary td.col-first, .provides-summary th.col-first, +.member-summary td.col-first, .member-summary th.col-first, +.member-summary td.col-second, .member-summary th.col-second, .member-summary th.col-constructor-name, +.type-summary td.col-first, .type-summary th.col-first { + vertical-align:top; +} +.packages-summary th.col-last, .packages-summary td.col-last { + white-space:normal; +} +td.col-first a:link, td.col-first a:visited, +td.col-second a:link, td.col-second a:visited, +th.col-first a:link, th.col-first a:visited, +th.col-second a:link, th.col-second a:visited, +th.col-constructor-name a:link, th.col-constructor-name a:visited, +th.col-deprecated-item-name a:link, th.col-deprecated-item-name a:visited, +.constant-values-container td a:link, .constant-values-container td a:visited, +.all-classes-container td a:link, .all-classes-container td a:visited, +.all-packages-container td a:link, .all-packages-container td a:visited { + font-weight:bold; +} +.table-sub-heading-color { + background-color:#EEEEFF; +} +.alt-color, .alt-color th { + background-color:#FFFFFF; +} +.row-color, .row-color th { + background-color:#EEEEEF; +} +/* + * Styles for contents. + */ +.description pre { + margin-top:0; +} +.deprecated-content { + margin:0; + padding:10px 0; +} +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} +td.col-last div { + padding-top:0px; +} +td.col-last a { + padding-bottom:3px; +} +div.member-signature { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + margin:14px 0; + white-space: pre-wrap; +} +div.member-signature span.annotations { + white-space: pre-wrap; +} +div.member-signature span.type-parameters-long, +div.member-signature span.parameters, +div.member-signature span.exceptions { + display: inline-block; + vertical-align: top; + white-space: pre; +} +div.member-signature span.type-parameters { + white-space: normal; +} +/* + * Styles for formatting effect. + */ +.source-line-no { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:0 10px 5px 0; + color:#474747; +} +.deprecated-label, .descfrm-type-label, .implementation-label, .member-name-label, .member-name-link, +.module-label-in-package, .module-label-in-type, .override-specify-label, .package-label-in-type, +.package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link { + font-weight:bold; +} +.deprecation-comment, .help-footnote, .interface-name { + font-style:italic; +} +.deprecation-block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; + border-style:solid; + border-width:thin; + border-radius:10px; + padding:10px; + margin-bottom:10px; + margin-right:10px; + display:inline-block; +} +div.block div.deprecation-comment, div.block div.block span.emphasized-phrase, +div.block div.block span.interface-name { + font-style:normal; +} +/* + * Styles specific to HTML5 elements. + */ +main, nav, header, footer, section { + display:block; +} +/* + * Styles for javadoc search. + */ +.ui-autocomplete-category { + font-weight:bold; + font-size:15px; + padding:7px 0 7px 3px; + background-color:#4D7A97; + color:#FFFFFF; +} +.result-item { + font-size:13px; +} +.ui-autocomplete { + max-height:85%; + max-width:65%; + overflow-y:scroll; + overflow-x:scroll; + white-space:nowrap; + box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); +} +ul.ui-autocomplete { + position:fixed; + z-index:999999; +} +ul.ui-autocomplete li { + float:left; + clear:both; + width:100%; +} +.result-highlight { + font-weight:bold; +} +#search { + background-image:url('resources/glass.png'); + background-size:13px; + background-repeat:no-repeat; + background-position:2px 3px; + padding-left:20px; + position:relative; + right:-18px; + width:400px; +} +#reset { + background-color: rgb(255,255,255); + background-image:url('resources/x.png'); + background-position:center; + background-repeat:no-repeat; + background-size:12px; + border:0 none; + width:16px; + height:16px; + position:relative; + left:-4px; + top:-4px; + font-size:0px; +} +.watermark { + color:#545454; +} +.search-tag-desc-result { + font-style:italic; + font-size:11px; +} +.search-tag-holder-result { + font-style:italic; + font-size:12px; +} +.search-tag-result:target { + background-color:yellow; +} +.module-graph span { + display:none; + position:absolute; +} +.module-graph:hover span { + display:block; + margin: -100px 0 0 100px; + z-index: 1; +} +.inherited-list { + margin: 10px 0 10px 0; +} +section.description { + line-height: 1.4; +} +.summary section[class$="-summary"], .details section[class$="-details"], +.class-uses .detail, .serialized-class-details { + padding: 0px 20px 5px 10px; + border: 1px solid #ededed; + background-color: #f8f8f8; +} +.inherited-list, section[class$="-details"] .detail { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +.vertical-separator { + padding: 0 5px; +} +ul.help-section-list { + margin: 0; +} +/* + * Indicator icon for external links. + */ +main a[href*="://"]::after { + content:""; + display:inline-block; + background-image:url('data:image/svg+xml; utf8, \ + \ + \ + '); + background-size:100% 100%; + width:7px; + height:7px; + margin-left:2px; + margin-bottom:4px; +} +main a[href*="://"]:hover::after, +main a[href*="://"]:focus::after { + background-image:url('data:image/svg+xml; utf8, \ + \ + \ + '); +} + +/* + * Styles for user-provided tables. + * + * borderless: + * No borders, vertical margins, styled caption. + * This style is provided for use with existing doc comments. + * In general, borderless tables should not be used for layout purposes. + * + * plain: + * Plain borders around table and cells, vertical margins, styled caption. + * Best for small tables or for complex tables for tables with cells that span + * rows and columns, when the "striped" style does not work well. + * + * striped: + * Borders around the table and vertical borders between cells, striped rows, + * vertical margins, styled caption. + * Best for tables that have a header row, and a body containing a series of simple rows. + */ + +table.borderless, +table.plain, +table.striped { + margin-top: 10px; + margin-bottom: 10px; +} +table.borderless > caption, +table.plain > caption, +table.striped > caption { + font-weight: bold; + font-size: smaller; +} +table.borderless th, table.borderless td, +table.plain th, table.plain td, +table.striped th, table.striped td { + padding: 2px 5px; +} +table.borderless, +table.borderless > thead > tr > th, table.borderless > tbody > tr > th, table.borderless > tr > th, +table.borderless > thead > tr > td, table.borderless > tbody > tr > td, table.borderless > tr > td { + border: none; +} +table.borderless > thead > tr, table.borderless > tbody > tr, table.borderless > tr { + background-color: transparent; +} +table.plain { + border-collapse: collapse; + border: 1px solid black; +} +table.plain > thead > tr, table.plain > tbody tr, table.plain > tr { + background-color: transparent; +} +table.plain > thead > tr > th, table.plain > tbody > tr > th, table.plain > tr > th, +table.plain > thead > tr > td, table.plain > tbody > tr > td, table.plain > tr > td { + border: 1px solid black; +} +table.striped { + border-collapse: collapse; + border: 1px solid black; +} +table.striped > thead { + background-color: #E3E3E3; +} +table.striped > thead > tr > th, table.striped > thead > tr > td { + border: 1px solid black; +} +table.striped > tbody > tr:nth-child(even) { + background-color: #EEE +} +table.striped > tbody > tr:nth-child(odd) { + background-color: #FFF +} +table.striped > tbody > tr > th, table.striped > tbody > tr > td { + border-left: 1px solid black; + border-right: 1px solid black; +} +table.striped > tbody > tr > th { + font-weight: normal; +} diff --git a/tag-search-index.js b/tag-search-index.js new file mode 100644 index 0000000..0367dae --- /dev/null +++ b/tag-search-index.js @@ -0,0 +1 @@ +tagSearchIndex = [];updateSearchResults(); \ No newline at end of file diff --git a/type-search-index.js b/type-search-index.js new file mode 100644 index 0000000..c31008b --- /dev/null +++ b/type-search-index.js @@ -0,0 +1 @@ +typeSearchIndex = [{"p":"io.ipinfo.api.model","l":"Abuse"},{"l":"All Classes","u":"allclasses-index.html"},{"p":"io.ipinfo.api.model","l":"ASN"},{"p":"io.ipinfo.api.request","l":"ASNRequest"},{"p":"io.ipinfo.api.model","l":"ASNResponse"},{"p":"io.ipinfo.api.request","l":"BaseRequest"},{"p":"io.ipinfo.api","l":"IPinfo.BatchReqOpts"},{"p":"io.ipinfo.api","l":"IPinfo.BatchReqOpts.Builder"},{"p":"io.ipinfo.api","l":"IPinfo.Builder"},{"p":"io.ipinfo.api.cache","l":"Cache"},{"p":"io.ipinfo.api.model","l":"Carrier"},{"p":"io.ipinfo.api.model","l":"Company"},{"p":"io.ipinfo.api.context","l":"Context"},{"p":"io.ipinfo.api.model","l":"Domains"},{"p":"io.ipinfo.api.errors","l":"ErrorResponseException"},{"p":"io.ipinfo.api","l":"IPinfo"},{"p":"io.ipinfo.api.request","l":"IPRequest"},{"p":"io.ipinfo.api.model","l":"IPResponse"},{"p":"io.ipinfo.api.request","l":"MapRequest"},{"p":"io.ipinfo.api.model","l":"MapResponse"},{"p":"io.ipinfo.api.cache","l":"NoCache"},{"p":"io.ipinfo.api.model","l":"Prefix"},{"p":"io.ipinfo.api.model","l":"Privacy"},{"p":"io.ipinfo.api.errors","l":"RateLimitedException"},{"p":"io.ipinfo.api.cache","l":"SimpleCache"}];updateSearchResults(); \ No newline at end of file diff --git a/util/deploy_docs.sh b/util/deploy_docs.sh deleted file mode 100644 index cf67fe4..0000000 --- a/util/deploy_docs.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash - -set -e -u - -if [ "$TRAVIS_REPO_SLUG" == "google/guava" ] && \ - [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && \ - [ "$TRAVIS_PULL_REQUEST" == "false" ] && \ - [ "$TRAVIS_BRANCH" == "master" ]; then - echo "Publishing Javadoc and JDiff..." - - cd $HOME - git clone -q -b gh-pages https://${GH_TOKEN}@github.com/ipinfo/java-ipinfo gh-pages > /dev/null - cd gh-pages - - git config --global user.email "travis@travis-ci.org" - git config --global user.name "travis-ci" - - ./updaterelease.sh snapshot - - git push -fq origin gh-pages > /dev/null - - echo "Javadoc and JDiff published to gh-pages." -fi diff --git a/util/deploy_snapshot.sh b/util/deploy_snapshot.sh deleted file mode 100644 index 20fd08a..0000000 --- a/util/deploy_snapshot.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -set -e -u - -function mvn_deploy() { - mvn clean source:jar javadoc:jar deploy --settings="$(dirname $0)/settings.xml" -} - - -if [ "$TRAVIS_REPO_SLUG" == "google/guava" ] && \ - [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && \ - [ "$TRAVIS_PULL_REQUEST" == "false" ] && \ - [ "$TRAVIS_BRANCH" == "master" ]; then - echo "Publishing Maven snapshot..." - - mvn_deploy - echo "Maven snapshot published." -fi diff --git a/util/settings.xml b/util/settings.xml deleted file mode 100644 index ddfb1a2..0000000 --- a/util/settings.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - sonatype-nexus-snapshots - ${env.CI_DEPLOY_USERNAME} - ${env.CI_DEPLOY_PASSWORD} - - -