Class DomainBootstrapRegistry


  • public class DomainBootstrapRegistry
    extends Object
    RFC 9224-compliant wrapper around the IANA RDAP Bootstrap Service Registry for the Domain Name Space
    • 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
      • getServiceURLForFQDN

        public String getServiceURLForFQDN​(String fqdn)
        Get the RDAP service URL for a given FQDN
        Parameters:
        fqdn - FQDN to look up
        Returns:
        RDAP service URL