Searched defs:host (Results 1 - 25 of 495) sorted by path

1234567891011>>

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/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...]
H A DProxySelectorTest.java68 tcpUri = new URI("socket://host.com");
348 // set https proxy host empty
385 // set ftp host empty
522 * "host","port".
525 String host, int port) {
526 SocketAddress sa = InetSocketAddress.createUnresolved(host, port);
524 assertProxyEquals(List selectedProxyList, Proxy.Type type, String host, int port) argument
H A DSocketImplTest.java98 protected void connect(String host, int port) throws IOException { argument
H A DSocketTest.java49 InetSocketAddress addr = new InetSocketAddress(host, port);
77 new InetSocketAddress(host, port).getAddress());
82 host = socket.getInetAddress().getHostName();
115 String host = "localhost"; field in class:SocketTest
548 "Misconfiguration - local host is the loopback address",
H A DURITest.java38 "http://user%60%20info@host/a%20path?qu%60%20ery#fr%5E%20ag"),
41 "http://user%C3%9F%C2%A3info@host:80/a%E2%82%ACpath?qu%C2%A9%C2%AEery#fr%C3%A4%C3%A8g"),
44 "ascheme://user\u00DF\u00A3info@host:0/a\u20ACpath?qu\u00A9\u00AEery#fr\u00E4\u00E8g"),
46 // URI("ascheme://user\u00df\u00a3info@host:0/a\u0080path?qu\u00a9\u00aeery#fr\u00e4\u00e8g"),
49 new URI("http", "user%60%20info", "host", 80, "/a%20path", //$NON-NLS-4$
52 new URI("http", "user%C3%9F%C2%A3info", "host", -1,
56 new URI("ascheme", "user\u00DF\u00A3info", "host", 80,
59 // URI("ascheme", "user\u00df\u00a3info", "host", 80,
61 new URI("http", "user` info", "host", 81, "/a path", "qu` ery",
63 new URI("http", "user%info", "host",
400 construct1(String scheme, String userinfo, String host, int port, String path, String query, String fragment) argument
[all...]
H A DURLTest.java76 assertEquals("u returns a wrong host", "www.yahoo1.com", u.getHost());
85 assertEquals("u1 returns a wrong host", "www.yahoo2.com", u1.getHost());
94 assertEquals("u2 returns a wrong host", "www.yahoo3.com", u2.getHost());
103 assertEquals("u2a returns a wrong host", "www.yahoo3.com", u2a
113 assertEquals("u3 returns a wrong host", "www.yahoo4.com", u3.getHost());
121 assertEquals("u3a returns a wrong host", "www.yahoo4.com", u3a
130 assertEquals("u3b returns a wrong host", "www.yahoo4.com", u3b
140 assertEquals("u4 returns a wrong host", "www.yahoo5.com", u4.getHost());
148 assertTrue("u5 returns a wrong host", u5.getHost().equals(""));
155 assertTrue("u5a returns a wrong host", u5
1215 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String file, String query, String ref) argument
[all...]
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
H A DSSLEngineTest.java41 * SSLEngine object with null host and -1 port
53 * Test for <code>SSLEngine(String host, int port)</code> constructor
67 * Test for <code>SSLEngine(String host, int port)</code> constructor
70 String host = "new host";
72 SSLEngine e = new mySSLEngine(host, port);
73 assertEquals(e.getPeerHost(), host);
93 String host = "new host";
97 SSLEngine e = new mySSLEngine(host, por
368 mySSLEngine(String host, int port) argument
515 mySSLEngine1(String host, int port) argument
[all...]
H A DSSLSocketTest.java111 public MySSLSocket(String host, int port) throws IOException, argument
113 super(host, port);
125 public MySSLSocket(String host, int port, InetAddress clientAddress, argument
127 super(host, port, clientAddress, clientPort);
/external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/
H A DSocketFactoryTest.java85 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument
90 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument
96 public Socket createSocket(InetAddress host, int port) throws IOException { argument
/external/apache-harmony/x-net/src/test/java/javax/net/ssl/
H A DMySSLContextSpi.java82 protected SSLEngine engineCreateSSLEngine(String host, int port) { argument
86 return new tmpSSLEngine(host, port);
104 public tmpSSLEngine(String host, int port) { argument
105 tmpHost = host;
/external/apache-harmony/x-net/src/test/support/common/java/org/apache/harmony/xnet/tests/support/
H A DMySSLContextSpi.java90 protected SSLEngine engineCreateSSLEngine(String host, int port) { argument
94 return new tmpSSLEngine(host, port);
112 public tmpSSLEngine(String host, int port) { argument
113 tmpHost = host;
/external/apache-http/src/org/apache/http/auth/
H A DAuthScope.java38 * The class represents an authentication scope consisting of a host name,
50 * The <tt>null</tt> value represents any host. In the future versions of
71 * Default scope matching any host, port, realm and authentication scheme.
83 /** The host the credentials apply to. */
84 private final String host; field in class:AuthScope
90 * <tt>host</tt>, <tt>port</tt>, <tt>realm</tt>, and
93 * @param host the host the credentials apply to. May be set
95 * any host.
106 public AuthScope(final String host, in argument
129 AuthScope(final String host, int port, final String realm) argument
144 AuthScope(final String host, int port) argument
[all...]
/external/apache-http/src/org/apache/http/client/params/
H A DClientParamBean.java80 public void setVirtualHost (final HttpHost host) { argument
81 params.setParameter(ClientPNames.VIRTUAL_HOST, host);
88 public void setDefaultHost (final HttpHost host) { argument
89 params.setParameter(ClientPNames.DEFAULT_HOST, host);
/external/apache-http/src/org/apache/http/client/utils/
H A DURIUtils.java55 * @param host
75 final String host,
82 if (host != null) {
87 buffer.append(host);
111 * A convenience method for creating a new {@link URI} whose scheme, host
112 * and port are taken from the target host, but whose path, query and
119 * Contains the scheme, host and port to use.
73 createURI( final String scheme, final String host, int port, final String path, final String query, final String fragment) argument
/external/apache-http/src/org/apache/http/conn/
H A DHttpHostConnectException.java45 private final HttpHost host; field in class:HttpHostConnectException
47 public HttpHostConnectException(final HttpHost host, final ConnectException cause) { argument
48 super("Connection to " + host + " refused");
49 this.host = host;
54 return this.host;
H A DMultihomePlainSocketFactory.java87 * given host name resolves to. If connection to all addresses fail, the
91 * @param host Host name to connect to
100 public Socket connectSocket(Socket sock, String host, int port, argument
105 if (host == null) {
106 throw new IllegalArgumentException("Target host may not be null.");
128 InetAddress[] inetadrs = InetAddress.getAllByName(host);
/external/apache-http/src/org/apache/http/conn/scheme/
H A DLayeredSocketFactory.java49 * Returns a socket connected to the given host that is layered over an
54 * @param host the host name/IP
55 * @param port the port on the host
62 * @throws UnknownHostException if the IP address of the host cannot be
67 String host,
65 createSocket( Socket socket, String host, int port, boolean autoClose ) argument
H A DPlainSocketFactory.java84 public Socket connectSocket(Socket sock, String host, int port, argument
89 if (host == null) {
90 throw new IllegalArgumentException("Target host may not be null.");
114 remoteAddress = new InetSocketAddress(this.nameResolver.resolve(host), port);
116 remoteAddress = new InetSocketAddress(host, port);
H A DSchemeRegistry.java88 * Obtains the scheme for a host.
89 * Convenience method for <code>getScheme(host.getSchemeName())</pre>
91 * @param host the host for which to obtain the scheme
93 * @return the scheme for the given host, never <code>null</code>
98 public synchronized final Scheme getScheme(HttpHost host) { argument
99 if (host == null) {
102 return getScheme(host.getSchemeName());
H A DSocketFactory.java71 * Connects a socket to the given host.
77 * @param host the host to connect to
78 * @param port the port to connect to on the host
90 * @throws UnknownHostException if the IP address of the target host
97 String host,
115 * socket to a host in the same intranet ("trusted zone")
95 connectSocket( Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params ) argument
/external/apache-http/src/org/apache/http/conn/ssl/
H A DAbstractVerifier.java86 public final void verify(String host, SSLSocket ssl) argument
88 if(host == null) {
89 throw new NullPointerException("host to verify is null");
95 verify(host, x509);
98 public final boolean verify(String host, SSLSession session) { argument
102 verify(host, x509);
110 public final void verify(String host, X509Certificate cert) argument
114 verify(host, cns, subjectAlts);
117 public final void verify(final String host, final String[] cns, argument
139 String msg = "Certificate for <" + host
[all...]
H A DAllowAllHostnameVerifier.java43 final String host,
42 verify( final String host, final String[] cns, final String[] subjectAlts) argument
H A DBrowserCompatHostnameVerifier.java51 final String host,
54 verify(host, cns, subjectAlts, false);
50 verify( final String host, final String[] cns, final String[] subjectAlts) argument
H A DSSLSocketFactory.java279 final String host,
286 if (host == null) {
287 throw new IllegalArgumentException("Target host may not be null.");
312 remoteAddress = new InetSocketAddress(this.nameResolver.resolve(host), port);
314 remoteAddress = new InetSocketAddress(host, port);
321 hostnameVerifier.verify(host, sslsock);
371 final String host,
377 host,
381 hostnameVerifier.verify(host, sslSocket);
277 connectSocket( final Socket sock, final String host, final int port, final InetAddress localAddress, int localPort, final HttpParams params ) argument
369 createSocket( final Socket socket, final String host, final int port, final boolean autoClose ) argument
H A DStrictHostnameVerifier.java58 final String host,
61 verify(host, cns, subjectAlts, true);
57 verify( final String host, final String[] cns, final String[] subjectAlts) argument

Completed in 332 milliseconds

1234567891011>>