.append(password).append("\"}}}"); HttpResponse response = Utils.doOperation(urlConnection, jsonBuilder.toString().getBytes(), true);
.append(password).append("\"}}}"); HttpResponse response = Utils.doOperation(urlConnection, jsonBuilder.toString().getBytes(), true);
/** * Do a operation that writes content to the HttpURLConnection * * @param urlConnection the connection * @param content The content to send * @return Response * @throws IOException */ public static HttpResponse doSendOperation( HttpURLConnection urlConnection, byte[] content) throws IOException { return doOperation(urlConnection, content, false); }
/** * Do a operation that does not write or read from HttpURLConnection, * except for the headers * * @param urlConnection the connection * @return Response * @throws IOException */ public static HttpResponse doVoidOperation( HttpURLConnection urlConnection) throws IOException { return doOperation(urlConnection, null, false); }
/** * Do a operation that reads from the httpconnection * * @param urlConnection The connections * @return Response * @throws IOException */ public static HttpResponse doReadOperation( HttpURLConnection urlConnection) throws IOException { return doOperation(urlConnection, null, true); }
/** * Do a operation that writes content to the HttpURLConnection * * @param urlConnection the connection * @param content The content to send * @return Response * @throws IOException */ public static HttpResponse doSendOperation( HttpURLConnection urlConnection, byte[] content) throws IOException { return doOperation(urlConnection, content, false); }
/** * Do a operation that reads from the httpconnection * * @param urlConnection The connections * @return Response * @throws IOException */ public static HttpResponse doReadOperation( HttpURLConnection urlConnection) throws IOException { return doOperation(urlConnection, null, true); }
/** * Do a operation that does not write or read from HttpURLConnection, * except for the headers * * @param urlConnection the connection * @return Response * @throws IOException */ public static HttpResponse doVoidOperation( HttpURLConnection urlConnection) throws IOException { return doOperation(urlConnection, null, false); }