public final class SimpleXmppStringprep extends java.lang.Object implements XmppStringprep
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
domainprep(java.lang.String string)
Performs String preparation on the domainpart String of a JID.
|
static SimpleXmppStringprep |
getInstance()
Get the Simple XMPP Stringprep singleton.
|
java.lang.String |
localprep(java.lang.String string)
Performs String preparation on the localpart String of a JID.
|
java.lang.String |
resourceprep(java.lang.String string)
Performs String preparation on the resourcepart String of a JID.
|
static void |
setup()
Setup Simple XMPP Stringprep as implementation to use.
|
public static void setup()
public static SimpleXmppStringprep getInstance()
public java.lang.String localprep(java.lang.String string)
throws XmppStringprepException
XmppStringpreplocalprep in interface XmppStringprepstring - the String to transform.XmppStringprepException - if there is an error.public java.lang.String domainprep(java.lang.String string)
throws XmppStringprepException
XmppStringprepdomainprep in interface XmppStringprepstring - the String to transform.XmppStringprepException - if there is an error.public java.lang.String resourceprep(java.lang.String string)
throws XmppStringprepException
XmppStringprepresourceprep in interface XmppStringprepstring - the String to transform.XmppStringprepException - if there is an error.