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 String
domainprep(String string)
Performs String preparation on the domainpart String of a JID.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.
-
-
-
Method Detail
-
localprep
String localprep(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
String domainprep(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
String resourceprep(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.
-
-