hudson.plugins.jabber.im.transport
Class JabberUtil

java.lang.Object
  extended by hudson.plugins.jabber.im.transport.JabberUtil

public class JabberUtil
extends Object

Jabber related utility methods.

Author:
kutzi

Method Summary
static String getDomainPart(String jabberId)
          Returns the domain part of a jabber ID in the form: [@[/
static String getResourcePart(String jabberId)
          Returns the resource part of a jabber ID in the form: [@[/
static String getUserPart(String jabberId)
          Returns the user part (aka.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUserPart

public static String getUserPart(String jabberId)
Returns the user part (aka. 'node') of a jabber ID in the form: [@[/
Returns:
the part before '@' or jabberId unchanged if '@' was not found

getDomainPart

public static String getDomainPart(String jabberId)
Returns the domain part of a jabber ID in the form: [@[/
Returns:
the domain or null if no '@' was found

getResourcePart

public static String getResourcePart(String jabberId)
Returns the resource part of a jabber ID in the form: [@[/
Returns:
the domain or null if no '@' and '/' was found


Copyright © 2004-2012. All Rights Reserved.