Class OfferModule

    • Constructor Detail

      • OfferModule

        public OfferModule()
    • Method Detail

      • getFeatures

        public java.lang.String[] getFeatures()
        Description copied from interface: Module
        Returns XMPP features offered by module. Features will be returned by Service Discovery.
        Returns:
        array of features or null.
      • getModuleCriteria

        public Criteria getModuleCriteria()
        Description copied from interface: Module
        Returns critera used by Component to select module to handle incoming stanza.
        Returns:
        criteria of selecting module.
      • sendOfferRevoke

        public void sendOfferRevoke​(User user,
                                    Agent toAgent,
                                    java.lang.String reason)
                             throws TigaseStringprepException
        Send revocation of earlier offer to chat to a user.
        Parameters:
        user - user which offer is revoked.
        toAgent - agent to send revocation to him.
        reason - free form text explaining the reason the offer was revoked.
        Throws:
        TigaseStringprepException - in case of invalid JID.