Searched refs:protocol (Results 1 - 23 of 23) sorted by relevance

/libcore/luni/src/main/java/java/net/
H A DURLStreamHandlerFactory.java22 * protocol. It is used by the class {@code URL}.
28 * protocol}.
30 * @param protocol
31 * the protocol for which a handler is needed.
34 URLStreamHandler createURLStreamHandler(String protocol); argument
H A DURL.java68 * In general, attempts to create URLs with any other protocol will fail with a
71 * java.protocol.handler.pkgs} system property.
73 * <p>The {@link URI} class can be used to manipulate URLs of any protocol.
84 private String protocol; field in class:URL
134 * URL or has an unsupported protocol.
146 * protocol's default stream handler.
148 * be parsed as a URL or an invalid protocol has been found.
159 protocol = UrlUtils.getSchemePrefix(spec);
160 int schemeSpecificPartStart = protocol != null ? (protocol
201 URL(String protocol, String host, String file) argument
215 URL(String protocol, String host, int port, String file) argument
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 DAuthenticator.java39 private String protocol; field in class:Authenticator
88 * Returns the protocol of the connection that requests authorization.
90 * @return protocol of the connection.
93 return this.protocol;
117 * protocol of the connection that requests authentication.
133 thisAuthenticator.protocol = rProtocol;
167 * protocol of the connection that requests authentication.
184 thisAuthenticator.protocol = rProtocol;
217 * protocol of the connection that requests authentication.
239 thisAuthenticator.protocol
[all...]
H A DURLStreamHandler.java26 * can handle the communication with a URL object over a particular protocol
59 * if the protocol handler doesn't support this method.
71 * The string is parsed in HTTP format. If the protocol has a different URL
217 * @param protocol
218 * the protocol.
231 protected void setURL(URL u, String protocol, String host, int port, argument
236 u.set(protocol, host, port, file, ref);
243 protected void setURL(URL u, String protocol, String host, int port, argument
249 u.set(protocol, host, port, authority, userInfo, path, query, ref);
303 * Returns true if {@code a} and {@code b} have the same protocol, hos
[all...]
H A DURLClassLoader.java408 String protocol = url.getProtocol();
409 if (protocol.equals("jar")) {
411 } else if (protocol.equals("file")) {
600 * method retrieves the permissions from the system policy. If the protocol
706 * the factory that will be used to create protocol-specific
768 String protocol = url.getProtocol();
770 if (isDirectory(url) || protocol.equals("jar")) {
777 // use jar protocol as the stream handler protocol
829 String protocol
[all...]
/libcore/luni/src/main/java/javax/net/ssl/
H A DSSLContext.java30 * The public API for secure socket protocol implementations. It acts as factory
83 * Creates a new {@code SSLContext} instance for the specified protocol.
125 * @param protocol
126 * the requested protocol to create a context for.
129 * if no installed provider can provide the requested protocol
131 * if {@code protocol} is {@code null} (instead of
134 public static SSLContext getInstance(String protocol) throws NoSuchAlgorithmException { argument
135 if (protocol == null) {
136 throw new NullPointerException("protocol == null");
138 Engine.SpiAndProvider sap = ENGINE.getInstance(protocol, nul
233 getInstance(String protocol, String provider) argument
264 getInstance(String protocol, Provider provider) argument
280 private final String protocol; field in class:SSLContext
292 SSLContext(SSLContextSpi contextSpi, Provider provider, String protocol) argument
[all...]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DSSLContextTest.java72 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) {
75 SSLContext newContext = SSLContext.getInstance(protocol);
87 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) {
88 SSLContext sslContext = SSLContext.getInstance(protocol);
89 if (!protocol.equals(StandardNames.SSL_CONTEXT_PROTOCOLS_DEFAULT)) {
190 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) {
191 assertNotNull(SSLContext.getInstance(protocol));
192 assertNotSame(SSLContext.getInstance(protocol),
193 SSLContext.getInstance(protocol));
206 for (String protocol
[all...]
H A DSSLEngineTest.java375 for (String protocol : e.getSupportedProtocols()) {
376 if ("SSLv2Hello".equals(protocol)) {
378 e.setEnabledProtocols(new String[] { protocol });
382 String[] protocols = new String[] { protocol };
H A DSSLSocketTest.java289 for (String protocol : ssl.getSupportedProtocols()) {
290 if ("SSLv2Hello".equals(protocol)) {
292 ssl.setEnabledProtocols(new String[] { protocol });
296 String[] protocols = new String[] { protocol };
/libcore/luni/src/test/java/libcore/java/net/
H A DOldURLStreamHandlerTest.java213 String protocol,
218 super.setURL(u, protocol, host, port, file, ref);
222 String protocol,
230 super.setURL(u, protocol, host, port, authority,
212 setURL(URL u, String protocol, String host, int port, String file, String ref) argument
221 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
H A DURLStreamHandlerFactoryTest.java75 // clear cached protocol handlers if they exist
80 System.setProperty("java.protocol.handler.pkgs", getHandlerPackageName());
84 System.clearProperty("java.protocol.handler.pkgs");
89 // clear cached protocol handlers if they exist
99 System.setProperty("java.protocol.handler.pkgs", getHandlerPackageName());
103 System.clearProperty("java.protocol.handler.pkgs");
113 @Override public URLStreamHandler createURLStreamHandler(String protocol) { argument
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLContext.java153 String protocol = "TLSv1.2";
157 createSSLContext(protocol, clientKeyManagers, client.trustManagers);
159 createSSLContext(protocol, serverKeyManagers, server.trustManagers);
207 public static final SSLContext createSSLContext(final String protocol, argument
212 SSLContext context = SSLContext.getInstance(protocol);
/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java281 @Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { argument
282 return tagSocket(os.socket(domain, type, protocol));
285 @Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { argument
286 os.socketpair(domain, type, protocol, fd1, fd2);
H A DForwardingOs.java150 public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); } argument
151 public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); } argument
H A DOs.java143 public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; argument
144 public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException; argument
H A DPosix.java194 public native FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; argument
195 public native void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException; argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/internal/net/www/protocol/file/
H A DFileURLConnectionTest.java17 package org.apache.harmony.tests.internal.net.www.protocol.file;
/libcore/support/src/test/java/libcore/java/security/
H A DStandardNames.java87 * protocol fallback (e.g., TLS 1.0 -> SSL 3.0) because the server didn't respond
988 for (String protocol : protocols) {
989 if (!remainingProtocols.remove(protocol)) {
990 unknownProtocols.add(protocol);
/libcore/luni/src/main/java/android/system/
H A DOs.java458 public static FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return Libcore.os.socket(domain, type, protocol); } argument
463 public static void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { Libcore.os.socketpair(domain, type, protocol, fd1, fd2); } argument
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
H A DHttpURLConnectionTest.java18 package org.apache.harmony.luni.tests.internal.net.www.protocol.http;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DURLTest.java70 assertEquals("u returns a wrong protocol", "http", u.getProtocol());
79 assertEquals("u1 returns a wrong protocol", "http", u1.getProtocol());
88 assertEquals("u2 returns a wrong protocol", "http", u2.getProtocol());
97 assertEquals("u2a returns a wrong protocol", "file", u2a.getProtocol());
107 assertEquals("u3 returns a wrong protocol", "http", u3.getProtocol());
115 assertEquals("u3a returns a wrong protocol", "file", u3a.getProtocol());
124 assertEquals("u3b returns a wrong protocol", "file", u3b.getProtocol());
134 assertEquals("u4 returns a wrong protocol", "http", u4.getProtocol());
142 assertEquals("u5 returns a wrong protocol", "file", u5.getProtocol());
149 assertEquals("u5a returns a wrong protocol", "fil
1092 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String file, String query, String ref) argument
[all...]
/libcore/luni/src/main/native/
H A Dlibcore_io_Posix.cpp1419 static jobject Posix_socket(JNIEnv* env, jobject, jint domain, jint type, jint protocol) { argument
1420 int fd = throwIfMinusOne(env, "socket", TEMP_FAILURE_RETRY(socket(domain, type, protocol)));
1424 static void Posix_socketpair(JNIEnv* env, jobject, jint domain, jint type, jint protocol, jobject javaFd1, jobject javaFd2) { argument
1426 int rc = throwIfMinusOne(env, "socketpair", TEMP_FAILURE_RETRY(socketpair(domain, type, protocol, fds)));
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
H A DHttpsURLConnectionTest.java18 package org.apache.harmony.luni.tests.internal.net.www.protocol.https;

Completed in 206 milliseconds