com.valhalla.jbother.jabber
Class ParsedBuddyInfo

java.lang.Object
  extended bycom.valhalla.jbother.jabber.ParsedBuddyInfo

public class ParsedBuddyInfo
extends java.lang.Object

Parses a JID into its various parts

Version:
1.0
Author:
Adam Olsen

Constructor Summary
ParsedBuddyInfo(java.lang.String from)
          Creates the ParsedBuddyInfo and parses the information
 
Method Summary
 java.lang.String getBareAddress()
          Gets the address without the resource
 java.lang.String getResource()
          Gets the resource
 java.lang.String getServer()
          Gets the server that the user is on
 java.lang.String getUserId()
          Gets the user ID - without resource if this is not a transport or agent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParsedBuddyInfo

public ParsedBuddyInfo(java.lang.String from)
Creates the ParsedBuddyInfo and parses the information

Parameters:
from - the address to parse
Method Detail

getBareAddress

public java.lang.String getBareAddress()
Gets the address without the resource

Returns:
the bare XMPPP address without the resource

getUserId

public java.lang.String getUserId()
Gets the user ID - without resource if this is not a transport or agent

Returns:
the user id

getServer

public java.lang.String getServer()
Gets the server that the user is on

Returns:
the server the user is on

getResource

public java.lang.String getResource()
Gets the resource

Returns:
the resource, or an empty string if there isn't one or the user is an agent/transport