Class URLManager


  • public class URLManager
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  URLManager.Link  
    • Constructor Summary

      Constructors 
      Constructor Description
      URLManager​(URLManager.Link link, java.lang.Boolean localhost)  
      URLManager​(java.lang.String url, java.lang.Boolean localhost)  
    • Method Summary

      Modifier and Type Method Description
      static java.lang.Boolean checkVersion​(java.lang.String version, java.lang.Boolean localhost, URLManager.Link URLPath)  
      void download​(net.md_5.bungee.api.plugin.Plugin plugin, java.lang.String newVersion)  
      static URLManager getContentURL​(java.lang.String url, boolean localhost)  
      static java.lang.String getLatestVersion()  
      java.lang.String read()  
      static void update​(net.md_5.bungee.api.plugin.Plugin plugin, java.lang.String newVersion, java.lang.Boolean localhost, URLManager.Link URLPath)  
      • Methods inherited from class java.lang.Object

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

      • URLManager

        public URLManager​(URLManager.Link link,
                          java.lang.Boolean localhost)
                   throws java.net.MalformedURLException
        Throws:
        java.net.MalformedURLException
      • URLManager

        public URLManager​(java.lang.String url,
                          java.lang.Boolean localhost)
                   throws java.net.MalformedURLException
        Throws:
        java.net.MalformedURLException
    • Method Detail

      • read

        public java.lang.String read()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • download

        public void download​(net.md_5.bungee.api.plugin.Plugin plugin,
                             java.lang.String newVersion)
      • checkVersion

        public static java.lang.Boolean checkVersion​(java.lang.String version,
                                                     java.lang.Boolean localhost,
                                                     URLManager.Link URLPath)
      • getLatestVersion

        public static java.lang.String getLatestVersion()
      • update

        public static void update​(net.md_5.bungee.api.plugin.Plugin plugin,
                                  java.lang.String newVersion,
                                  java.lang.Boolean localhost,
                                  URLManager.Link URLPath)
      • getContentURL

        public static URLManager getContentURL​(java.lang.String url,
                                               boolean localhost)
                                        throws java.io.IOException
        Throws:
        java.io.IOException