Class EntityBootstrapRegistry


  • public class EntityBootstrapRegistry
    extends Object
    RFC 8521-compliant wrapper around the IANA RDAP Bootstrap Service Registry for Entities
    • Constructor Detail

      • EntityBootstrapRegistry

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

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

      • getInstance

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

        public static EntityBootstrapRegistry 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:
        EntityBootstrapRegistry instance
      • getServiceURL

        public String getServiceURL​(String tag)
        Get the RDAP service URL for a given tag
        Parameters:
        tag - tag to look up
        Returns:
        RDAP service URL
      • getServiceURLForHandle

        public String getServiceURLForHandle​(String handle)
        Get the RDAP service URL for a given handle
        Parameters:
        handle - Handle to look up
        Returns:
        RDAP service URL