Class ModuleDNSQueries


  • public final class ModuleDNSQueries
    extends java.lang.Object
    Class to hold the DNS query strings for a module and NUM ID combination.
    • Constructor Detail

      • ModuleDNSQueries

        public ModuleDNSQueries​(@NonNull
                                @NonNull NonBlankString moduleId,
                                @NonNull
                                @NonNull NonBlankString numId)
        Constructor
        Parameters:
        moduleId - the module ID string
        numId - the NUM ID.
    • Method Detail

      • initialise

        public void initialise​(AppContext appContext)
                        throws java.net.MalformedURLException
        Build the DNS query Strings and set the root/branch flag.
        Parameters:
        appContext - An AppContext object
        Throws:
        java.net.MalformedURLException - on error
      • setEmailRecordDistributionLevels

        public void setEmailRecordDistributionLevels​(AppContext appContext,
                                                     int levels)
        A Zone Distribution Record has been found so we need to update the email lookups accordingly.
        Parameters:
        appContext - the AppContext
        levels - the number of levels to use for zone distribution
      • redirectHostedPath

        public void redirectHostedPath​(java.lang.String path)
                                throws NumInvalidRedirectException
        Set the hosted record to the specified path
        Parameters:
        path - the path String
        Throws:
        NumInvalidRedirectException - if the redirect attempts to redirect outside the root record
      • redirectIndependentPath

        public void redirectIndependentPath​(java.lang.String path)
                                     throws NumInvalidRedirectException
        Set the independent record to the specified path
        Parameters:
        path - the path String
        Throws:
        NumInvalidRedirectException - if the redirect attempts to redirect outside the root record