Class RocksXmppPrecisStringprep
java.lang.Object
org.jxmpp.stringprep.rocksxmppprecis.RocksXmppPrecisStringprep
- All Implemented Interfaces:
XmppStringprep
XMPP string preparation using rocks-xmpp-precis.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RocksXmppPrecisStringprep
The ready to use instance of this.static final String
The name of the stringprep implementation. -
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.
-
Field Details
-
INSTANCE
The ready to use instance of this. -
NAME
The name of the stringprep implementation.- See Also:
-
-
Method Details
-
localprep
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
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
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.
-