Class SeeOtherHostDB

All Implemented Interfaces:
Initializable, RegistrarBean, Lifecycle, SeeOtherHostIfc

public class SeeOtherHostDB extends SeeOtherHostHashed implements RegistrarBean
Extended implementation of SeeOtherHost using redirect information from database
  • Field Details

  • Constructor Details

    • SeeOtherHostDB

      public SeeOtherHostDB()
  • Method Details

    • 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
    • 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