Class GitHubHttpUtils


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.io.File download​(@NotNull java.lang.String httpURL, @Nullable java.lang.String token, @NotNull java.lang.String path, java.nio.file.CopyOption... copyOptions)  
      protected static org.json.JSONArray getArray​(@NotNull java.lang.String httpURL, java.lang.String token)  
      protected static org.json.JSONObject getObject​(@NotNull java.lang.String httpURL, @Nullable java.lang.String token)  
      • Methods inherited from class java.lang.Object

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

      • getObject

        protected static org.json.JSONObject getObject​(@NotNull
                                                       @NotNull java.lang.String httpURL,
                                                       @Nullable
                                                       @Nullable java.lang.String token)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getArray

        protected static org.json.JSONArray getArray​(@NotNull
                                                     @NotNull java.lang.String httpURL,
                                                     java.lang.String token)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • download

        protected static java.io.File download​(@NotNull
                                               @NotNull java.lang.String httpURL,
                                               @Nullable
                                               @Nullable java.lang.String token,
                                               @NotNull
                                               @NotNull java.lang.String path,
                                               java.nio.file.CopyOption... copyOptions)
                                        throws java.io.IOException
        Throws:
        java.io.IOException