/libcore/ojluni/src/main/java/java/net/ |
H A D | UnknownHostException.java | 31 * Thrown to indicate that the IP address of a host could not be determined. 44 * @param host the detail message. 46 public UnknownHostException(String host) { argument 47 super(host);
|
H A D | ProtocolException.java | 46 * @param host the detail message. 48 public ProtocolException(String host) { argument 49 super(host);
|
H A D | InetAddress.java | 58 * corresponding host name (depending on whether it is constructed 59 * with a host name or whether it has already done reverse host name 74 * interface, in case the server host has multiple interfaces. 82 * host. This address is often used when testing a 122 * one. For any host name, its corresponding IP address is returned. 125 * the host associated with the IP address is returned. 127 * <p> The InetAddress class provides methods to resolve host names to 133 * unsuccessful host name resolutions. 137 * the result of positive host nam 684 getByAddress(String host, byte[] addr) argument 689 getByAddress(String host, byte[] addr, int scopeId) argument 741 getByName(String host) argument 785 getAllByName(String host) argument 993 getByNameOnNet(String host, int netId) argument 1007 getAllByNameOnNet(String host, int netId) argument [all...] |
H A D | URLStreamHandler.java | 127 String host = u.getHost(); 177 host = authority = spec.substring(start, i); 184 host = null; 187 host = authority.substring(ind+1); 192 if (host != null) { 193 // If the host is surrounded by [ and ] then its an IPv6 195 if (host.length()>0 && (host.charAt(0) == '[')) { 196 if ((ind = host.indexOf(']')) > 2) { 198 String nhost = host ; 543 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument 571 setURL(URL u, String protocol, String host, int port, String file, String ref) argument [all...] |
H A D | SocketPermission.java | 39 public SocketPermission(String host, String action) { super(""); } argument
|
H A D | URL.java | 54 * information resides on a host machine named 55 * {@code www.example.com}. The information on that host 57 * meaning of this name on the host machine is both protocol 58 * dependent and host dependent. The information normally resides in 63 * port number to which the TCP connection is made on the remote host 110 * the protocol, host name, or port number is missing, the value is 162 * The host name to connect to. 165 private String host; field in class:URL 174 * The specified file name on that host. {@code file} is 208 * The host' 304 URL(String protocol, String host, int port, String file) argument 328 URL(String protocol, String host, String file) argument 372 URL(String protocol, String host, int port, String file, URLStreamHandler handler) argument 668 set(String protocol, String host, int port, String file, String ref) argument 705 set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument 1321 Parts(String file, String host) argument [all...] |
H A D | Inet6AddressImpl.java | 73 public InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException { argument 74 if (host == null || host.isEmpty()) { 76 // when host == null or empty. 81 InetAddress result = InetAddress.parseNumericAddressNoThrow(host); 83 result = InetAddress.disallowDeprecatedFormats(host, result); 85 throw new UnknownHostException("Deprecated IPv4 address format: " + host); 90 return lookupHostByName(host, netId); 96 * @param host the hostname to resolve. 98 * @return the IP addresses of the host 100 lookupHostByName(String host, int netId) argument [all...] |
H A D | Inet6Address.java | 422 * @param host the specified host 432 public static Inet6Address getByAddress(String host, byte[] addr, argument 436 if (host != null && host.length() > 0 && host.charAt(0) == '[') { 437 if (host.charAt(host.length()-1) == ']') { 438 host = host 465 getByAddress(String host, byte[] addr, int scope_id) argument [all...] |
H A D | InMemoryCookieStore.java | 216 * I.E.: RFC 2965 section 3.3.2 says that if host is x.y.domain.com 223 private boolean netscapeDomainMatches(String domain, String host) argument 225 if (domain == null || host == null) { 239 // if the host name contains no dot and the domain name is .local 240 int firstDotInHost = host.indexOf('.'); 246 int lengthDiff = host.length() - domainLength; 248 // if the host name and the domain name are just string-compare euqal 249 return host.equalsIgnoreCase(domain); 252 String D = host.substring(lengthDiff); 263 // if domain is actually .host 271 getInternal1(List<HttpCookie> cookies, Map<URI, List<HttpCookie>> cookieIndex, String host) argument [all...] |
/libcore/tzdata/tools2/ |
H A D | createTimeZoneDistro.sh | 17 make tzdata_tools2-host 19 TOOLS_LIB=${ANDROID_BUILD_TOP}/out/host/common/obj/JAVA_LIBRARIES/tzdata_tools2-host_intermediates/javalib.jar 20 SHARED_LIB=${ANDROID_BUILD_TOP}/out/host/common/obj/JAVA_LIBRARIES/tzdata_shared2-host_intermediates/javalib.jar
|
/libcore/ojluni/src/main/java/sun/net/util/ |
H A D | URLUtil.java | 55 String host = url.getHost(); 56 if (host != null) { 57 /* host is compared case-insensitive, so convert to lowercase */ 58 host = host.toLowerCase(); 59 strForm.append(host);
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | URIName.java | 44 * address as the host. 47 * (e.g., "http" is equivalent to "HTTP"). The host part is also not 50 * MUST compare the scheme and host without regard to case, but assume 63 * of an IP-based protocol to a specified host on the Internet use a 66 * //<user>:<password>@<host>:<port>/<url-path> 85 private String host; field in class:URIName 115 host = uri.getHost(); 116 // RFC 3280 says that the host should be non-null, but we allow it to 120 if (host != null) { 121 if (host 183 URIName(URI uri, String host, DNSName hostDNS) argument [all...] |
/libcore/ojluni/src/main/java/java/util/logging/ |
H A D | SocketHandler.java | 59 * <li> <handler-name>.host 60 * specifies the target host name to connect to (no default). </li> 85 private String host; field in class:SocketHandler 109 host = manager.getStringProperty(cname + ".host", null); 116 * @throws IllegalArgumentException if the host or port are invalid or 119 * host and port. 129 System.err.println("SocketHandler: connect failed to " + host + ":" + port); 136 * Construct a <tt>SocketHandler</tt> using a specified host and port. 139 * properties (or their default values) except that the given target host 150 SocketHandler(String host, int port) argument [all...] |
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | FileURLMapper.java | 38 * on to /net/host/... 61 String host = url.getHost(); 62 if (host == null || "".equals(host) || "localhost".equalsIgnoreCase (host)) {
|
/libcore/ojluni/src/main/java/sun/net/spi/nameservice/ |
H A D | NameService.java | 31 public java.net.InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException; argument
|
/libcore/support/src/test/java/tests/net/ |
H A D | DelegatingSSLSocketFactory.java | 65 public Socket createSocket(Socket s, String host, int port, boolean autoClose) argument 67 SSLSocket socket = (SSLSocket) mDelegate.createSocket(s, host, port, autoClose); 72 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument 73 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port); 78 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 80 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port, localHost, localPort); 85 public Socket createSocket(InetAddress host, int port) throws IOException { argument 86 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port);
|
H A D | DelegatingSocketFactory.java | 53 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument 54 Socket socket = mDelegate.createSocket(host, port); 59 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 61 Socket socket = mDelegate.createSocket(host, port, localHost, localPort); 66 public Socket createSocket(InetAddress host, int port) throws IOException { argument 67 Socket socket = mDelegate.createSocket(host, port);
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | FakeSSLSession.java | 25 final String host; field in class:FakeSSLSession 27 public FakeSSLSession(String host) { argument 28 this.host = host; 44 return host.getBytes(); 72 return host;
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
H A D | Handler.java | 46 String host = url.getHost(); 47 if (host == null) 48 host = ""; 49 return host; 77 String host = u.getHost(); 78 if (host == null || host.equals("") || host.equals("~") || 79 host.equalsIgnoreCase("localhost")) { 91 ru = new URL("ftp", host, [all...] |
/libcore/ojluni/src/main/java/javax/net/ |
H A D | SocketFactory.java | 140 * Creates a socket and connects it to the specified remote host 145 * method is called with the host address and <code>port</code> 148 * @param host the server host name with which to connect, or 155 * @throws UnknownHostException if the host is not known 162 public abstract Socket createSocket(String host, int port) argument 167 * Creates a socket and connects it to the specified remote host 174 * method is called with the host address and <code>port</code> 177 * @param host the server host nam 194 createSocket(String host, int port, InetAddress localHost, int localPort) argument 220 createSocket(InetAddress host, int port) argument 275 createSocket(String host, int port) argument 287 createSocket(String host, int port, InetAddress clientAddress, int clientPort) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | InetSocketAddressTest.java | 47 new HostPortPair("strange host", 65535) }; 50 legalHostPortPairs[i].host, legalHostPortPairs[i].port); 53 assertEquals(isa.getHostName(), legalHostPortPairs[i].host); 63 new HostPortPair("host", -1), new HostPortPair("host", 65536) }; 67 illegalHostPortPairs[i].host, 69 fail("should throw IllegalArgumentException, host = " 70 + illegalHostPortPairs[i].host + ",port = " 82 String host; field in class:InetSocketAddressTest.HostPortPair 86 public HostPortPair(String host, in argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
H A D | SSLEngineTest.java | 57 * SSLEngine object with null host and -1 port 69 * Test for <code>SSLEngine(String host, int port)</code> constructor 92 * Test for <code>SSLEngine(String host, int port)</code> constructor 95 String host = "new host"; 97 SSLEngine e = getEngine(host, port); 98 assertEquals(e.getPeerHost(), host); 114 assertEquals("Incorrect host name", "www.fortify.net", e.getPeerHost()); 244 sse = getEngine("new host", 1080); 327 String host 1029 getEngine(String host, int port) argument [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldAndroidURITest.java | 30 private static void construct(String str, String host, String path, boolean absolute) argument 33 assertEquals(host, uri.getHost());
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | SSLSocketBenchmark.java | 43 final InetAddress host; field in class:SSLSocketBenchmark.WebSite 50 this.host = InetAddress.getByName(url.getHost()); 63 + "Host: " + host + portString + "\r\n" 83 Socket s = sf.createSocket(webSite.host, webSite.port);
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
H A D | SSLSocket.java | 883 * Constructs a TCP connection to a named host at a specified port. 887 * method is called with the host address and <code>port</code> 890 * @param host name of the host with which to connect, or 896 * @throws UnknownHostException if the host is not known 902 protected SSLSocket(String host, int port) argument 904 { super(host, port); } 913 * method is called with the host address and <code>port</code> 916 * @param address the server's host 934 * Constructs an SSL connection to a named host a 958 SSLSocket(String host, int port, InetAddress clientAddress, int clientPort) argument [all...] |