/libcore/luni/src/main/java/java/net/ |
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 | 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...] |
H A D | InetSocketAddress.java | 77 * hostname {@code host}. The hostname is tried to be resolved and cannot be 81 * @param host the hostname of the socket endpoint. 84 public InetSocketAddress(String host, int port) { argument 85 this(host, port, true); 94 throw new IllegalArgumentException("host=" + hostname + ", port=" + port); 115 * @param host the hostname of the socket endpoint. 118 * @throws IllegalArgumentException if the hostname {@code host} is {@code null} or the port is 121 public static InetSocketAddress createUnresolved(String host, int port) { argument 122 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 | Inet6Address.java | 72 * Constructs an IPv6 address according to the given {@code host}, {@code 75 * @param host 76 * the host name associated with the address. 85 public static Inet6Address getByAddress(String host, byte[] addr, int scope_id) argument 94 return new Inet6Address(addr, host, scope_id); 98 * Gets an IPv6 address instance according to the given {@code host}, 103 * @param host 115 public static Inet6Address getByAddress(String host, byte[] addr, argument 118 Inet6Address address = Inet6Address.getByAddress(host, addr, 0);
|
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...] |
/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/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/java/util/logging/ |
H A D | SocketHandler.java | 44 * <li>java.util.logging.SocketHandler.host specifies the name of the host that 68 * the log manager, including the host name and port number. Default 72 * if failed to connect to the specified host and port. 74 * if the host name or port number is illegal. 79 "java.util.logging.SocketHandler.host"), LogManager 85 * Constructs a {@code SocketHandler} object using the specified host name 89 * @param host 90 * the host name 94 * if failed to connect to the specified host an 98 SocketHandler(String host, int port) argument 104 initSocket(String host, String port) argument [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | SSLSocketFactory.java | 123 * to the specified host at the specified port. 127 * @param host 128 * the host. 139 * if the host is unknown. 141 public abstract Socket createSocket(Socket s, String host, int port, boolean autoClose) argument
|
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 | SSLContextSpi.java | 70 * @param host 71 * the name of the host 78 protected abstract SSLEngine engineCreateSSLEngine(String host, int port); argument
|
H A D | SSLSocket.java | 759 * Creates a TCP socket connection to the specified host at the specified 762 * @param host 763 * the host name to connect to. 769 * if the specified host is not known. 771 protected SSLSocket(String host, int port) throws IOException, UnknownHostException { argument 772 super(host, port); 795 * Creates a TCP socket connection to the specified host at the specified 798 * @param host 799 * the host name to connect to. 809 * if the specified host i 811 SSLSocket(String host, int port, InetAddress clientAddress, int clientPort) 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);
|
H A D | HostnameVerifierBenchmark.java | 46 "www.ubs.com"}) String host; field in class:HostnameVerifierBenchmark 53 URL url = new URL("https", host, "/");
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
H A D | SSLContextSpiImpl.java | 61 public SSLEngine engineCreateSSLEngine(String host, int port) { argument 71 return new tmpSSLEngine(host, port);
|
/libcore/support/src/test/java/tests/util/ |
H A D | DelegatingSSLSocketFactory.java | 64 public Socket createSocket(Socket s, String host, int port, boolean autoClose) argument 66 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); 79 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 81 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port, localHost, localPort); 87 public Socket createSocket(InetAddress host, int port) throws IOException { argument 88 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ |
H A D | SocketFactoryTest.java | 169 * javax.net.SocketFactory#createSocket(String host, int port, 246 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument 251 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 257 public Socket createSocket(InetAddress host, int port) throws IOException { argument
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTestInnerClass.java | 134 String host, String file, String name, 137 test.assertURIEquals(assertID, scheme, path, host, file, name, query, 133 assertURIEquals(String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) argument
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | SSLSocketFactoryTest.java | 114 public Socket createSocket(Socket s, String host, int port, boolean autoClose) { argument 125 public Socket createSocket(InetAddress host, int port) { argument 130 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) { argument 135 public Socket createSocket(String host, int port) { argument 244 InetAddress host = sa.getAddress(); 246 Socket s = new Socket(host, port);
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
H A D | DOMTestCase.java | 103 String host, String file, String name, String query, 154 if (host != null) { 160 assertEquals(assertID, host, actualHost); 102 assertURIEquals(String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) argument
|
/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;
|