@Test public void getYamlResponseAndParseOnProdPreview() throws URISyntaxException, IOException { getYamlResponseAndParse(EDITOR_PLUGIN_URL_ON_PROD_PREVIEW); }
public PluginMeta getYamlResponseAndParse(URI uri) throws IOException { HttpURLConnection httpURLConnection = null; try { httpURLConnection = (HttpURLConnection) uri.toURL().openConnection(); if (httpURLConnection.getResponseCode() != 200) { throw new IOException( String.format( "Could not get editor meta from URI '%s': Error: '%s'", uri, getError(httpURLConnection))); } return parseYamlResponseStreamAndClose(httpURLConnection.getInputStream()); } finally { if (httpURLConnection != null) { httpURLConnection.disconnect(); } } }
HttpYamlDownloader { public PluginMeta getYamlResponseAndParse(URI uri) throws IOException { HttpURLConnection httpURLConnection = null; try { httpURLConnection = (HttpURLConnection) uri.toURL().openConnection(); if (httpURLConnection.getResponseCode() != 200) { throw new IOException( String.format( "Could not get editor meta from URI '%s': Error: '%s'", uri, getError(httpURLConnection))); } return parseYamlResponseStreamAndClose(httpURLConnection.getInputStream()); } finally { if (httpURLConnection != null) { httpURLConnection.disconnect(); } } } }
HttpYamlDownloader { public PluginMeta getYamlResponseAndParse(URI uri) throws IOException { HttpURLConnection httpURLConnection = null; try { httpURLConnection = (HttpURLConnection) uri.toURL().openConnection(); if (httpURLConnection.getResponseCode() != 200) { throw new IOException( String.format( "Could not get editor meta from URI '%s': Error: '%s'", uri, getError(httpURLConnection))); } return parseYamlResponseStreamAndClose(httpURLConnection.getInputStream()); } finally { if (httpURLConnection != null) { httpURLConnection.disconnect(); } } }  }
HttpYamlDownloader { public PluginMeta getYamlResponseAndParse(URI uri) throws IOException { HttpURLConnection httpURLConnection = null; try { httpURLConnection = (HttpURLConnection) uri.toURL().openConnection(); if (httpURLConnection.getResponseCode() != 200) { throw new IOException( String.format( "Could not get editor meta from URI '%s': Error: '%s'", uri, getError(httpURLConnection))); } return parseYamlResponseStreamAndClose(httpURLConnection.getInputStream()); } finally { if (httpURLConnection != null) { httpURLConnection.disconnect(); } } }  PluginMeta getYamlResponseAndParse(URI uri); }
HttpYamlDownloader { public PluginMeta getYamlResponseAndParse(URI uri) throws IOException { HttpURLConnection httpURLConnection = null; try { httpURLConnection = (HttpURLConnection) uri.toURL().openConnection(); if (httpURLConnection.getResponseCode() != 200) { throw new IOException( String.format( "Could not get editor meta from URI '%s': Error: '%s'", uri, getError(httpURLConnection))); } return parseYamlResponseStreamAndClose(httpURLConnection.getInputStream()); } finally { if (httpURLConnection != null) { httpURLConnection.disconnect(); } } }  PluginMeta getYamlResponseAndParse(URI uri);  }