Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 64) sorted by relevance

123

/libcore/luni/src/main/java/java/net/
DURL.java86 private String host; field in URL
201 public URL(String protocol, String host, String file) throws MalformedURLException { in URL() argument
202 this(protocol, host, -1, file, null); in URL()
215 public URL(String protocol, String host, int port, String file) throws MalformedURLException { in URL() argument
216 this(protocol, host, port, file, null); in URL()
231 public URL(String protocol, String host, int port, String file, in URL() argument
241 if (host != null && host.contains(":") && host.charAt(0) != '[') { in URL()
242 host = "[" + host + "]"; in URL()
246 this.host = host; in URL()
249 file = UrlUtils.authoritySafePath(host, file); in URL()
[all …]
DURI.java185 private transient String host; field in URI
235 public URI(String scheme, String userInfo, String host, int port, String path, String query, in URI() argument
237 if (scheme == null && userInfo == null && host == null && path == null in URI()
253 if (userInfo != null || host != null || port != -1) { in URI()
262 if (host != null) { in URI()
264 if (host.indexOf(':') != -1 && host.indexOf(']') == -1 && host.indexOf('[') == -1) { in URI()
265 host = "[" + host + "]"; in URI()
267 uri.append(host); in URI()
297 public URI(String scheme, String host, String path, String fragment) throws URISyntaxException { in URI() argument
298 this(scheme, null, host, -1, path, null, fragment); in URI()
[all …]
DInetAddress.java214 public static InetAddress[] getAllByName(String host) throws UnknownHostException { in getAllByName() argument
215 return getAllByNameImpl(host, NETID_UNSET).clone(); in getAllByName()
228 …public static InetAddress[] getAllByNameOnNet(String host, int netId) throws UnknownHostException { in getAllByNameOnNet() argument
229 return getAllByNameImpl(host, netId).clone(); in getAllByNameOnNet()
237 …private static InetAddress[] getAllByNameImpl(String host, int netId) throws UnknownHostException { in getAllByNameImpl() argument
238 if (host == null || host.isEmpty()) { in getAllByNameImpl()
243 InetAddress result = parseNumericAddressNoThrow(host); in getAllByNameImpl()
245 result = disallowDeprecatedFormats(host, result); in getAllByNameImpl()
247 throw new UnknownHostException("Deprecated IPv4 address format: " + host); in getAllByNameImpl()
252 return lookupHostByName(host, netId).clone(); in getAllByNameImpl()
[all …]
DURLStreamHandler.java96 String host; in parseURL() local
131 host = spec.substring(hostStart, hostEnd); in parseURL()
149 host = url.getHost(); in parseURL()
150 if (host == null) { in parseURL()
151 host = ""; in parseURL()
194 setURL(url, url.getProtocol(), host, port, authority, userInfo, path, query, ref); in parseURL()
231 protected void setURL(URL u, String protocol, String host, int port, in setURL() argument
236 u.set(protocol, host, port, file, ref); in setURL()
243 protected void setURL(URL u, String protocol, String host, int port, in setURL() argument
249 u.set(protocol, host, port, authority, userInfo, path, query, ref); in setURL()
[all …]
DProxySelectorImpl.java95 String host = System.getProperty(hostKey); in lookupProxy() local
96 if (host == null || host.isEmpty()) { in lookupProxy()
101 return new Proxy(type, InetSocketAddress.createUnresolved(host, port)); in lookupProxy()
119 private boolean isNonProxyHost(String host, String nonProxyHosts) { in isNonProxyHost() argument
120 if (host == null || nonProxyHosts == null) { in isNonProxyHost()
141 return host.matches(pattern); in isNonProxyHost()
DInetSocketAddress.java89 public InetSocketAddress(String host, int port) { in InetSocketAddress() argument
90 this(host, port, true); in InetSocketAddress()
129 public static InetSocketAddress createUnresolved(String host, int port) { in createUnresolved() argument
130 return new InetSocketAddress(host, port, false); in createUnresolved()
DAuthenticator.java36 private String host; field in Authenticator
181 thisAuthenticator.host = rHost; in requestPasswordAuthentication()
201 return host; in getRequestingHost()
236 thisAuthenticator.host = rHost; in requestPasswordAuthentication()
DDatagramPacket.java95 public DatagramPacket(byte[] data, int offset, int length, InetAddress host, int aPort) { in DatagramPacket() argument
98 address = host; in DatagramPacket()
116 public DatagramPacket(byte[] data, int length, InetAddress host, int port) { in DatagramPacket() argument
117 this(data, 0, length, host, port); in DatagramPacket()
/libcore/luni/src/main/java/javax/net/
DDefaultSocketFactory.java39 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { in createSocket() argument
40 return new Socket(host, port); in createSocket()
44 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() argument
46 return new Socket(host, port, localHost, localPort); in createSocket()
50 public Socket createSocket(InetAddress host, int port) throws IOException { in createSocket() argument
51 return new Socket(host, port); in createSocket()
DSocketFactory.java84 public abstract Socket createSocket(String host, int port) throws IOException, in createSocket() argument
110 public abstract Socket createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() argument
127 public abstract Socket createSocket(InetAddress host, int port) throws IOException; in createSocket() argument
/libcore/support/src/test/java/libcore/javax/net/ssl/
DFakeSSLSession.java25 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()
DTestSSLContext.java91 public final InetAddress host; field in TestSSLContext
105 InetAddress host, in TestSSLContext() argument
118 this.host = host; in TestSSLContext()
185 InetAddress host = InetAddress.getLocalHost(); in create() local
195 serverSocket, host, port); in create()
282 public Socket createSocket(String host, int port) in clientAuth() argument
284 return set(sf.createSocket(host, port)); in clientAuth()
286 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in clientAuth() argument
288 return set(sf.createSocket(host, port, localHost, localPort)); in clientAuth()
290 public Socket createSocket(InetAddress host, int port) throws IOException { in clientAuth() argument
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInetSocketAddressTest.java50 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/luni/src/main/java/java/util/logging/
DSocketHandler.java97 public SocketHandler(String host, int port) throws IOException { in SocketHandler() argument
99 initSocket(host, String.valueOf(port)); in SocketHandler()
103 private void initSocket(String host, String port) throws IOException { in initSocket() argument
105 if (host == null || host.isEmpty()) { in initSocket()
117 this.socket = new Socket(host, p); in initSocket()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLEngineTest.java94 String host = "new host"; in test_ConstructorLjava_lang_StringI02() local
96 SSLEngine e = getEngine(host, port); in test_ConstructorLjava_lang_StringI02()
97 assertEquals(e.getPeerHost(), host); in test_ConstructorLjava_lang_StringI02() local
326 String host = "new host"; in test_unwrap_02() local
331 SSLEngine sse = getEngine(host, port); in test_unwrap_02()
362 String host = "new host"; in test_unwrap_03() local
368 SSLEngine sse = getEngine(host, port); in test_unwrap_03()
384 String host = "new host"; in test_unwrap_04() local
391 SSLEngine sse = getEngine(host, port); in test_unwrap_04()
422 String host = "new host"; in test_unwrap_05() local
[all …]
/libcore/luni/src/main/java/libcore/net/url/
DFileHandler.java69 String host = url.getHost(); in openConnection() local
70 if (host == null || host.isEmpty() || host.equalsIgnoreCase("localhost")) { in openConnection()
75 URL ftpURL = new URL("ftp", host, url.getFile()); in openConnection()
/libcore/luni/src/main/java/javax/net/ssl/
DDefaultSSLSocketFactory.java50 public Socket createSocket(Socket s, String host, int port, boolean autoClose) in createSocket() argument
56 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { in createSocket() argument
61 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() argument
67 public Socket createSocket(InetAddress host, int port) throws IOException { in createSocket() argument
DDefaultHostnameVerifier.java41 public final boolean verify(String host, SSLSession session) { in verify() argument
44 return verify(host, (X509Certificate) certificates[0]); in verify()
50 public boolean verify(String host, X509Certificate certificate) { in verify() argument
51 return InetAddress.isNumeric(host) in verify()
52 ? verifyIpAddress(host, certificate) in verify()
53 : verifyHostName(host, certificate); in verify()
DSSLSocket.java763 protected SSLSocket(String host, int port) throws IOException, UnknownHostException { in SSLSocket() argument
764 super(host, port); in SSLSocket()
803 protected SSLSocket(String host, int port, InetAddress clientAddress, int clientPort) in SSLSocket() argument
805 super(host, port, clientAddress, clientPort); in SSLSocket()
/libcore/
DNativeCode.mk128 …LIBRARIES += $(core_shared_libraries) libexpat-host libicuuc-host libicui18n-host libcrypto-host l…
129 LOCAL_STATIC_LIBRARIES += $(core_static_libraries) libziparchive-host libutils
144 LOCAL_SHARED_LIBRARIES := libcrypto-host
DCaCerts.mk54 $(foreach cacert, $(cacerts), $(eval $(call include-prebuilt-with-destination-directory,host-cacert…
57 .PHONY: cacerts-host
58 cacerts-host: $(cacerts_host)
/libcore/benchmarks/src/benchmarks/regression/
DSSLSocketBenchmark.java43 final InetAddress host; field in SSLSocketBenchmark.WebSite
50 this.host = InetAddress.getByName(url.getHost()); in WebSite()
63 + "Host: " + host + portString + "\r\n" in WebSite()
82 Socket s = sf.createSocket(webSite.host, webSite.port); in time()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMySSLContextSpi.java95 protected SSLEngine engineCreateSSLEngine(String host, int port) { in engineCreateSSLEngine() argument
99 return new tmpSSLEngine(host, port); in engineCreateSSLEngine()
116 public tmpSSLEngine(String host, int port) { in tmpSSLEngine() argument
117 tmpHost = host; in tmpSSLEngine()
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DMySSLContextSpi.java93 protected SSLEngine engineCreateSSLEngine(String host, int port) { in engineCreateSSLEngine() argument
97 return new tmpSSLEngine(host, port); in engineCreateSSLEngine()
114 public tmpSSLEngine(String host, int port) { in tmpSSLEngine() argument
115 tmpHost = host; in tmpSSLEngine()
/libcore/luni/src/main/java/java/lang/
DSecurityManager.java40 public void checkAccept(String host, int port) { } in checkAccept() argument
46 public void checkConnect(String host, int port) { } in checkConnect() argument
48 public void checkConnect(String host, int port, Object context) { } in checkConnect() argument

123