@ Deprecated public void setTo ( String to ) { Jid jid ; try { jid = JidCreate . from ( to ) ; } catch ( XmppStringprepException e ) { throw new IllegalArgumentException ( e ) ; } setTo ( jid ) ; }
Sets who the stanza is being sent to . The XMPP protocol often makes the to attribute optional so it does not always need to be set .