Class Domainpart

    • Method Detail

      • fromOrNull

        public static Domainpart fromOrNull​(java.lang.CharSequence cs)
        Get a Domainpart from a given CharSequence or null if the input is not a valid domainpart.
        Parameters:
        cs - the input CharSequence
        Returns:
        a Domainpart or null
      • fromOrThrowUnchecked

        public static Domainpart fromOrThrowUnchecked​(java.lang.CharSequence cs)
        Like from(String) but does throw an unchecked IllegalArgumentException instead of a XmppStringprepException.
        Parameters:
        cs - the character sequence which should be transformed to a Domainpart
        Returns:
        the Domainpart if no exception occurs
        Throws:
        java.lang.IllegalArgumentException - if the given input is not a valid Domainpart
        Since:
        0.6.2
        See Also:
        from(String)
      • from

        public static Domainpart from​(java.lang.String domain)
                               throws org.jxmpp.stringprep.XmppStringprepException
        Get the Domainpart representing the input String.
        Parameters:
        domain - the input String.
        Returns:
        the domainpart.
        Throws:
        org.jxmpp.stringprep.XmppStringprepException - if an error occurs.
      • from

        public static Domainpart from​(java.lang.String domain,
                                      org.jxmpp.JxmppContext context)
                               throws org.jxmpp.stringprep.XmppStringprepException
        Get the Domainpart representing the input String.
        Parameters:
        domain - the input String.
        context - the JXMPP context.
        Returns:
        the domainpart.
        Throws:
        org.jxmpp.stringprep.XmppStringprepException - if an error occurs.