java.lang.Object
org.jabber.jabberbeans.User
org.jabber.jabberbeans.UserURI
- public class UserURI
- extends User
UserURI is a subclass of user which allows for one resource to be
specified. This makes it a complete URI.
- Version:
- $Revision: 1.1 $
resource
protected java.lang.String resource
UserURI
public UserURI(User u,
java.lang.String resource)
UserURI
public UserURI(java.lang.String username,
java.net.InetAddress server,
java.lang.String resource)
parseToURI
public static UserURI parseToURI(java.lang.String initial)
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
- Overrides:
toString in class User