/libcore/ojluni/src/main/java/java/net/ |
D | InetAddress.java | 233 public InetAddress[] lookupAllHostAddr(String host, int netId) 235 return impl.lookupAllHostAddr(host, netId); 531 String host = null; in getHostFromNameService() local 534 host = nameService.getHostByAddr(addr.getAddress()); in getHostFromNameService() 540 InetAddress[] arr = nameService.lookupAllHostAddr(host, NETID_UNSET); in getHostFromNameService() 551 host = addr.getHostAddress(); in getHostFromNameService() 552 return host; in getHostFromNameService() 555 host = addr.getHostAddress(); in getHostFromNameService() 558 return host; in getHostFromNameService() 649 public static InetAddress getByAddress(String host, byte[] addr) throws UnknownHostException { in getByAddress() argument [all …]
|
D | URLStreamHandler.java | 128 String host = u.getHost(); in parseURL() local 178 host = authority = spec.substring(start, i); in parseURL() 183 host = authority.substring(ind+1); in parseURL() 187 if (host != null) { in parseURL() 190 if (host.length()>0 && (host.charAt(0) == '[')) { in parseURL() 191 if ((ind = host.indexOf(']')) > 2) { in parseURL() 193 String nhost = host ; in parseURL() 194 host = nhost.substring(0,ind+1); in parseURL() 196 isIPv6LiteralAddress(host.substring(1, ind))) { in parseURL() 198 "Invalid host: "+ host); in parseURL() [all …]
|
D | URL.java | 164 private String host; field in URL 303 public URL(String protocol, String host, int port, String file) in URL() argument 306 this(protocol, host, port, file, null); in URL() 327 public URL(String protocol, String host, String file) in URL() argument 329 this(protocol, host, -1, file); in URL() 371 public URL(String protocol, String host, int port, String file, in URL() argument 383 if (host != null) { in URL() 389 if (host.indexOf(':') >= 0 && !host.startsWith("[")) { in URL() 390 host = "["+host+"]"; in URL() 392 this.host = host; in URL() [all …]
|
D | Inet6AddressImpl.java | 57 public InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException { in lookupAllHostAddr() argument 58 if (host == null || host.isEmpty()) { in lookupAllHostAddr() 65 InetAddress result = InetAddress.parseNumericAddressNoThrow(host); in lookupAllHostAddr() 67 result = InetAddress.disallowDeprecatedFormats(host, result); in lookupAllHostAddr() 69 throw new UnknownHostException("Deprecated IPv4 address format: " + host); in lookupAllHostAddr() 74 return lookupHostByName(host, netId); in lookupAllHostAddr() 84 private static InetAddress[] lookupHostByName(String host, int netId) in lookupHostByName() argument 88 Object cachedResult = addressCache.get(host, netId); in lookupHostByName() 106 InetAddress[] addresses = Libcore.os.android_getaddrinfo(host, hints, netId); in lookupHostByName() 109 address.holder().hostName = host; in lookupHostByName() [all …]
|
D | Inet6Address.java | 269 public static Inet6Address getByAddress(String host, byte[] addr, NetworkInterface nif) in getByAddress() argument 271 if (host != null && host.length() > 0 && host.charAt(0) == '[') { in getByAddress() 272 if (host.charAt(host.length()-1) == ']') { in getByAddress() 273 host = host.substring(1, host.length() -1); in getByAddress() 278 return new Inet6Address(host, addr, nif); in getByAddress() 300 public static Inet6Address getByAddress(String host, byte[] addr, int scope_id) in getByAddress() argument 302 if (host != null && host.length() > 0 && host.charAt(0) == '[') { in getByAddress() 303 if (host.charAt(host.length()-1) == ']') { in getByAddress() 304 host = host.substring(1, host.length() -1); in getByAddress() 309 return new Inet6Address(host, addr, scope_id); in getByAddress()
|
D | InMemoryCookieStore.java | 221 private boolean netscapeDomainMatches(String domain, String host) in netscapeDomainMatches() argument 223 if (domain == null || host == null) { in netscapeDomainMatches() 238 int firstDotInHost = host.indexOf('.'); in netscapeDomainMatches() 244 int lengthDiff = host.length() - domainLength; in netscapeDomainMatches() 247 return host.equalsIgnoreCase(domain); in netscapeDomainMatches() 250 String D = host.substring(lengthDiff); in netscapeDomainMatches() 263 host.equalsIgnoreCase(domain.substring(1))); in netscapeDomainMatches() 270 String host) { in getInternal1() argument 278 if ((c.getVersion() == 0 && netscapeDomainMatches(domain, host)) || in getInternal1() 279 (c.getVersion() == 1 && HttpCookie.domainMatches(domain, host))) { in getInternal1()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | URIName.java | 85 private String host; field in URIName 116 host = uri.getHost(); in URIName() 121 if (host != null) { in URIName() 122 if (host.charAt(0) == '[') { in URIName() 124 String ipV6Host = host.substring(1, host.length()-1); in URIName() 133 hostDNS = new DNSName(host); in URIName() 138 hostIP = new IPAddressName(host); in URIName() 167 String host = uri.getSchemeSpecificPart(); in nameConstraint() local 170 if (host.charAt(0) == '.') { in nameConstraint() 171 hostDNS = new DNSName(host.substring(1)); in nameConstraint() [all …]
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | SocketHandler.java | 71 private String host; field in SocketHandler 96 host = manager.getStringProperty(cname + ".host", null); in configure() 116 System.err.println("SocketHandler: connect failed to " + host + ":" + port); in SocketHandler() 137 public SocketHandler(String host, int port) throws IOException { in SocketHandler() argument 142 this.host = host; in SocketHandler() 151 if (host == null) { in connect() 152 throw new IllegalArgumentException("Null host name: " + host); in connect() 160 sock = new Socket(host, port); in connect()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
D | Handler.java | 46 String host = url.getHost(); in getHost() local 47 if (host == null) in getHost() 48 host = ""; in getHost() 49 return host; in getHost() 77 String host = u.getHost(); in openConnection() local 78 if (host == null || host.equals("") || host.equals("~") || in openConnection() 79 host.equalsIgnoreCase("localhost")) { in openConnection() 91 ru = new URL("ftp", host, u.getFile() + in openConnection()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/ |
D | HttpCallerInfo.java | 48 final public String host, protocol, prompt, scheme; field in HttpCallerInfo 58 this.host = old.host; in HttpCallerInfo() 73 host = url.getHost(); in HttpCallerInfo() 98 public HttpCallerInfo(URL url, String host, int port) { in HttpCallerInfo() argument 100 this.host = host; in HttpCallerInfo()
|
D | AuthenticationInfo.java | 92 return host; in getHost() 180 String host; field in AuthenticationInfo 192 … public AuthenticationInfo(char type, AuthScheme authScheme, String host, int port, String realm) { in AuthenticationInfo() argument 196 this.host = host.toLowerCase(); in AuthenticationInfo() 219 this.host = url.getHost().toLowerCase(); in AuthenticationInfo() 310 static AuthenticationInfo getProxyAuth(String host, int port) { in getProxyAuth() argument 311 String key = PROXY_AUTHENTICATION + "::" + host.toLowerCase() + ":" + port; in getProxyAuth() 321 static String getProxyAuthKey(String host, int port, String realm, AuthScheme scheme) { in getProxyAuthKey() argument 322 String key = PROXY_AUTHENTICATION + ":" + scheme + "::" + host.toLowerCase() in getProxyAuthKey() 427 + host + ":" + port + ":" + realm; in cacheKey() [all …]
|
/libcore/support/src/test/java/tests/net/ |
D | DelegatingSSLSocketFactory.java | 65 public Socket createSocket(Socket s, String host, int port, boolean autoClose) in createSocket() argument 67 SSLSocket socket = (SSLSocket) mDelegate.createSocket(s, host, port, autoClose); in createSocket() 72 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { in createSocket() argument 73 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port); in createSocket() 78 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() argument 80 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port, localHost, localPort); in createSocket() 85 public Socket createSocket(InetAddress host, int port) throws IOException { in createSocket() argument 86 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port); in createSocket()
|
D | DelegatingSocketFactory.java | 53 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { in createSocket() argument 54 Socket socket = mDelegate.createSocket(host, port); in createSocket() 59 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() argument 61 Socket socket = mDelegate.createSocket(host, port, localHost, localPort); in createSocket() 66 public Socket createSocket(InetAddress host, int port) throws IOException { in createSocket() argument 67 Socket socket = mDelegate.createSocket(host, port); in createSocket()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | FakeSSLSession.java | 25 final String host; field in FakeSSLSession 27 public FakeSSLSession(String host) { in FakeSSLSession() argument 28 this.host = host; in FakeSSLSession() 44 return host.getBytes(); in getId() 72 return host; in getPeerHost()
|
D | TestSSLContext.java | 99 public final InetAddress host; field in TestSSLContext 214 InetAddress host, in TestSSLContext() argument 227 this.host = host; in TestSSLContext() 294 InetAddress host = InetAddress.getLocalHost(); in create() local 304 serverSocket, host, port); in create() 391 public Socket createSocket(String host, int port) in clientAuth() argument 393 return set(sf.createSocket(host, port)); in clientAuth() 395 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in clientAuth() argument 397 return set(sf.createSocket(host, port, localHost, localPort)); in clientAuth() 399 public Socket createSocket(InetAddress host, int port) throws IOException { in clientAuth() argument [all …]
|
/libcore/ojluni/src/main/java/sun/net/util/ |
D | URLUtil.java | 55 String host = url.getHost(); in urlNoFragString() local 56 if (host != null) { in urlNoFragString() 58 host = host.toLowerCase(); in urlNoFragString() 59 strForm.append(host); in urlNoFragString()
|
/libcore/ojluni/src/main/java/javax/net/ |
D | SocketFactory.java | 162 public abstract Socket createSocket(String host, int port) in createSocket() argument 194 createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() argument 220 public abstract Socket createSocket(InetAddress host, int port) in createSocket() argument 275 public Socket createSocket(String host, int port) in createSocket() argument 278 return new Socket(host, port); in createSocket() 287 public Socket createSocket(String host, int port, in createSocket() argument 291 return new Socket(host, port, clientAddress, clientPort); in createSocket()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | InetSocketAddressTest.java | 50 legalHostPortPairs[i].host, legalHostPortPairs[i].port); in test_createUnresolvedLjava_lang_StringI() 53 assertEquals(isa.getHostName(), legalHostPortPairs[i].host); in test_createUnresolvedLjava_lang_StringI() 67 illegalHostPortPairs[i].host, in test_createUnresolvedLjava_lang_StringI_IllegalArgumentException() 70 + illegalHostPortPairs[i].host + ",port = " in test_createUnresolvedLjava_lang_StringI_IllegalArgumentException() 82 String host; field in InetSocketAddressTest.HostPortPair 86 public HostPortPair(String host, int port) { in HostPortPair() argument 87 this.host = host; in HostPortPair()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLEngineTest.java | 95 String host = "new host"; in test_ConstructorLjava_lang_StringI02() local 97 SSLEngine e = getEngine(host, port); in test_ConstructorLjava_lang_StringI02() 98 assertEquals(e.getPeerHost(), host); in test_ConstructorLjava_lang_StringI02() local 327 String host = "new host"; in test_unwrap_02() local 332 SSLEngine sse = getEngine(host, port); in test_unwrap_02() 363 String host = "new host"; in test_unwrap_03() local 369 SSLEngine sse = getEngine(host, port); in test_unwrap_03() 385 String host = "new host"; in test_unwrap_04() local 392 SSLEngine sse = getEngine(host, port); in test_unwrap_04() 423 String host = "new host"; in test_unwrap_05() local [all …]
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
D | SSLSocketFactoryImpl.java | 85 public Socket createSocket(String host, int port) in createSocket() argument 88 return new SSLSocketImpl(context, host, port); in createSocket() 107 public Socket createSocket(Socket s, String host, int port, in createSocket() argument 109 return new SSLSocketImpl(context, s, host, port, autoClose); in createSocket() 136 public Socket createSocket(String host, int port, in createSocket() argument 140 return new SSLSocketImpl(context, host, port, in createSocket()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FileURLMapper.java | 61 String host = url.getHost(); in getPath() local 62 if (host == null || "".equals(host) || "localhost".equalsIgnoreCase (host)) { in getPath()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/mailto/ |
D | MailToURLConnection.java | 70 String host = System.getProperty("mail.host"); in getFromAddress() local 71 if (host == null) { in getFromAddress() 73 host = InetAddress.getLocalHost().getHostName(); in getFromAddress() 77 str += "@" + host; in getFromAddress() 111 String host = client.getMailHost() + ":" + 25; in getPermission() local 112 permission = new SocketPermission(host, "connect"); in getPermission()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/gopher/ |
D | Handler.java | 61 String host = GopherClient.getGopherProxyHost(); in openConnection() local 62 if (host != null) { in openConnection() 63 …InetSocketAddress saddr = InetSocketAddress.createUnresolved(host, GopherClient.getGopherProxyPort… in openConnection() 95 String host = url.getHost() + ":" + url.getPort(); in getPermission() 96 permission = new SocketPermission(host, "connect"); in getPermission()
|
/libcore/ |
D | NativeCode.mk | 232 …+= $(core_shared_libraries) libexpat-host libicuuc-host libicui18n-host libcrypto-host libz-host l… 244 LOCAL_SHARED_LIBRARIES := $(core_shared_libraries) libicuuc-host libcrypto-host libz-host 259 LOCAL_SHARED_LIBRARIES := $(core_shared_libraries) libicuuc-host libcrypto-host libz-host
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SSLSocketBenchmark.java | 43 final InetAddress host; field in SSLSocketBenchmark.WebSite 50 this.host = InetAddress.getByName(url.getHost()); in WebSite() 63 + "Host: " + host + portString + "\r\n" in WebSite() 83 Socket s = sf.createSocket(webSite.host, webSite.port); in time()
|