Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/net/
DURL.java169 private String protocol; field in URL
313 public URL(String protocol, String host, int port, String file) in URL() argument
316 this(protocol, host, port, file, null); in URL()
337 public URL(String protocol, String host, String file) in URL() argument
339 this(protocol, host, -1, file); in URL()
381 public URL(String protocol, String host, int port, String file, in URL() argument
391 protocol = protocol.toLowerCase(); in URL()
392 this.protocol = protocol; in URL()
428 (handler = getURLStreamHandler(protocol)) == null) { in URL()
429 throw new MalformedURLException("unknown protocol: " + protocol); in URL()
[all …]
DAuthenticator.java163 String protocol, in requestPasswordAuthentication() argument
182 a.requestingProtocol = protocol; in requestPasswordAuthentication()
225 String protocol, in requestPasswordAuthentication() argument
245 a.requestingProtocol = protocol; in requestPasswordAuthentication()
290 String protocol, in requestPasswordAuthentication() argument
312 a.requestingProtocol = protocol; in requestPasswordAuthentication()
DURLStreamHandlerFactory.java50 URLStreamHandler createURLStreamHandler(String protocol); in createURLStreamHandler() argument
DURLStreamHandler.java124 String protocol = u.getProtocol(); in parseURL() local
368 setURL(u, protocol, host, port, authority, userInfo, path, query, ref); in parseURL()
566 protected void setURL(URL u, String protocol, String host, int port, in setURL() argument
594 protected void setURL(URL u, String protocol, String host, int port, in setURL() argument
624 setURL(u, protocol, host, port, authority, userInfo, path, query, ref); in setURL()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLContext.java96 private final String protocol; field in SSLContext
106 String protocol) { in SSLContext() argument
109 this.protocol = protocol; in SSLContext()
197 public static SSLContext getInstance(String protocol) in getInstance() argument
200 ("SSLContext", SSLContextSpi.class, protocol); in getInstance()
202 protocol); in getInstance()
240 public static SSLContext getInstance(String protocol, String provider) in getInstance() argument
243 ("SSLContext", SSLContextSpi.class, protocol, provider); in getInstance()
245 protocol); in getInstance()
277 public static SSLContext getInstance(String protocol, Provider provider) in getInstance() argument
[all …]
DTEST_MAPPING16 "include-filter": "org.apache.harmony.luni.tests.internal.net.www.protocol.https"
/libcore/ojluni/src/main/java/sun/net/util/
DURLUtil.java47 String protocol = url.getProtocol(); in urlNoFragString() local
48 if (protocol != null) { in urlNoFragString()
50 protocol = protocol.toLowerCase(); in urlNoFragString()
51 strForm.append(protocol); in urlNoFragString()
/libcore/ojluni/src/main/java/sun/net/spi/
DDefaultProxySelector.java158 String protocol = uri.getScheme(); in select() local
184 if (protocol == null || host == null) { in select()
185 throw new IllegalArgumentException("protocol = "+protocol+" host = "+host); in select()
191 if ("http".equalsIgnoreCase(protocol)) { in select()
193 } else if ("https".equalsIgnoreCase(protocol)) { in select()
199 } else if ("ftp".equalsIgnoreCase(protocol)) { in select()
201 } else if ("socket".equalsIgnoreCase(protocol)) { in select()
208 final String proto = protocol; in select()
345 private int defaultPort(String protocol) { in defaultPort() argument
346 if ("http".equalsIgnoreCase(protocol)) { in defaultPort()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/net/
DURL.java34 public URL(java.lang.String protocol, java.lang.String host, int port, java.lang.String file) in URL() argument
39 public URL(java.lang.String protocol, java.lang.String host, java.lang.String file) in URL() argument
45 java.lang.String protocol, in URL() argument
67 private boolean isValidProtocol(java.lang.String protocol) { in isValidProtocol() argument
76 java.lang.String protocol, in set() argument
85 java.lang.String protocol, in set() argument
184 static java.net.URLStreamHandler getURLStreamHandler(java.lang.String protocol) { in getURLStreamHandler() argument
188 private static java.net.URLStreamHandler createBuiltinHandler(java.lang.String protocol) in createBuiltinHandler() argument
261 private java.lang.String protocol; field in URL
DAuthenticator.java48 java.lang.String protocol, in requestPasswordAuthentication() argument
58 java.lang.String protocol, in requestPasswordAuthentication() argument
68 java.lang.String protocol, in requestPasswordAuthentication() argument
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DHandler.java26 package sun.net.www.protocol.jar;
99 String protocol = u.getProtocol(); in hashCode() local
100 if (protocol != null) in hashCode()
101 h += protocol.hashCode(); in hashCode()
DJarFileFactory.java26 package sun.net.www.protocol.jar;
/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.java125 @Override public URLStreamHandler createURLStreamHandler(String protocol) { in createURLStreamHandler() argument
DURLTest.java196 protocol -> new libcore.java.net.customstreamhandler.http.Handler()); in withCustomURLStreamHandlerFactory()
261 String protocol, String host, int port, String authority, String file) { in assertFields() argument
263 asList(protocol, host, port, authority, file), in assertFields()
460 for (String protocol : Arrays.asList("file", "ftp", "jar", "http", "https")) { in testCommonProtocolsAreHandledByBuiltinHandlers()
462 (URLStreamHandler) getURLStreamHandler.invoke(null, protocol); in testCommonProtocolsAreHandledByBuiltinHandlers()
463 assertNotNull("Handler for protocol " + protocol + " should exist", handler); in testCommonProtocolsAreHandledByBuiltinHandlers()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLContext.java263 String protocol = "TLSv1.2"; in createWithAdditionalKeyManagers() local
267 createSSLContext(protocol, clientKeyManagers, client.trustManagers); in createWithAdditionalKeyManagers()
269 createSSLContext(protocol, serverKeyManagers, server.trustManagers); in createWithAdditionalKeyManagers()
317 public static final SSLContext createSSLContext(final String protocol, in createSSLContext() argument
322 SSLContext context = SSLContext.getInstance(protocol); in createSSLContext()
/libcore/luni/src/module/java/
Dmodule-info.java84 exports sun.net.www.protocol.file;
85 exports sun.net.www.protocol.ftp;
86 exports sun.net.www.protocol.jar;
/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/luni/src/main/java/java/net/
DTEST_MAPPING10 "include-filter": "org.apache.harmony.luni.tests.internal.net.www.protocol.http"
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
DHandler.java30 package sun.net.www.protocol.ftp;
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
DHandler.java26 package sun.net.www.protocol.file;
DFileURLConnection.java32 package sun.net.www.protocol.file;
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java400 … @Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { in socket() argument
401 final FileDescriptor fd = super.socket(domain, type, protocol); in socket()
408 …@Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescr… in socketpair() argument
409 super.socketpair(domain, type, protocol, fd1, fd2); in socketpair()
DClassPathURLStreamHandler.java32 import sun.net.www.protocol.jar.Handler;
DForwardingOs.java827 …riptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain,… in socket() argument
832 …omain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.… in socketpair() argument

12