hudson.plugins.jabber.im.transport
Class JabberUtil

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

public class JabberUtil
extends java.lang.Object

Jabber related utility methods.

Author:
kutzi

Method Summary
static java.lang.String getDomainPart(java.lang.String jabberId)
          Returns the domain part of a jabber ID in the form: [@[/
static java.lang.String getResourcePart(java.lang.String jabberId)
          Returns the resource part of a jabber ID in the form: [@[/
static java.lang.String getUserPart(java.lang.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 java.lang.String getUserPart(java.lang.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 java.lang.String getDomainPart(java.lang.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 java.lang.String getResourcePart(java.lang.String jabberId)
Returns the resource part of a jabber ID in the form: [@[/
Returns:
the domain or null if no '@' and '/' was found


Copyright © 2011. All Rights Reserved.