Class ASNBootstrapRegistry


  • public class ASNBootstrapRegistry
    extends Object
    RFC 9224-compliant wrapper around the IANA RDAP Bootstrap Service Registry for ASN allocations
    • Constructor Detail

      • ASNBootstrapRegistry

        private ASNBootstrapRegistry​(jakarta.ws.rs.client.Client client)
                              throws IOException
        Throws:
        IOException
      • ASNBootstrapRegistry

        private ASNBootstrapRegistry​(jakarta.ws.rs.client.Client client,
                                     String url)
    • Method Detail

      • getInstance

        public static ASNBootstrapRegistry getInstance​(jakarta.ws.rs.client.Client client)
        Get current instance of the wrapper
        Parameters:
        client - HTTP client for fetching bootstrap data
        Returns:
        ASNBootstrapRegistry instance
      • refresh

        public static ASNBootstrapRegistry 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:
        ASNBootstrapRegistry instance
      • getServiceURLForASN

        public String getServiceURLForASN​(String asn)
        Get the RDAP service URL for a given ASN
        Parameters:
        asn - ASN to look up
        Returns:
        RDAP service URL
      • getServiceURLForASN

        public String getServiceURLForASN​(Integer asn)
        Get the RDAP service URL for a given ASN
        Parameters:
        asn - ASN to look up
        Returns:
        RDAP service URL