public class LibIdnXmppStringprep 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 LibIdnXmppStringprep |
getInstance()
Get the libidn Stringprep implementation 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 the libidn Stringprep implementation as active Stringprep implementation.
|
public static void setup()
public static LibIdnXmppStringprep 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.