Package org.jxmpp.stringprep
Class XmppStringPrepUtil
java.lang.Object
org.jxmpp.stringprep.XmppStringPrepUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringdomainprep(String string) Perform domainprep on the input String.static Stringdomainprep(String string, JxmppContext context) Perform domainprep on the input String.static StringPerform localprep on the input String.static Stringlocalprep(String string, JxmppContext context) Perform localprep on the input String.static Stringresourceprep(String string) Perform resourceprep on the input String.static Stringresourceprep(String string, JxmppContext context) Perform resourceprep on the input String.static voidsetMaxCacheSizes(int size) Set the maximum cache sizes.
-
Constructor Details
-
XmppStringPrepUtil
public XmppStringPrepUtil()
-
-
Method Details
-
localprep
Perform localprep on the input String.- Parameters:
string- the input String.- Returns:
- the localpreped String.
- Throws:
XmppStringprepException- if the input String can not be transformed.
-
localprep
Perform localprep on the input String.- Parameters:
string- the input String.context- the JXMPP JID context.- Returns:
- the localpreped String.
- Throws:
XmppStringprepException- if the input String can not be transformed.
-
domainprep
Perform domainprep on the input String.- Parameters:
string- the input String.- Returns:
- the domainprep String.
- Throws:
XmppStringprepException- if the input String can not be transformed.
-
domainprep
Perform domainprep on the input String.- Parameters:
string- the input String.context- the JXMPP JID context.- Returns:
- the domainprep String.
- Throws:
XmppStringprepException- if the input String can not be transformed.
-
resourceprep
Perform resourceprep on the input String.- Parameters:
string- the input String.- Returns:
- the resourceprep String.
- Throws:
XmppStringprepException- if the input String can not be transformed.
-
resourceprep
public static String resourceprep(String string, JxmppContext context) throws XmppStringprepException Perform resourceprep on the input String.- Parameters:
string- the input String.context- the JXMPP JID context.- Returns:
- the resourceprep String.
- Throws:
XmppStringprepException- if the input String can not be transformed.
-
setMaxCacheSizes
Set the maximum cache sizes.- Parameters:
size- the maximum cache size.
-