Class DelayInformation

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ELEMENT  
      static java.lang.String NAMESPACE  
      static javax.xml.namespace.QName QNAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      DelayInformation​(java.util.Date stamp)  
      DelayInformation​(java.util.Date stamp, java.lang.String from, java.lang.String reason)
      Creates a new instance with the specified timestamp.
    • Constructor Detail

      • DelayInformation

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

      • getFrom

        public java.lang.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 java.util.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 java.lang.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.
      • getFrom

        @Deprecated
        public static DelayInformation getFrom​(Stanza packet)
        Deprecated.
        use from(Stanza) instead
        Return delay information from the given stanza.
        Parameters:
        packet - TODO javadoc me please
        Returns:
        the DelayInformation 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