Package cc.maria.rdap.bootstrap
Class IPv4BootstrapRegistry
- java.lang.Object
-
- cc.maria.rdap.bootstrap.IPv4BootstrapRegistry
-
public class IPv4BootstrapRegistry 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,IPv4BootstrapRegistry>instancesprivate HashMap<inet.ipaddr.IPAddressString,String>subnetsToServiceMap
-
Constructor Summary
Constructors Modifier Constructor Description privateIPv4BootstrapRegistry(jakarta.ws.rs.client.Client client)privateIPv4BootstrapRegistry(jakarta.ws.rs.client.Client client, String url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IPv4BootstrapRegistrygetInstance(jakarta.ws.rs.client.Client client)Get current instance of the wrapperStringgetServiceURLForIP(String ip)Get the RDAP service URL for a given IPv4 addressstatic IPv4BootstrapRegistryrefresh(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,IPv4BootstrapRegistry> instances
-
-
Constructor Detail
-
IPv4BootstrapRegistry
private IPv4BootstrapRegistry(jakarta.ws.rs.client.Client client) throws IOException- Throws:
IOException
-
IPv4BootstrapRegistry
private IPv4BootstrapRegistry(jakarta.ws.rs.client.Client client, String url)
-
-
Method Detail
-
getInstance
public static IPv4BootstrapRegistry getInstance(jakarta.ws.rs.client.Client client)
Get current instance of the wrapper- Parameters:
client- HTTP client for fetching bootstrap data- Returns:
- IPv4BootstrapRegistry instance
-
refresh
public static IPv4BootstrapRegistry 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:
- IPv4BootstrapRegistry instance
-
-