Class MPUrl


  • public abstract class MPUrl
    extends java.lang.Object
    • Constructor Detail

      • MPUrl

        public MPUrl()
    • Method Detail

      • getUrl

        public static MPUrl getUrl​(java.lang.String url,
                                   @Nullable
                                   MPUrl defaultUrl)
                            throws java.net.MalformedURLException
        Throws:
        java.net.MalformedURLException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • openConnection

        public abstract MPConnection openConnection()
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getFile

        public abstract java.lang.String getFile()
      • getAuthority

        public abstract java.lang.String getAuthority()
      • getPath

        public abstract java.lang.String getPath()
      • getDefaultUrl

        @NonNull
        public MPUrl getDefaultUrl()
        returns an instance of the Default URL, if NetworkOptions is being used to override it. Otherwise, a reference to itself will be returned
        Returns:
        an MPUrl instance with the the default URL