Package io.rdapapi.client
Class RdapClient
java.lang.Object
io.rdapapi.client.RdapClient
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionRdapClient(String apiKey) RdapClient(String apiKey, RdapClientOptions options) -
Method Summary
Modifier and TypeMethodDescriptionasn(int number) bulkDomains(List<String> domains) bulkDomains(List<String> domains, DomainOptions options) voidclose()domain(String name, DomainOptions options) nameserver(String host) ping()Liveness probe for uptime monitoring.tld(String tld, TldOptions options) Return catalog metadata for a single TLD.tlds()tlds(TldsOptions options) List every TLD the API can resolve, over RDAP or the WHOIS fallback.
-
Constructor Details
-
RdapClient
-
RdapClient
-
-
Method Details
-
domain
- Throws:
IOExceptionInterruptedException
-
domain
public DomainResponse domain(String name, DomainOptions options) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
ping
Liveness probe for uptime monitoring.Sent with your API key like every other call, but makes no upstream RDAP call and never counts against your quota.
- Throws:
IOExceptionInterruptedException
-
ip
- Throws:
IOExceptionInterruptedException
-
asn
- Throws:
IOExceptionInterruptedException
-
asn
- Throws:
IOExceptionInterruptedException
-
nameserver
- Throws:
IOExceptionInterruptedException
-
entity
- Throws:
IOExceptionInterruptedException
-
tlds
- Throws:
IOExceptionInterruptedException
-
tlds
List every TLD the API can resolve, over RDAP or the WHOIS fallback.Does not count against the monthly quota. Returns
nullwhenTldsOptions.ifNoneMatch(String)is provided and matches the server's current ETag (HTTP 304). Otherwise returns aTldListResponsewhoseTldListResponse.getEtag()can be passed back on a later call to skip unchanged transfers.- Throws:
IOExceptionInterruptedException
-
tld
- Throws:
IOExceptionInterruptedException
-
tld
Return catalog metadata for a single TLD.Does not count against the monthly quota. Returns
nullon HTTP 304. ThrowsNotFoundExceptionwhen no RDAP server is registered for the TLD.- Throws:
IOExceptionInterruptedException
-
bulkDomains
public BulkDomainResponse bulkDomains(List<String> domains) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
bulkDomains
public BulkDomainResponse bulkDomains(List<String> domains, DomainOptions options) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-