Class DelayInformation

    • Constructor Detail

      • DelayInformation

        public DelayInformation​(Date stamp,
                                String from,
                                String reason)
        Creates a new instance with the specified timestamp.
        Parameters:
        stamp - the timestamp
        from - sender
        reason - reason of delay.
    • Method Detail

      • getFrom

        public String getFrom()
        Returns the JID of the entity that originally sent the stanza or that delayed the delivery of the stanza or null if this information is not available.
        Returns:
        the JID of the entity that originally sent the stanza or that delayed the delivery of the packet.
      • getStamp

        public Date getStamp()
        Returns the timestamp when the stanza was originally sent. The returned Date is be understood as UTC.
        Returns:
        the timestamp when the stanza was originally sent.
      • getReason

        public String getReason()
        Returns a natural-language description of the reason for the delay or null if this information is not available.
        Returns:
        a natural-language description of the reason for the delay or null.
      • from

        public static DelayInformation from​(Stanza packet)
        Return delay information from the given stanza.
        Parameters:
        packet - TODO javadoc me please
        Returns:
        the DelayInformation or null