Package cc.maria.rdap
Class RDAPClient
- java.lang.Object
-
- cc.maria.rdap.RDAPClient
-
public class RDAPClient extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private jakarta.ws.rs.client.Clientclientprivate StringserviceURL
-
Constructor Summary
Constructors Constructor Description RDAPClient()RDAPClient(jakarta.ws.rs.client.Client client)RDAPClient(String serviceURL)RDAPClient(String serviceURL, jakarta.ws.rs.client.Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetServiceURL(String object)Get the service URL for a given object.jakarta.ws.rs.client.WebTargetgetWebTarget(String object)ObjectClassquery(ObjectReference objectReference)AutnumObjectClassqueryAutnum(ObjectReference objectReference)DomainObjectClassqueryDomain(ObjectReference objectReference)EntityObjectClassqueryEntity(ObjectReference objectReference)IPNetworkObjectClassqueryIPNetwork(ObjectReference objectReference)private voidsetServiceURL(String serviceURL)
-
-
-
Field Detail
-
serviceURL
private String serviceURL
-
client
private final jakarta.ws.rs.client.Client client
-
-
Method Detail
-
setServiceURL
private void setServiceURL(String serviceURL)
-
getServiceURL
public String getServiceURL(String object)
Get the service URL for a given object. If the service URL is not set, the service URL will be looked up from the bootstrap registry. NOTE: RDAP servers can further redirect the client to another service URL. This method returns the first responsible service URL. TODO: Fix- Parameters:
object- The object to be looked up- Returns:
- The service URL responsible for the object
-
getWebTarget
public jakarta.ws.rs.client.WebTarget getWebTarget(String object)
-
query
public ObjectClass query(ObjectReference objectReference) throws RDAPException, com.fasterxml.jackson.core.JsonProcessingException
- Throws:
RDAPExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
queryAutnum
public AutnumObjectClass queryAutnum(ObjectReference objectReference) throws RDAPException, com.fasterxml.jackson.core.JsonProcessingException
- Throws:
RDAPExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
queryDomain
public DomainObjectClass queryDomain(ObjectReference objectReference) throws RDAPException, com.fasterxml.jackson.core.JsonProcessingException
- Throws:
RDAPExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
queryEntity
public EntityObjectClass queryEntity(ObjectReference objectReference) throws RDAPException, com.fasterxml.jackson.core.JsonProcessingException
- Throws:
RDAPExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
queryIPNetwork
public IPNetworkObjectClass queryIPNetwork(ObjectReference objectReference) throws RDAPException, com.fasterxml.jackson.core.JsonProcessingException
- Throws:
RDAPExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
-