Package cc.maria.rdap.bootstrap
Class IPv6BootstrapRegistry
- java.lang.Object
-
- cc.maria.rdap.bootstrap.IPv6BootstrapRegistry
-
public class IPv6BootstrapRegistry extends Object
RFC 9224-compliant wrapper around the IANA RDAP Bootstrap Service Registry for the IPv4 address space
-
-
Field Summary
Fields Modifier and Type Field Description private static HashMap<jakarta.ws.rs.client.Client,IPv6BootstrapRegistry>instancesprivate HashMap<inet.ipaddr.IPAddressString,String>subnetsToServiceMap
-
Constructor Summary
Constructors Modifier Constructor Description privateIPv6BootstrapRegistry(jakarta.ws.rs.client.Client client)privateIPv6BootstrapRegistry(jakarta.ws.rs.client.Client client, String url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IPv6BootstrapRegistrygetInstance(jakarta.ws.rs.client.Client client)Get current instance of the wrapperStringgetServiceURLForIP(String ip)Get the RDAP service URL for a given ASNstatic IPv6BootstrapRegistryrefresh(jakarta.ws.rs.client.Client client)Throw away the current instance and get a new one with updated bootstrap data
-
-
-
Field Detail
-
instances
private static HashMap<jakarta.ws.rs.client.Client,IPv6BootstrapRegistry> instances
-
-
Constructor Detail
-
IPv6BootstrapRegistry
private IPv6BootstrapRegistry(jakarta.ws.rs.client.Client client) throws IOException- Throws:
IOException
-
IPv6BootstrapRegistry
private IPv6BootstrapRegistry(jakarta.ws.rs.client.Client client, String url)
-
-
Method Detail
-
getInstance
public static IPv6BootstrapRegistry getInstance(jakarta.ws.rs.client.Client client)
Get current instance of the wrapper- Parameters:
client- HTTP client for fetching bootstrap data- Returns:
- DomainBootstrapRegistry instance
-
refresh
public static IPv6BootstrapRegistry refresh(jakarta.ws.rs.client.Client client)
Throw away the current instance and get a new one with updated bootstrap data- Parameters:
client- HTTP client for fetching bootstrap data- Returns:
- DomainBootstrapRegistry instance
-
-