Class MSQAHttpConnectionClient


  • public class MSQAHttpConnectionClient
    extends java.lang.Object
    • Constructor Detail

      • MSQAHttpConnectionClient

        public MSQAHttpConnectionClient()
    • Method Detail

      • post

        @WorkerThread
        public static java.net.HttpURLConnection post​(@NonNull
                                                      MSQAHttpRequest request)
                                               throws java.io.IOException,
                                                      org.json.JSONException
        Throws:
        java.io.IOException
        org.json.JSONException
      • get

        @WorkerThread
        public static java.net.HttpURLConnection get​(@NonNull
                                                     MSQAHttpRequest request)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • getStringResponse

        public static java.lang.String getStringResponse​(java.net.HttpURLConnection conn)
                                                  throws java.io.IOException,
                                                         MSQAException
        Throws:
        java.io.IOException
        MSQAException
      • safeCloseStream

        public static void safeCloseStream​(java.io.Closeable stream)