Package org.jxmpp.stringprep
Class XmppStringPrepUtil
- java.lang.Object
-
- org.jxmpp.stringprep.XmppStringPrepUtil
-
public class XmppStringPrepUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XmppStringPrepUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringdomainprep(java.lang.String string)Perform domainprep on the input String.static java.lang.Stringdomainprep(java.lang.String string, JxmppContext context)Perform domainprep on the input String.static java.lang.Stringlocalprep(java.lang.String string)Perform localprep on the input String.static java.lang.Stringlocalprep(java.lang.String string, JxmppContext context)Perform localprep on the input String.static java.lang.Stringresourceprep(java.lang.String string)Perform resourceprep on the input String.static java.lang.Stringresourceprep(java.lang.String string, JxmppContext context)Perform resourceprep on the input String.static voidsetMaxCacheSizes(int size)Set the maximum cache sizes.
-
-
-
Method Detail
-
localprep
public static java.lang.String localprep(java.lang.String string) throws XmppStringprepExceptionPerform 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 java.lang.String localprep(java.lang.String string, JxmppContext context) throws XmppStringprepExceptionPerform 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 java.lang.String domainprep(java.lang.String string) throws XmppStringprepExceptionPerform 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 java.lang.String domainprep(java.lang.String string, JxmppContext context) throws XmppStringprepExceptionPerform 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 java.lang.String resourceprep(java.lang.String string) throws XmppStringprepExceptionPerform 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 java.lang.String resourceprep(java.lang.String string, JxmppContext context) throws XmppStringprepExceptionPerform 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.
-
-