Package uk.num.numlib.api
Interface NumAPIContext
- All Known Implementing Classes:
NumAPIContextBase
public interface NumAPIContext
The context state for a given module and NUM ID combination
-
Method Summary
Modifier and Type Method Description NumAPICallbacks.LocationgetLocation()UserVariable[]getRequiredUserVariables()Get the user variables.booleanisDnsSecSigned()booleanisPopulatorQueryRequired()voidsetLocation(NumAPICallbacks.Location location)Used internally to set the NUM record retrieval location.voidsetPopulatorQueryRequired(boolean populatorQueryRequired)voidsetRequiredUserVariables(UserVariable[] userVariables)Update the required user variables with values obtained from the client.
-
Method Details
-
getRequiredUserVariables
UserVariable[] getRequiredUserVariables()Get the user variables.- Returns:
- UserVariable[]
-
setRequiredUserVariables
Update the required user variables with values obtained from the client.- Parameters:
userVariables- The UserVariable array with the value fields populated.
-
isPopulatorQueryRequired
boolean isPopulatorQueryRequired()- Returns:
- true if the library should query the Populator
-
setPopulatorQueryRequired
void setPopulatorQueryRequired(boolean populatorQueryRequired)- Parameters:
populatorQueryRequired- true if the library should query the Populator
-
getLocation
NumAPICallbacks.Location getLocation()- Returns:
- the location the record was retrieved from.
-
setLocation
Used internally to set the NUM record retrieval location.- Parameters:
location- the NumAPICallbacks.Location
-
isDnsSecSigned
boolean isDnsSecSigned()- Returns:
- true if the record was DNSSEC signed.
-