OSDN Git Service

Theta V に対応させる。
[gokigen/PKRemote.git] / app / src / main / java / net / osdn / gokigen / pkremote / camera / utils / SimpleHttpClient.java
index 43f95c9..a064758 100644 (file)
@@ -146,6 +146,16 @@ public class SimpleHttpClient
         httpCommandBytes(url, "POST", postData, setProperty, null, timeoutMs, callback);
     }
 
+    /**
+     *
+     *
+     *
+     */
+    public static void httpPostBytesWithHeader(String url, String postData, Map<String, String> setProperty, @Nullable String contentType, int timeoutMs, @NonNull IReceivedMessageCallback callback)
+    {
+        httpCommandBytes(url, "POST", postData, setProperty, contentType, timeoutMs, callback);
+    }
+
     private static void httpCommandBytes(@NonNull String url, @NonNull String requestMethod, @Nullable String postData, @Nullable Map<String, String> setProperty, @Nullable String contentType, int timeoutMs, @NonNull IReceivedMessageCallback callback)
     {
         HttpURLConnection httpConn = null;
@@ -360,6 +370,16 @@ public class SimpleHttpClient
      *
      *
      */
+    public static Bitmap httpPostBitmapWithHeader(String url, String postData, @Nullable Map<String, String> setProperty, @Nullable String contentType, int timeoutMs)
+    {
+        return (httpCommandBitmap(url, "POST", postData, setProperty, contentType, timeoutMs));
+    }
+
+    /**
+     *
+     *
+     *
+     */
     private static Bitmap httpCommandBitmap(@NonNull String url, @NonNull String requestMethod, @Nullable String postData, @Nullable Map<String, String> setProperty, @Nullable String contentType, int timeoutMs)
     {
         HttpURLConnection httpConn = null;