Package cc.maria.rdap.bootstrap
Class EntityBootstrapRegistry
- java.lang.Object
-
- cc.maria.rdap.bootstrap.EntityBootstrapRegistry
-
public class EntityBootstrapRegistry extends Object
RFC 8521-compliant wrapper around the IANA RDAP Bootstrap Service Registry for Entities
-
-
Field Summary
Fields Modifier and Type Field Description private static HashMap<jakarta.ws.rs.client.Client,EntityBootstrapRegistry>instancesprivate HashMap<String,String>tagToServiceMap
-
Constructor Summary
Constructors Modifier Constructor Description privateEntityBootstrapRegistry(jakarta.ws.rs.client.Client client)privateEntityBootstrapRegistry(jakarta.ws.rs.client.Client client, String url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EntityBootstrapRegistrygetInstance(jakarta.ws.rs.client.Client client)Get current instance of the wrapperStringgetServiceURL(String tag)Get the RDAP service URL for a given tagStringgetServiceURLForHandle(String handle)Get the RDAP service URL for a given handlestatic EntityBootstrapRegistryrefresh(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,EntityBootstrapRegistry> instances
-
-
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
-
-