Package cc.maria.rdap.bootstrap
Class DomainBootstrapRegistry
- java.lang.Object
-
- cc.maria.rdap.bootstrap.DomainBootstrapRegistry
-
public class DomainBootstrapRegistry extends Object
RFC 9224-compliant wrapper around the IANA RDAP Bootstrap Service Registry for the Domain Name Space
-
-
Field Summary
Fields Modifier and Type Field Description private static HashMap<jakarta.ws.rs.client.Client,DomainBootstrapRegistry>instancesprivate HashMap<String,String>labelToServiceMap
-
Constructor Summary
Constructors Modifier Constructor Description privateDomainBootstrapRegistry(jakarta.ws.rs.client.Client client)privateDomainBootstrapRegistry(jakarta.ws.rs.client.Client client, String url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DomainBootstrapRegistrygetInstance(jakarta.ws.rs.client.Client client)Get current instance of the wrapperStringgetServiceURL(String label)Get the RDAP service URL for a given labelStringgetServiceURLForFQDN(String fqdn)Get the RDAP service URL for a given FQDNstatic DomainBootstrapRegistryrefresh(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,DomainBootstrapRegistry> instances
-
-
Constructor Detail
-
DomainBootstrapRegistry
private DomainBootstrapRegistry(jakarta.ws.rs.client.Client client) throws IOException- Throws:
IOException
-
DomainBootstrapRegistry
private DomainBootstrapRegistry(jakarta.ws.rs.client.Client client, String url)
-
-
Method Detail
-
getInstance
public static DomainBootstrapRegistry 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 DomainBootstrapRegistry 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
-
getServiceURL
public String getServiceURL(String label)
Get the RDAP service URL for a given label- Parameters:
label- label to look up- Returns:
- RDAP service URL
-
-