Package org.jxmpp.stringprep.icu4j
Class Icu4jXmppStringprep
- java.lang.Object
-
- org.jxmpp.stringprep.icu4j.Icu4jXmppStringprep
-
- All Implemented Interfaces:
XmppStringprep
public class Icu4jXmppStringprep extends Object implements XmppStringprep
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
domainprep(String string)
Performs String preparation on the domainpart String of a JID.static Icu4jXmppStringprep
getInstance()
Get the ICU4J 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 ICU4J Stringprep implementation as active Stringprep implementation.
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setup
public static void setup()
Setup the ICU4J Stringprep implementation as active Stringprep implementation.
-
getInstance
public static Icu4jXmppStringprep getInstance()
Get the ICU4J Stringprep implementation singleton.- Returns:
- the ICU4J Stringprep implementation.
-
localprep
public String localprep(String string) throws XmppStringprepException
Description copied from interface:XmppStringprep
Performs String preparation on the localpart String of a JID. In RFC 6122 terms this means applying the nodeprep profile of Stringprep.- Specified by:
localprep
in interfaceXmppStringprep
- Parameters:
string
- the String to transform.- Returns:
- the prepared String.
- Throws:
XmppStringprepException
- if there is an error.
-
domainprep
public String domainprep(String string) throws XmppStringprepException
Description copied from interface:XmppStringprep
Performs String preparation on the domainpart String of a JID. In RFC 61ss terms, this means applying the nameprep profile of Stringprep.- Specified by:
domainprep
in interfaceXmppStringprep
- Parameters:
string
- the String to transform.- Returns:
- the prepared String.
- Throws:
XmppStringprepException
- if there is an error.
-
resourceprep
public String resourceprep(String string) throws XmppStringprepException
Description copied from interface:XmppStringprep
Performs String preparation on the resourcepart String of a JID. In RFC 6122 terms this means applying the resourceprep profile of Stringprep.- Specified by:
resourceprep
in interfaceXmppStringprep
- Parameters:
string
- the String to transform.- Returns:
- the prepared String.
- Throws:
XmppStringprepException
- if there is an error.
-
-