public final class SimpleXmppStringprep extends Object implements XmppStringprep
Modifier and Type | Method and Description |
---|---|
String |
domainprep(String string)
Performs String preparation on the domainpart String of a JID.
|
static SimpleXmppStringprep |
getInstance()
Get the Simple XMPP Stringprep singleton.
|
String |
localprep(String string)
Performs String preparation on the localpart String of a JID.
|
String |
resourceprep(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 String localprep(String string) throws XmppStringprepException
XmppStringprep
localprep
in interface XmppStringprep
string
- the String to transform.XmppStringprepException
- if there is an error.public String domainprep(String string) throws XmppStringprepException
XmppStringprep
domainprep
in interface XmppStringprep
string
- the String to transform.XmppStringprepException
- if there is an error.public String resourceprep(String string) throws XmppStringprepException
XmppStringprep
resourceprep
in interface XmppStringprep
string
- the String to transform.XmppStringprepException
- if there is an error.