Package org.jxmpp.stringprep.libidn
Class LibIdnXmppStringprep
java.lang.Object
org.jxmpp.stringprep.libidn.LibIdnXmppStringprep
- All Implemented Interfaces:
XmppStringprep
XMPP string preparation using libidn.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondomainprep(String string) Performs String preparation on the domainpart String of a JID.static LibIdnXmppStringprepGet the libidn Stringprep implementation singleton.Performs String preparation on the localpart String of a JID.resourceprep(String string) Performs String preparation on the resourcepart String of a JID.static voidsetup()Setup the libidn Stringprep implementation as active Stringprep implementation.
-
Field Details
-
NAME
The name of the stringprep implementation.- See Also:
-
-
Method Details
-
setup
Setup the libidn Stringprep implementation as active Stringprep implementation. -
getInstance
Get the libidn Stringprep implementation singleton.- Returns:
- the libidn Stringprep implementation.
-
localprep
Description copied from interface:XmppStringprepPerforms String preparation on the localpart String of a JID. In RFC 6122 terms this means applying the nodeprep profile of Stringprep.- Specified by:
localprepin interfaceXmppStringprep- Parameters:
string- the String to transform.- Returns:
- the prepared String.
- Throws:
XmppStringprepException- if there is an error.
-
domainprep
Description copied from interface:XmppStringprepPerforms String preparation on the domainpart String of a JID. In RFC 61ss terms, this means applying the nameprep profile of Stringprep.- Specified by:
domainprepin interfaceXmppStringprep- Parameters:
string- the String to transform.- Returns:
- the prepared String.
- Throws:
XmppStringprepException- if there is an error.
-
resourceprep
Description copied from interface:XmppStringprepPerforms String preparation on the resourcepart String of a JID. In RFC 6122 terms this means applying the resourceprep profile of Stringprep.- Specified by:
resourceprepin interfaceXmppStringprep- Parameters:
string- the String to transform.- Returns:
- the prepared String.
- Throws:
XmppStringprepException- if there is an error.
-