Class IPv6BootstrapRegistry


  • public class IPv6BootstrapRegistry
    extends Object
    RFC 9224-compliant wrapper around the IANA RDAP Bootstrap Service Registry for the IPv4 address space
    • 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
      • getServiceURLForIP

        public String getServiceURLForIP​(String ip)
        Get the RDAP service URL for a given ASN
        Parameters:
        ip - IP address to look up
        Returns:
        RDAP service URL