Class XmppStringPrepUtil


  • public class XmppStringPrepUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String domainprep​(java.lang.String string)
      Perform domainprep on the input String.
      static java.lang.String domainprep​(java.lang.String string, JxmppContext context)
      Perform domainprep on the input String.
      static java.lang.String localprep​(java.lang.String string)
      Perform localprep on the input String.
      static java.lang.String localprep​(java.lang.String string, JxmppContext context)
      Perform localprep on the input String.
      static java.lang.String resourceprep​(java.lang.String string)
      Perform resourceprep on the input String.
      static java.lang.String resourceprep​(java.lang.String string, JxmppContext context)
      Perform resourceprep on the input String.
      static void setMaxCacheSizes​(int size)
      Set the maximum cache sizes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XmppStringPrepUtil

        public XmppStringPrepUtil()
    • Method Detail

      • localprep

        public static java.lang.String localprep​(java.lang.String string)
                                          throws XmppStringprepException
        Perform localprep on the input String.
        Parameters:
        string - the input String.
        Returns:
        the localpreped String.
        Throws:
        XmppStringprepException - if the input String can not be transformed.
      • localprep

        public static java.lang.String localprep​(java.lang.String string,
                                                 JxmppContext context)
                                          throws XmppStringprepException
        Perform localprep on the input String.
        Parameters:
        string - the input String.
        context - the JXMPP JID context.
        Returns:
        the localpreped String.
        Throws:
        XmppStringprepException - if the input String can not be transformed.
      • domainprep

        public static java.lang.String domainprep​(java.lang.String string)
                                           throws XmppStringprepException
        Perform domainprep on the input String.
        Parameters:
        string - the input String.
        Returns:
        the domainprep String.
        Throws:
        XmppStringprepException - if the input String can not be transformed.
      • domainprep

        public static java.lang.String domainprep​(java.lang.String string,
                                                  JxmppContext context)
                                           throws XmppStringprepException
        Perform domainprep on the input String.
        Parameters:
        string - the input String.
        context - the JXMPP JID context.
        Returns:
        the domainprep String.
        Throws:
        XmppStringprepException - if the input String can not be transformed.
      • resourceprep

        public static java.lang.String resourceprep​(java.lang.String string)
                                             throws XmppStringprepException
        Perform resourceprep on the input String.
        Parameters:
        string - the input String.
        Returns:
        the resourceprep String.
        Throws:
        XmppStringprepException - if the input String can not be transformed.
      • resourceprep

        public static java.lang.String resourceprep​(java.lang.String string,
                                                    JxmppContext context)
                                             throws XmppStringprepException
        Perform resourceprep on the input String.
        Parameters:
        string - the input String.
        context - the JXMPP JID context.
        Returns:
        the resourceprep String.
        Throws:
        XmppStringprepException - if the input String can not be transformed.
      • setMaxCacheSizes

        public static void setMaxCacheSizes​(int size)
        Set the maximum cache sizes.
        Parameters:
        size - the maximum cache size.