Package uk.num.numlib.service
Class IndependentRecordLookupService
- java.lang.Object
-
- uk.num.numlib.service.IndependentRecordLookupService
-
public class IndependentRecordLookupService extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndependentRecordLookupService.LoadRecordResponse
-
Field Summary
Fields Modifier and Type Field Description static intMAX_SANE_NUMID_LENGTH
-
Constructor Summary
Constructors Constructor Description IndependentRecordLookupService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndependentRecordLookupService.LoadRecordResponseloadRecordFromIndependentZone(@NonNull java.lang.String numIdName, @NonNull java.lang.String path, int module, int timeoutMs)Loads a record content from the independent zone of the DNS.
-
-
-
Field Detail
-
MAX_SANE_NUMID_LENGTH
public static final int MAX_SANE_NUMID_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadRecordFromIndependentZone
public IndependentRecordLookupService.LoadRecordResponse loadRecordFromIndependentZone(@NonNull @NonNull java.lang.String numIdName, @NonNull @NonNull java.lang.String path, int module, int timeoutMs) throws NumInvalidParameterException, NumInvalidDNSQueryException, RrSetIncompleteException, RrSetNoHeadersException, RrSetHeaderFormatException
Loads a record content from the independent zone of the DNS. A null value is returned when the record is not available.- Parameters:
numIdName- NUM id name for the record (for example domain name)path- path of the record in the DNSmodule- module for the record to retrievetimeoutMs- maximum time allowed to retrieve the record- Returns:
- a LoadRecordResponse or null
- Throws:
NumInvalidParameterException- if any of the supplied parameters are out of an acceptable range (catch NumException to handle oll exceptions)NumInvalidDNSQueryException- if the parameters cannot be used to generated a valid DNS query (catch NumException to handle oll exceptions)RrSetIncompleteException- if the NUM record is invalid (catch NumException to handle oll exceptions)RrSetNoHeadersException- if the NUM record is invalid (catch NumException to handle oll exceptions)RrSetHeaderFormatException- if the NUM record is invalid (catch NumException to handle oll exceptions)
-
-