/** * Executes a PATCH request. * * @param url url of resource. * @param content content to be posted. * @param connectTimeout connection timeout in milliseconds. * @param readTimeout read timeout in milliseconds. * @return {@link Patch} object. */ public static Patch patch(String url, byte[] content, int connectTimeout, int readTimeout) { try { return new Patch(url, content, connectTimeout, readTimeout); } catch (Exception e) { throw new HttpException("Failed URL: " + url, e); } }
/** * Executes a PATCH request. * * @param url url of resource. * @param content content to be posted. * @param connectTimeout connection timeout in milliseconds. * @param readTimeout read timeout in milliseconds. * @return {@link Patch} object. */ public static Patch patch(String url, byte[] content, int connectTimeout, int readTimeout) { try { return new Patch(url, content, connectTimeout, readTimeout); } catch (Exception e) { throw new HttpException("Failed URL: " + url, e); } }