|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.util.JIDUtils
@Deprecated public abstract class JIDUtils
JIDUtils class contains static methods for JIDUtils
manipulation.
Created: Thu Jan 27 22:53:41 2005
| Constructor Summary | |
|---|---|
JIDUtils()
Deprecated. |
|
| Method Summary | |
|---|---|
static java.lang.String |
checkNickName(java.lang.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 java.lang.String |
getJID(java.lang.String nick,
java.lang.String domain,
java.lang.String resource)
Deprecated. getJID method builds valid JIDUtils string from given nick name,
domain and resource. |
static java.lang.String |
getNodeHost(java.lang.String jid)
Deprecated. Method getNodeHost parses given JIDUtils and returns node
domain part. |
static java.lang.String |
getNodeHostIP(java.lang.String jid)
Deprecated. Method getNodeHostIP parses given JIDUtils for node
domain part and then tries to resolve host IP address.. |
static java.lang.String |
getNodeID(java.lang.String jid)
Deprecated. Method getNodeID cuts off resource JIDUtils part
if exists and returns only node ID. |
static java.lang.String |
getNodeID(java.lang.String nick,
java.lang.String domain)
Deprecated. This is static method to construct user ID from given JIDUtils parts. |
static java.lang.String |
getNodeNick(java.lang.String jid)
Deprecated. Method getNodeNick parses given JIDUtils and returns
node nick name or empty string if nick name could not be found. |
static java.lang.String |
getNodeResource(java.lang.String jid)
Deprecated. Method getNodeID parses given JIDUtils and returns
resource part of given JIDUtils or empty string if there
was no resource part. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JIDUtils()
| Method Detail |
|---|
public static final java.lang.String getNodeID(java.lang.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 java.lang.String getNodeResource(java.lang.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.public static final java.lang.String getNodeHost(java.lang.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 java.lang.String getNodeHostIP(java.lang.String jid)
throws java.net.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.
java.net.UnknownHostExceptionpublic static final java.lang.String getNodeNick(java.lang.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 java.lang.String getNodeID(java.lang.String nick,
java.lang.String domain)
nick - a String value of node part of JIDUtils.domain - a String value of domain part of JIDUtils.
public static final java.lang.String getJID(java.lang.String nick,
java.lang.String domain,
java.lang.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 java.lang.String checkNickName(java.lang.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||