@Test public void dwoGetURL() throws MalformedURLException { URLConnection c = new DnsRequisitionUrlConnection(new URL(TEST_URL)); Assert.assertEquals(53, c.getURL().getDefaultPort()); Assert.assertEquals("localhost", c.getURL().getHost()); Assert.assertEquals("/example.com", c.getURL().getPath()); Assert.assertEquals(DnsRequisitionUrlConnection.PROTOCOL, c.getURL().getProtocol()); Assert.assertNull(c.getURL().getUserInfo()); }
public URL getUrl() { return m_url; }
DnsRequisitionUrlConnection extends URLConnection { public URL getUrl() { return m_url; } }
DnsRequisitionUrlConnection extends URLConnection { public URL getUrl() { return m_url; } DnsRequisitionUrlConnection(URL url); }
DnsRequisitionUrlConnection extends URLConnection { public URL getUrl() { return m_url; } DnsRequisitionUrlConnection(URL url); @Override void connect(); @Override InputStream getInputStream(); String getZone(); Long getSerial(); void setSerial(Long serial); Boolean getFallback(); void setFallback(Boolean fallback); TSIG getKey(); void setKey(TSIG key); String getDescription(); String toString(); URL getUrl(); static Map<String, String> getArgs(); void setForeignSource(String foreignSource); String getForeignSource(); }
DnsRequisitionUrlConnection extends URLConnection { public URL getUrl() { return m_url; } DnsRequisitionUrlConnection(URL url); @Override void connect(); @Override InputStream getInputStream(); String getZone(); Long getSerial(); void setSerial(Long serial); Boolean getFallback(); void setFallback(Boolean fallback); TSIG getKey(); void setKey(TSIG key); String getDescription(); String toString(); URL getUrl(); static Map<String, String> getArgs(); void setForeignSource(String foreignSource); String getForeignSource(); static final String URL_SCHEME; static final String PROTOCOL; }