Home
last modified time | relevance | path

Searched refs:protocol (Results 1 – 24 of 24) sorted by relevance

/libcore/luni/src/main/java/java/net/
DURL.java84 private String protocol; field in URL
159 protocol = UrlUtils.getSchemePrefix(spec); in URL()
160 int schemeSpecificPartStart = protocol != null ? (protocol.length() + 1) : 0; in URL()
163 if (protocol != null && context != null && !protocol.equals(context.protocol)) { in URL()
169 set(context.protocol, context.getHost(), context.getPort(), context.getAuthority(), in URL()
175 } else if (protocol == null) { in URL()
182 throw new MalformedURLException("Unknown protocol: " + protocol); 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
[all …]
DAuthenticator.java39 private String protocol; field in Authenticator
93 return this.protocol; in getRequestingProtocol()
133 thisAuthenticator.protocol = rProtocol; in requestPasswordAuthentication()
184 thisAuthenticator.protocol = rProtocol; in requestPasswordAuthentication()
239 thisAuthenticator.protocol = rProtocol; in requestPasswordAuthentication()
DURLStreamHandlerFactory.java34 URLStreamHandler createURLStreamHandler(String protocol); in createURLStreamHandler() argument
DURLStreamHandler.java231 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()
DURLClassLoader.java408 String protocol = url.getProtocol(); in getSubHandler() local
409 if (protocol.equals("jar")) { in getSubHandler()
411 } else if (protocol.equals("file")) { in getSubHandler()
768 String protocol = url.getProtocol(); in createSearchURL() local
770 if (isDirectory(url) || protocol.equals("jar")) { in createSearchURL()
829 String protocol = nextCandidate.getProtocol(); in makeNewHandler() local
830 if (protocol.equals("jar")) { in makeNewHandler()
832 } else if (protocol.equals("file")) { in makeNewHandler()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLContextTest.java72 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { in test_SSLContext_setDefault()
75 SSLContext newContext = SSLContext.getInstance(protocol); in test_SSLContext_setDefault()
87 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { in test_SSLContext_defaultConfiguration()
88 SSLContext sslContext = SSLContext.getInstance(protocol); in test_SSLContext_defaultConfiguration()
89 if (!protocol.equals(StandardNames.SSL_CONTEXT_PROTOCOLS_DEFAULT)) { in test_SSLContext_defaultConfiguration()
190 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { in test_SSLContext_getInstance()
191 assertNotNull(SSLContext.getInstance(protocol)); in test_SSLContext_getInstance()
192 assertNotSame(SSLContext.getInstance(protocol), in test_SSLContext_getInstance()
193 SSLContext.getInstance(protocol)); in test_SSLContext_getInstance()
206 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { in test_SSLContext_getInstance()
[all …]
DSSLEngineTest.java401 for (String protocol : e.getSupportedProtocols()) { in test_SSLEngine_setEnabledProtocols()
402 if ("SSLv2Hello".equals(protocol)) { in test_SSLEngine_setEnabledProtocols()
404 e.setEnabledProtocols(new String[] { protocol }); in test_SSLEngine_setEnabledProtocols()
408 String[] protocols = new String[] { protocol }; in test_SSLEngine_setEnabledProtocols()
DSSLSocketTest.java291 for (String protocol : ssl.getSupportedProtocols()) { in test_SSLSocket_setEnabledProtocols()
292 if ("SSLv2Hello".equals(protocol)) { in test_SSLSocket_setEnabledProtocols()
294 ssl.setEnabledProtocols(new String[] { protocol }); in test_SSLSocket_setEnabledProtocols()
298 String[] protocols = new String[] { protocol }; in test_SSLSocket_setEnabledProtocols()
/libcore/luni/src/main/java/javax/net/ssl/
DSSLContext.java134 public static SSLContext getInstance(String protocol) throws NoSuchAlgorithmException { in getInstance() argument
135 if (protocol == null) { in getInstance()
138 Engine.SpiAndProvider sap = ENGINE.getInstance(protocol, null); in getInstance()
139 return new SSLContext((SSLContextSpi) sap.spi, sap.provider, protocol); in getInstance()
233 public static SSLContext getInstance(String protocol, String provider) in getInstance() argument
245 return getInstance(protocol, impProvider); in getInstance()
264 public static SSLContext getInstance(String protocol, Provider provider) in getInstance() argument
269 if (protocol == null) { in getInstance()
272 Object spi = ENGINE.getInstance(protocol, provider, null); in getInstance()
273 return new SSLContext((SSLContextSpi) spi, provider, protocol); in getInstance()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DOldURLStreamHandlerTest.java213 String protocol, in setURL() argument
218 super.setURL(u, protocol, host, port, file, ref); in setURL()
222 String protocol, in setURL() argument
230 super.setURL(u, protocol, host, port, authority, in setURL()
DURLStreamHandlerFactoryTest.java113 @Override public URLStreamHandler createURLStreamHandler(String protocol) { in createURLStreamHandler() argument
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLContext.java154 String protocol = "TLSv1.2"; in createWithAdditionalKeyManagers() local
158 createSSLContext(protocol, clientKeyManagers, client.trustManagers); in createWithAdditionalKeyManagers()
160 createSSLContext(protocol, serverKeyManagers, server.trustManagers); in createWithAdditionalKeyManagers()
208 public static final SSLContext createSSLContext(final String protocol, in createSSLContext() argument
213 SSLContext context = SSLContext.getInstance(protocol); in createSSLContext()
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java281 … @Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { in socket() argument
282 return tagSocket(os.socket(domain, type, protocol)); in socket()
285 …@Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescr… in socketpair() argument
286 os.socketpair(domain, type, protocol, fd1, fd2); in socketpair()
DForwardingOs.java150 …riptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain,… in socket() argument
151 …omain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.… in socketpair() argument
DOs.java143 public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; in socket() argument
144 …public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2)… in socketpair() argument
DPosix.java224 public native FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; in socket() argument
225 …public native void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescript… in socketpair() argument
/libcore/luni/src/main/java/android/system/
DOs.java444 …or socket(int domain, int type, int protocol) throws ErrnoException { return Libcore.os.socket(dom… in socket() argument
449 …n, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { Libcore… in socketpair() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/internal/net/www/protocol/file/
DFileURLConnectionTest.java17 package org.apache.harmony.tests.internal.net.www.protocol.file;
/libcore/support/src/test/java/libcore/java/security/
DStandardNames.java988 for (String protocol : protocols) { in assertValidProtocols()
989 if (!remainingProtocols.remove(protocol)) { in assertValidProtocols()
990 unknownProtocols.add(protocol); in assertValidProtocols()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java18 package org.apache.harmony.luni.tests.internal.net.www.protocol.http;
/libcore/expectations/
Dbrokentests.txt134 …"org.apache.harmony.luni.tests.internal.net.www.protocol.http.HttpURLConnectionTest#testProxyAutho…
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURLTest.java1092 protected void setURL(URL u, String protocol, String host, int port, in setURL() argument
1095 super.setURL(u, protocol, host, port, authority, userInfo, in setURL()
/libcore/luni/src/main/native/
Dlibcore_io_Posix.cpp1414 static jobject Posix_socket(JNIEnv* env, jobject, jint domain, jint type, jint protocol) { in Posix_socket() argument
1415 int fd = throwIfMinusOne(env, "socket", TEMP_FAILURE_RETRY(socket(domain, type, protocol))); in Posix_socket()
1419 static void Posix_socketpair(JNIEnv* env, jobject, jint domain, jint type, jint protocol, jobject j… in Posix_socketpair() argument
1421 … = throwIfMinusOne(env, "socketpair", TEMP_FAILURE_RETRY(socketpair(domain, type, protocol, fds))); in Posix_socketpair()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java18 package org.apache.harmony.luni.tests.internal.net.www.protocol.https;