@Deprecated public abstract class JIDUtils extends Object
JIDUtils class contains static methods for JIDUtils manipulation.
Created: Thu Jan 27 22:53:41 2005
| Constructor and Description |
|---|
JIDUtils()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
checkNickName(String nickname)
Deprecated.
checkNickName method checks whether given string is a valid nick name: not null, not zero length,
doesn't contain invalid characters. |
static String |
getJID(String nick,
String domain,
String resource)
Deprecated.
getJID method builds valid JIDUtils string from given nick name, domain and resource. |
static String |
getNodeHost(String jid)
Deprecated.
Method
getNodeHost parses given JIDUtils and returns node domain part. |
static String |
getNodeHostIP(String jid)
Deprecated.
Method
getNodeHostIP parses given JIDUtils for node domain part and then tries to
resolve host IP address.. |
static String |
getNodeID(String jid)
Deprecated.
Method
getNodeID cuts off resource JIDUtils part if exists and returns only node
ID. |
static String |
getNodeID(String nick,
String domain)
Deprecated.
This is static method to construct user ID from given JIDUtils parts.
|
static String |
getNodeNick(String jid)
Deprecated.
Method
getNodeNick parses given JIDUtils and returns node nick name or empty string if nick
name could not be found. |
static String |
getNodeResource(String jid)
Deprecated.
Method
getNodeID parses given JIDUtils and returns resource part of given
JIDUtils or empty string if there was no resource part. |
public static final String checkNickName(String nickname)
checkNickName method checks whether given string is a valid nick name: not null, not zero length,
doesn't contain invalid characters.nickname - a String value of nick name to validate.String value null if nick name is correct otherwise text with description of
the problem.public static final String getJID(String nick, String domain, String resource)
getJID method builds valid JIDUtils string from given nick name, domain and resource. It is aware of
the fact that some elements might be null and then they are not included in JIDUtils.
domain musn't be null however.nick - a String value of JIDUtils's nick name. null allowed.domain - a String value of JIDUtils's domain name. null not
allowed.resource - a String value of JIDUtils's resource.String valuepublic static final String getNodeHost(String jid)
getNodeHost parses given JIDUtils and returns node domain part.jid - a String value of JIDUtils to parse.String value of node domain part.public static final String getNodeHostIP(String jid) throws UnknownHostException
getNodeHostIP parses given JIDUtils for node domain part and then tries to
resolve host IP address..jid - a String value of JIDUtils to parse.String value of node domain IP address.UnknownHostExceptionpublic static final String getNodeID(String jid)
getNodeID cuts off resource JIDUtils part if exists and returns only node
ID.jid - a String value of JIDUtils to parse.String value of node ID without resource part.public static final String getNodeID(String nick, String domain)
nick - a String value of node part of JIDUtils.domain - a String value of domain part of JIDUtils.public static final String getNodeNick(String jid)
getNodeNick parses given JIDUtils and returns node nick name or empty string if nick
name could not be found.jid - a String value of JIDUtils to parse.String value of node nick name or empty string.public static final String getNodeResource(String jid)
getNodeID parses given JIDUtils and returns resource part of given
JIDUtils or empty string if there was no resource part.jid - a String value of JIDUtils to parse.String value of node Resource or empty string.Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.