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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
domainprep(java.lang.String string)
Performs String preparation on the domainpart String of a JID.java.lang.String
localprep(java.lang.String string)
Performs String preparation on the localpart String of a JID.java.lang.String
resourceprep(java.lang.String string)
Performs String preparation on the resourcepart String of a JID.
-
-
-
Method Detail
-
localprep
java.lang.String localprep(java.lang.String string) throws XmppStringprepException
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
java.lang.String domainprep(java.lang.String string) throws XmppStringprepException
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
java.lang.String resourceprep(java.lang.String string) throws XmppStringprepException
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.
-
-