Class SeeOtherHostDualIP

    • Field Detail

      • SEE_OTHER_HOST_FALLBACK_REDIRECTION_KEY

        public static final java.lang.String SEE_OTHER_HOST_FALLBACK_REDIRECTION_KEY
        See Also:
        Constant Field Values
      • SEE_OTHER_HOST_DATA_SOURCE_KEY

        public static final java.lang.String SEE_OTHER_HOST_DATA_SOURCE_KEY
        See Also:
        Constant Field Values
      • SEE_OTHER_HOST_DATA_SOURCE_VALUE

        public static final java.lang.String SEE_OTHER_HOST_DATA_SOURCE_VALUE
      • SEE_OTHER_HOST_DB_URL_KEY

        public static final java.lang.String SEE_OTHER_HOST_DB_URL_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • SeeOtherHostDualIP

        public SeeOtherHostDualIP()
    • Method Detail

      • findHostForJID

        public BareJID findHostForJID​(BareJID jid,
                                      BareJID host)
        Description copied from interface: SeeOtherHostIfc
        Finds an appropriate host for a given JID
        Specified by:
        findHostForJID in interface SeeOtherHostIfc
        Overrides:
        findHostForJID in class SeeOtherHostHashed
        Parameters:
        jid - is a user JID extracted from the stream open attributes
        host - is "this" host to which the user is now connected and which calls the method
        Returns:
        BareJID of possible host to which the user should connect or NULL
      • isRedirectionRequired

        public boolean isRedirectionRequired​(BareJID defaultHost,
                                             BareJID redirectionHost)
        Description copied from interface: SeeOtherHostIfc
        Method validates whether a redirection for a particular hostname and resulting redirection hastname is required
        Specified by:
        isRedirectionRequired in interface SeeOtherHostIfc
        Parameters:
        defaultHost - default hostname of the particular machine
        redirectionHost - destination hostname
        Returns:
        true if the redirection is required, otherwise false
      • register

        public void register​(Kernel kernel)
        Description copied from interface: RegistrarBean
        Method called when bean is being registered allowing developer to programatically register other beans.
        Specified by:
        register in interface RegistrarBean
        Parameters:
        kernel - - instance from local scope
      • unregister

        public void unregister​(Kernel kernel)
        Description copied from interface: RegistrarBean
        Method called while bean is being unregistered.
        Specified by:
        unregister in interface RegistrarBean
        Parameters:
        kernel - - instance from local scope
      • reloadRedirection

        protected void reloadRedirection()