/libcore/luni/src/main/java/java/net/ |
H A D | URLStreamHandlerFactory.java | 22 * 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 D | Authenticator.java | 39 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 D | URLStreamHandler.java | 26 * 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 D | URL.java | 68 * 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...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | URLStreamHandlerFactoryTest.java | 75 // 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
|
H A D | OldURLStreamHandlerTest.java | 213 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
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/internal/net/www/protocol/file/ |
H A D | FileURLConnectionTest.java | 17 package org.apache.harmony.tests.internal.net.www.protocol.file;
|
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | SSLContext.java | 30 * 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/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
H A D | HttpURLConnectionTest.java | 18 package org.apache.harmony.luni.tests.internal.net.www.protocol.http;
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | TestSSLContext.java | 154 String protocol = "TLSv1.2"; 158 createSSLContext(protocol, clientKeyManagers, client.trustManagers); 160 createSSLContext(protocol, serverKeyManagers, server.trustManagers); 208 public static final SSLContext createSSLContext(final String protocol, argument 213 SSLContext context = SSLContext.getInstance(protocol);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | URLTest.java | 70 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/java/libcore/io/ |
H A D | BlockGuardOs.java | 281 @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 D | ForwardingOs.java | 150 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 D | Os.java | 143 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 D | Posix.java | 224 public native FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; argument 225 public native void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException; argument
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
H A D | HttpsURLConnectionTest.java | 18 package org.apache.harmony.luni.tests.internal.net.www.protocol.https;
|
/libcore/luni/src/main/java/android/system/ |
H A D | Os.java | 444 public static FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return Libcore.os.socket(domain, type, protocol); } argument 449 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/main/native/ |
H A D | libcore_io_Posix.cpp | 1414 static jobject Posix_socket(JNIEnv* env, jobject, jint domain, jint type, jint protocol) { argument 1415 int fd = throwIfMinusOne(env, "socket", TEMP_FAILURE_RETRY(socket(domain, type, protocol))); 1419 static void Posix_socketpair(JNIEnv* env, jobject, jint domain, jint type, jint protocol, jobject javaFd1, jobject javaFd2) { argument 1421 int rc = throwIfMinusOne(env, "socketpair", TEMP_FAILURE_RETRY(socketpair(domain, type, protocol, fds)));
|