Package org.jxmpp.stringprep
Class XmppStringPrepUtil
java.lang.Object
org.jxmpp.stringprep.XmppStringPrepUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
domainprep
(String string) Perform domainprep on the input String.static String
domainprep
(String string, JxmppContext context) Perform domainprep on the input String.static String
Perform localprep on the input String.static String
localprep
(String string, JxmppContext context) Perform localprep on the input String.static String
resourceprep
(String string) Perform resourceprep on the input String.static String
resourceprep
(String string, JxmppContext context) Perform resourceprep on the input String.static void
setMaxCacheSizes
(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.
-