Package org.jxmpp.stringprep.simple
Class SimpleXmppStringprep
java.lang.Object
org.jxmpp.stringprep.simple.SimpleXmppStringprep
- All Implemented Interfaces:
XmppStringprep
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondomainprep
(String string) Performs String preparation on the domainpart String of a JID.static void
Ensure that the input string does not contain any of the further excluded characters of XMPP localparts.static SimpleXmppStringprep
Get the Simple XMPP Stringprep 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 void
setup()
Setup Simple XMPP Stringprep as implementation to use.
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
setup
Setup Simple XMPP Stringprep as implementation to use. -
getInstance
Get the Simple XMPP Stringprep singleton.- Returns:
- the simple XMPP Stringprep singleton.
-
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.
-
ensureLocalpartDoesNotIncludeFurtherExcludedCharacters
public static void ensureLocalpartDoesNotIncludeFurtherExcludedCharacters(String localpart) throws XmppStringprepException Ensure that the input string does not contain any of the further excluded characters of XMPP localparts.- Parameters:
localpart
- the input string.- Throws:
XmppStringprepException
- if one of the further excluded characters is found.- See Also:
-
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.
-