/libcore/luni/src/main/java/javax/net/ |
H A D | DefaultSocketFactory.java | 39 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument 40 return new Socket(host, port); 44 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 46 return new Socket(host, port, localHost, localPort); 50 public Socket createSocket(InetAddress host, int port) throws IOException { argument 51 return new Socket(host, port);
|
H A D | SocketFactory.java | 54 * Creates a new socket which is not connected to any remote host. This 68 * Creates a new socket which is connected to the remote host specified by 69 * the parameters {@code host} and {@code port}. The socket is bound to any 72 * @param host 73 * the remote host address the socket has to be connected to. 75 * the port number of the remote host at which the socket is 81 * if the specified host is unknown or the IP address could not 84 public abstract Socket createSocket(String host, int port) throws IOException, argument 88 * Creates a new socket which is connected to the remote host specified by 89 * the parameters {@code host} an 110 createSocket(String host, int port, InetAddress localHost, int localPort) argument 127 createSocket(InetAddress host, int port) argument [all...] |
/libcore/luni/src/main/java/java/util/logging/ |
H A D | SocketHandler.java | 43 * <li>java.util.logging.SocketHandler.host specifies the name of the host that 67 * the log manager, including the host name and port number. Default 71 * if failed to connect to the specified host and port. 73 * if the host name or port number is illegal. 78 "java.util.logging.SocketHandler.host"), LogManager 84 * Constructs a {@code SocketHandler} object using the specified host name 88 * @param host 89 * the host name 93 * if failed to connect to the specified host an 97 SocketHandler(String host, int port) argument 103 initSocket(String host, String port) argument [all...] |
/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;
|
H A D | TestSSLContext.java | 91 public final InetAddress host; field in class:TestSSLContext 105 InetAddress host, 118 this.host = host; 133 * listening provided host and port. 185 InetAddress host = InetAddress.getLocalHost(); 195 serverSocket, host, port); 282 public Socket createSocket(String host, int port) 284 return set(sf.createSocket(host, port)); 286 public Socket createSocket(String host, in 94 TestSSLContext(KeyStore clientKeyStore, char[] clientStorePassword, KeyStore serverKeyStore, char[] serverStorePassword, KeyManager[] clientKeyManagers, KeyManager[] serverKeyManagers, X509TrustManager clientTrustManager, X509TrustManager serverTrustManager, SSLContext clientContext, SSLContext serverContext, SSLServerSocket serverSocket, InetAddress host, int port) argument [all...] |
/libcore/luni/src/main/java/java/net/ |
H A D | URL.java | 41 * {@code http://username:password@host:8080/directory/file?query#ref}: 45 * <tr><td>{@link #getAuthority() Authority}</td><td>{@code username:password@host:8080}</td><td></td></tr> 47 * <tr><td>{@link #getHost() Host}</td><td>{@code host}</td><td></td></tr> 86 private String host; field in class:URL 201 public URL(String protocol, String host, String file) throws MalformedURLException { argument 202 this(protocol, host, -1, file, null); 209 * @param host the host name or IP address of the new URL. 215 public URL(String protocol, String host, int port, String file) throws MalformedURLException { argument 216 this(protocol, host, por 231 URL(String protocol, String host, int port, String file, URLStreamHandler handler) argument 305 set(String protocol, String host, int port, String file, String ref) argument 663 set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument [all...] |
H A D | SocketPermission.java | 27 public SocketPermission(String host, String action) { super(""); } argument
|
H A D | ProxySelectorImpl.java | 95 String host = System.getProperty(hostKey); 96 if (host == null || host.isEmpty()) { 101 return new Proxy(type, InetSocketAddress.createUnresolved(host, port)); 117 * and matches {@code host}. 119 private boolean isNonProxyHost(String host, String nonProxyHosts) { argument 120 if (host == null || nonProxyHosts == null) { 139 // check whether the host is the nonProxyHosts. 141 return host.matches(pattern);
|
H A D | URLStreamHandler.java | 96 String host; 117 * Extract the host and port. The host may be an IPv6 address with 131 host = spec.substring(hostStart, hostEnd); 149 host = url.getHost(); 150 if (host == null) { 151 host = ""; 194 setURL(url, url.getProtocol(), host, port, authority, userInfo, path, query, ref); 219 * @param host 220 * the host nam 231 setURL(URL u, String protocol, String host, int port, String file, String ref) argument 243 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument [all...] |
H A D | InetAddress.java | 185 * Converts an array of byte arrays representing raw IP addresses of a host 203 * Gets all IP addresses associated with the given {@code host} identified 205 * configured name service. If the host name is empty or {@code null} an 206 * {@code UnknownHostException} is thrown. If the host name is a literal IP 210 * @param host the hostname or literal IP string to be resolved. 211 * @return the array of addresses associated with the specified host. 214 public static InetAddress[] getAllByName(String host) throws UnknownHostException { argument 215 return getAllByNameImpl(host, NETID_UNSET).clone(); 219 * Operates identically to {@code getAllByName} except host resolution is 222 * @param host th 228 getAllByNameOnNet(String host, int netId) argument 237 getAllByNameImpl(String host, int netId) argument 304 getByName(String host) argument 319 getByNameOnNet(String host, int netId) argument 416 lookupHostByName(String host, int netId) argument [all...] |
H A D | URI.java | 37 * {@code http://username:password@host:8080/directory/file?query#fragment} 41 * <tr><td>{@link #getSchemeSpecificPart() Scheme-specific part}</td><td>{@code //username:password@host:8080/directory/file?query#fragment}</td><td></td></tr> 42 * <tr><td>{@link #getAuthority() Authority} </td><td>{@code username:password@host:8080} </td><td></td></tr> 44 * <tr><td>{@link #getHost() Host} </td><td>{@code host} </td><td></td></tr> 88 * has an authority, user info, host, port, path or query. An opaque URIs may 107 * {@code http://user:pa55w%3Frd@host:80/doc%7Csearch?q=green%20robots#over%206%22} 111 * <tr><td>Scheme-specific part</td><td>{@code 0-9}, {@code a-z}, {@code A-Z}, {@code _-!.~'()*,;:$&+=?/[]@}</td><td>Non-ASCII characters okay </td><td>{@code //user:pa55w%3Frd@host:80/doc%7Csearch?q=green%20robots}</td><td>{@code //user:pa55w?rd@host:80/doc|search?q=green robots}</td></tr> 112 * <tr><td>Authority </td><td>{@code 0-9}, {@code a-z}, {@code A-Z}, {@code _-!.~'()*,;:$&+=@[]} </td><td>Non-ASCII characters okay </td><td>{@code user:pa55w%3Frd@host:80} </td><td>{@code user:pa55w?rd@host 185 private transient String host; field in class:URI 235 URI(String scheme, String userInfo, String host, int port, String path, String query, String fragment) argument 297 URI(String scheme, String host, String path, String fragment) argument 523 isValidHost(boolean forceServer, String host) argument 572 isValidDomainName(String host) argument [all...] |
H A D | InetSocketAddress.java | 80 * hostname {@code host}. The hostname is tried to be resolved and cannot be 86 * @param host 89 public InetSocketAddress(String host, int port) { argument 90 this(host, port, true); 99 throw new IllegalArgumentException("host=" + hostname + ", port=" + port); 120 * @param host 126 * if the hostname {@code host} is {@code null} or the port is 129 public static InetSocketAddress createUnresolved(String host, int port) { argument 130 return new InetSocketAddress(host, port, false);
|
H A D | Authenticator.java | 36 private String host; field in class:Authenticator 161 * host name of the connection that requests authentication. 181 thisAuthenticator.host = rHost; 195 * Returns the host name of the connection that requests authentication or 198 * @return name of the requesting host or {@code null}. 201 return host; 211 * host name of the connection that requests authentication. 236 thisAuthenticator.host = rHost;
|
H A D | DatagramPacket.java | 23 * such as its source or destination host. 80 * {@code aPort} of the address {@code host}. The {@code length} must be 90 * @param host 91 * the address of the target host. 93 * the port of the target host. 95 public DatagramPacket(byte[] data, int offset, int length, InetAddress host, int aPort) { argument 98 address = host; 103 * {@code aPort} of the address {@code host}. The {@code length} must be 111 * @param host 112 * the address of the target host 116 DatagramPacket(byte[] data, int length, InetAddress host, int port) argument [all...] |
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | FileHandler.java | 69 String host = url.getHost(); 70 if (host == null || host.isEmpty() || host.equalsIgnoreCase("localhost")) { 75 URL ftpURL = new URL("ftp", host, url.getFile());
|
/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/luni/src/main/java/javax/net/ssl/ |
H A D | DefaultSSLSocketFactory.java | 50 public Socket createSocket(Socket s, String host, int port, boolean autoClose) argument 56 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument 61 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 67 public Socket createSocket(InetAddress host, int port) throws IOException { argument
|
H A D | SSLSocket.java | 751 * Creates a TCP socket connection to the specified host at the specified 754 * @param host 755 * the host name to connect to. 761 * if the specified host is not known. 763 protected SSLSocket(String host, int port) throws IOException, UnknownHostException { argument 764 super(host, port); 787 * Creates a TCP socket connection to the specified host at the specified 790 * @param host 791 * the host name to connect to. 801 * if the specified host i 803 SSLSocket(String host, int port, InetAddress clientAddress, int clientPort) argument [all...] |
H A D | DefaultHostnameVerifier.java | 41 public final boolean verify(String host, SSLSession session) { argument 44 return verify(host, (X509Certificate) certificates[0]); 50 public boolean verify(String host, X509Certificate certificate) { argument 51 return InetAddress.isNumeric(host) 52 ? verifyIpAddress(host, certificate) 53 : verifyHostName(host, certificate); 125 * @param hostName lowercase host name. 126 * @param cn certificate host name. May include wildcards like
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
H A D | SSLEngineTest.java | 56 * SSLEngine object with null host and -1 port 68 * Test for <code>SSLEngine(String host, int port)</code> constructor 91 * Test for <code>SSLEngine(String host, int port)</code> constructor 94 String host = "new host"; 96 SSLEngine e = getEngine(host, port); 97 assertEquals(e.getPeerHost(), host); 113 assertEquals("Incorrect host name", "www.fortify.net", e.getPeerHost()); 243 sse = getEngine("new host", 1080); 326 String host 1020 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" 82 Socket s = sf.createSocket(webSite.host, webSite.port);
|
/libcore/luni/src/main/java/java/lang/ |
H A D | SecurityManager.java | 40 public void checkAccept(String host, int port) { } argument 46 public void checkConnect(String host, int port) { } argument 48 public void checkConnect(String host, int port, Object context) { } argument
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | MySSLContextSpi.java | 95 protected SSLEngine engineCreateSSLEngine(String host, int port) { argument 99 return new tmpSSLEngine(host, port); 116 public tmpSSLEngine(String host, int port) { argument 117 tmpHost = host;
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
H A D | MySSLContextSpi.java | 93 protected SSLEngine engineCreateSSLEngine(String host, int port) { argument 97 return new tmpSSLEngine(host, port); 114 public tmpSSLEngine(String host, int port) { argument 115 tmpHost = host;
|