Package uk.num.net

Class NumProtocolSupport


  • public final class NumProtocolSupport
    extends java.lang.Object
    Add NUM Protocol Support
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void init()
      Force the class to be loaded and the static initializer to be executed
      static java.net.URL toUrl​(java.lang.String numAddress)
      Create a `num` protocol URL
      • Methods inherited from class java.lang.Object

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

      • NUM_DOMAIN_REGEX

        public static final java.util.regex.Pattern NUM_DOMAIN_REGEX
      • NUM_PATH_REGEX

        public static final java.util.regex.Pattern NUM_PATH_REGEX
      • NUM_EMAIL_REGEX

        public static final java.util.regex.Pattern NUM_EMAIL_REGEX
    • Constructor Detail

      • NumProtocolSupport

        public NumProtocolSupport()
    • Method Detail

      • toUrl

        public static java.net.URL toUrl​(java.lang.String numAddress)
                                  throws java.net.MalformedURLException
        Create a `num` protocol URL
        Parameters:
        numAddress - the NUM ID
        Returns:
        a URL
        Throws:
        java.net.MalformedURLException - on error
      • init

        public static void init()
        Force the class to be loaded and the static initializer to be executed