public static String addTo ( Message message ) { if ( message . getStanzaId ( ) == null ) { message . setStanzaId ( StanzaIdUtil . newStanzaId ( ) ) ; } message . addExtension ( new DeliveryReceiptRequest ( ) ) ; return message . getStanzaId ( ) ; }
Add a delivery receipt request to an outgoing packet .