Searched refs:host (Results 1 - 25 of 96) sorted by relevance

1234

/libcore/ojluni/src/main/java/java/net/
H A DUnknownHostException.java31 * 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 DProtocolException.java46 * @param host the detail message.
48 public ProtocolException(String host) { argument
49 super(host);
H A DInetAddress.java58 * 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
649 getByAddress(String host, byte[] addr) argument
654 getByAddress(String host, byte[] addr, int scopeId) argument
706 getByName(String host) argument
750 getAllByName(String host) argument
958 getByNameOnNet(String host, int netId) argument
972 getAllByNameOnNet(String host, int netId) argument
[all...]
H A DInet6AddressImpl.java57 public InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException { argument
58 if (host == null || host.isEmpty()) {
60 // when host == null or empty.
65 InetAddress result = InetAddress.parseNumericAddressNoThrow(host);
67 result = InetAddress.disallowDeprecatedFormats(host, result);
69 throw new UnknownHostException("Deprecated IPv4 address format: " + host);
74 return lookupHostByName(host, netId);
80 * @param host the hostname to resolve.
82 * @return the IP addresses of the host
84 lookupHostByName(String host, int netId) argument
[all...]
H A DURLStreamHandler.java128 String host = u.getHost();
178 host = authority = spec.substring(start, i);
183 host = authority.substring(ind+1);
187 if (host != null) {
188 // If the host is surrounded by [ and ] then its an IPv6
190 if (host.length()>0 && (host.charAt(0) == '[')) {
191 if ((ind = host.indexOf(']')) > 2) {
193 String nhost = host ;
194 host
537 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
565 setURL(URL u, String protocol, String host, int port, String file, String ref) argument
[all...]
H A DSocketPermission.java39 public SocketPermission(String host, String action) { super(""); } argument
H A DURL.java53 * information resides on a host machine named
54 * <code>www.socs.uts.edu.au</code>. The information on that host
56 * meaning of this name on the host machine is both protocol
57 * dependent and host dependent. The information normally resides in
62 * port number to which the TCP connection is made on the remote host
109 * the protocol, host name, or port number is missing, the value is
161 * The host name to connect to.
164 private String host; field in class:URL
173 * The specified file name on that host. <code>file</code> is
207 * The host'
303 URL(String protocol, String host, int port, String file) argument
327 URL(String protocol, String host, String file) argument
371 URL(String protocol, String host, int port, String file, URLStreamHandler handler) argument
667 set(String protocol, String host, int port, String file, String ref) argument
704 set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
1318 Parts(String file, String host) argument
[all...]
H A DInet6Address.java259 * @param host the specified host
269 public static Inet6Address getByAddress(String host, byte[] addr, NetworkInterface nif) argument
271 if (host != null && host.length() > 0 && host.charAt(0) == '[') {
272 if (host.charAt(host.length()-1) == ']') {
273 host = host
300 getByAddress(String host, byte[] addr, int scope_id) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/util/
H A DURLUtil.java55 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 DURIName.java44 * 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
116 host = uri.getHost();
117 // RFC 3280 says that the host should be non-null, but we allow it to
121 if (host != null) {
122 if (host
186 URIName(URI uri, String host, DNSName hostDNS) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/
H A DHttpCallerInfo.java48 final public String host, protocol, prompt, scheme; field in class:HttpCallerInfo
58 this.host = old.host;
73 host = url.getHost();
98 public HttpCallerInfo(URL url, String host, int port) { argument
100 this.host = host;
/libcore/ojluni/src/main/java/java/util/logging/
H A DSocketHandler.java57 * <li> java.util.logging.SocketHandler.host
58 * specifies the target host name to connect to (no default).
71 private String host; field in class:SocketHandler
96 host = manager.getStringProperty(cname + ".host", null);
103 * @throws IllegalArgumentException if the host or port are invalid or
106 * host and port.
116 System.err.println("SocketHandler: connect failed to " + host + ":" + port);
123 * Construct a <tt>SocketHandler</tt> using a specified host and port.
126 * properties (or their default values) except that the given target host
137 SocketHandler(String host, int port) argument
[all...]
/libcore/ojluni/src/main/java/sun/misc/
H A DFileURLMapper.java38 * 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 DNameService.java31 public java.net.InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException; argument
/libcore/support/src/test/java/tests/net/
H A DDelegatingSSLSocketFactory.java65 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 DDelegatingSocketFactory.java53 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 DFakeSSLSession.java25 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 DHandler.java46 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 DSocketFactory.java140 * 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/ojluni/src/main/java/sun/net/www/protocol/mailto/
H A DMailToURLConnection.java70 String host = System.getProperty("mail.host");
71 if (host == null) {
73 host = InetAddress.getLocalHost().getHostName();
77 str += "@" + host;
111 String host = client.getMailHost() + ":" + 25;
112 permission = new SocketPermission(host, "connect");
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DInetSocketAddressTest.java47 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/ojluni/src/main/java/sun/net/www/protocol/gopher/
H A DHandler.java61 String host = GopherClient.getGopherProxyHost();
62 if (host != null) {
63 InetSocketAddress saddr = InetSocketAddress.createUnresolved(host, GopherClient.getGopherProxyPort());
95 String host = url.getHost() + ":" + url.getPort();
96 permission = new SocketPermission(host, "connect");
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DSSLEngineTest.java57 * 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
1021 getEngine(String host, int port) argument
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DOldAndroidURITest.java30 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 DSSLSocketBenchmark.java43 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);

Completed in 656 milliseconds

1234