Package org.jxmpp.stringprep
Class XmppStringPrepUtil
- java.lang.Object
-
- org.jxmpp.stringprep.XmppStringPrepUtil
-
public class XmppStringPrepUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description XmppStringPrepUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Stringdomainprep(String string)Perform domainprep on the input String.static Stringdomainprep(String string, JxmppContext context)Perform domainprep on the input String.static Stringlocalprep(String string)Perform 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.static voidsetXmppStringprep(XmppStringprep xmppStringprep)Deprecated.
-
-
-
Constructor Detail
-
XmppStringPrepUtil
public XmppStringPrepUtil()
-
-
Method Detail
-
setXmppStringprep
@Deprecated public static void setXmppStringprep(XmppStringprep xmppStringprep)
Deprecated.Set the XMPP Stringprep implementation to use.- Parameters:
xmppStringprep- the XMPP Stringprep implementation to use.
-
localprep
public static String localprep(String string) throws XmppStringprepException
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
public static String localprep(String string, JxmppContext context) throws XmppStringprepException
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
public static String domainprep(String string) throws XmppStringprepException
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
public static String domainprep(String string, JxmppContext context) throws XmppStringprepException
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
public static String resourceprep(String string) throws XmppStringprepException
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
public static void setMaxCacheSizes(int size)
Set the maximum cache sizes.- Parameters:
size- the maximum cache size.
-
-