/** * Do a operation that reads from the httpconnection * * @param urlConnection The connections * @return Response */ private Response doReadOperation(HttpURLConnection urlConnection) { return doOperation(urlConnection, null, true); }
/** * Do a http auth operation, will not handle 401 permission denied errors * * @param urlConnection the HttpURLConnection to be used * @return Response Response */ private Response doAuthOperation(HttpURLConnection urlConnection) { return doOperation(urlConnection, null, false); }
/** * Do a operation that writes content to the HttpURLConnection * * @param urlConnection the connection * @param content The content to send * @return Response */ private Response doSendOperation(HttpURLConnection urlConnection, byte[] content) { 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 */ private Response doVoidOperation(HttpURLConnection urlConnection) { return doOperation(urlConnection, null, false); }
/** * Do a operation that writes content to the HttpURLConnection * * @param urlConnection the connection * @param content The content to send * @return Response */ private Response doSendOperation(HttpURLConnection urlConnection, byte[] content) { 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 */ private Response doVoidOperation(HttpURLConnection urlConnection) { return doOperation(urlConnection, null, false); }
/** * Do a http auth operation, will not handle 401 permission denied errors * * @param urlConnection the HttpURLConnection to be used * @return Response Response */ private Response doAuthOperation(HttpURLConnection urlConnection) { return doOperation(urlConnection, null, false); }
/** * Do a operation that reads from the httpconnection * * @param urlConnection The connections * @return Response */ private Response doReadOperation(HttpURLConnection urlConnection) { return doOperation(urlConnection, null, true); }