Package org.jxmpp.stringprep
Interface XmppStringprep
- All Known Implementing Classes:
Icu4jXmppStringprep
,LibIdnXmppStringprep
,RocksXmppPrecisStringprep
,SimpleXmppStringprep
public interface XmppStringprep
Interface for commonly used Stringprep operations used in XMPP.
The relevant RFCs are:
-
Method Summary
Modifier and TypeMethodDescriptiondomainprep
(String string) Performs String preparation on the domainpart String of a JID.Performs String preparation on the localpart String of a JID.resourceprep
(String string) Performs String preparation on the resourcepart String of a JID.
-
Method Details
-
localprep
Performs String preparation on the localpart String of a JID. In RFC 6122 terms this means applying the nodeprep profile of Stringprep.- Parameters:
string
- the String to transform.- Returns:
- the prepared String.
- Throws:
XmppStringprepException
- if there is an error.
-
domainprep
Performs String preparation on the domainpart String of a JID. In RFC 61ss terms, this means applying the nameprep profile of Stringprep.- Parameters:
string
- the String to transform.- Returns:
- the prepared String.
- Throws:
XmppStringprepException
- if there is an error.
-
resourceprep
Performs String preparation on the resourcepart String of a JID. In RFC 6122 terms this means applying the resourceprep profile of Stringprep.- Parameters:
string
- the String to transform.- Returns:
- the prepared String.
- Throws:
XmppStringprepException
- if there is an error.
-