Interface XmppStringprep

    • 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.