From b8586148435a12d1b7ab227329d618b81c62c99c Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Sat, 21 Apr 2007 20:14:40 +0000 Subject: [PATCH] Javadoc. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@8087 b35dd754-fafc-0310-a699-88a17e54d16e --- .../org/jivesoftware/smack/packet/Packet.java | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/source/org/jivesoftware/smack/packet/Packet.java b/source/org/jivesoftware/smack/packet/Packet.java index 94851dc68..dc7f3d9ff 100644 --- a/source/org/jivesoftware/smack/packet/Packet.java +++ b/source/org/jivesoftware/smack/packet/Packet.java @@ -109,7 +109,14 @@ public abstract class Packet { /** * Returns who the packet is being sent "to", or null if * the value is not set. The XMPP protocol often makes the "to" - * attribute optional, so it does not always need to be set. + * attribute optional, so it does not always need to be set.

+ * + * The StringUtils class provides several useful methods for dealing with + * XMPP addresses such as parsing the + * {@link StringUtils#parseBareAddress(String) bare address}, + * {@link StringUtils#parseName(String) user name}, + * {@link StringUtils#parseServer(String) server}, and + * {@link StringUtils#parseResource(String) resource}. * * @return who the packet is being sent to, or null if the * value has not been set. @@ -131,10 +138,17 @@ public abstract class Packet { /** * Returns who the packet is being sent "from" or null if * the value is not set. The XMPP protocol often makes the "from" - * attribute optional, so it does not always need to be set. + * attribute optional, so it does not always need to be set.

+ * + * The StringUtils class provides several useful methods for dealing with + * XMPP addresses such as parsing the + * {@link StringUtils#parseBareAddress(String) bare address}, + * {@link StringUtils#parseName(String) user name}, + * {@link StringUtils#parseServer(String) server}, and + * {@link StringUtils#parseResource(String) resource}. * * @return who the packet is being sent from, or null if the - * valud has not been set. + * value has not been set. */ public String getFrom() { return from;