Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jabber.jabberbeans
Class UserURI  view UserURI download UserURI.java

java.lang.Object
  extended byorg.jabber.jabberbeans.User
      extended byorg.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 $

Field Summary
protected  java.lang.String resource
           
 
Fields inherited from class org.jabber.jabberbeans.User
server, username
 
Constructor Summary
UserURI(java.lang.String username, java.net.InetAddress server, java.lang.String resource)
           
UserURI(User u, java.lang.String resource)
           
 
Method Summary
static UserURI parseToURI(java.lang.String initial)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class org.jabber.jabberbeans.User
equals, getServer, getUsername
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resource

protected java.lang.String resource
Constructor Detail

UserURI

public UserURI(User u,
               java.lang.String resource)

UserURI

public UserURI(java.lang.String username,
               java.net.InetAddress server,
               java.lang.String resource)
Method Detail

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