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

12

/libcore/ojluni/src/main/java/java/net/
H A DURLStreamHandlerFactory.java30 * protocol handlers.
33 * {@code URLStreamHandler} for a specific protocol.
43 * protocol.
45 * @param protocol the protocol ("{@code ftp}",
47 * @return a {@code URLStreamHandler} for the specific protocol.
50 URLStreamHandler createURLStreamHandler(String protocol); argument
H A DURL.java59 * The URL above indicates that the protocol to use is
64 * meaning of this name on the host machine is both protocol
72 * the protocol is used instead. For example, the default port for
117 * the protocol, host name, or port number is missing, the value is
147 // static final String BUILTIN_HANDLERS_PREFIX = "sun.net.www.protocol";
153 * for protocol handlers. The value of this property (if any) should
155 * for a protocol handler to load. The policy of this class is that
156 * all protocol handlers will be in a class called <protocolname>.Handler,
159 * default package prefix, sun.net.www.protocol, is used. The search
163 private static final String protocolPathProp = "java.protocol
169 private String protocol; field in class:URL
313 URL(String protocol, String host, int port, String file) argument
337 URL(String protocol, String host, String file) argument
381 URL(String protocol, String host, int port, String file, URLStreamHandler handler) argument
644 isValidProtocol(String protocol) argument
679 set(String protocol, String host, int port, String file, String ref) argument
716 set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
1160 getURLStreamHandler(String protocol) argument
1277 createBuiltinHandler(String protocol) argument
1551 private final String protocol; field in class:UrlDeserializedState
1559 UrlDeserializedState(String protocol, String host, int port, String authority, String file, String ref, int hashCode) argument
[all...]
H A DAuthenticator.java145 * @param protocol The protocol that's requesting the connection
163 String protocol,
182 a.requestingProtocol = protocol;
205 * @param protocol The protocol that's requesting the connection
225 String protocol,
245 a.requestingProtocol = protocol;
266 * @param protocol The protocol tha
160 requestPasswordAuthentication( InetAddress addr, int port, String protocol, String prompt, String scheme) argument
221 requestPasswordAuthentication( String host, InetAddress addr, int port, String protocol, String prompt, String scheme) argument
286 requestPasswordAuthentication( String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, RequestorType reqType) argument
[all...]
H A DURLStreamHandler.java36 * superclass for all stream protocol handlers. A stream protocol
37 * handler knows how to make a connection for a particular protocol
42 * first time a protocol name is encountered when constructing a
43 * {@code URL}, the appropriate stream protocol handler is
56 * <p>If for the handler's protocol (such as HTTP or JAR), there
90 * implements the protocol doesn't support this method.
106 * {@code http} specification. Most URL protocol families have a
107 * similar parsing. A stream protocol handler for a protocol tha
550 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
578 setURL(URL u, String protocol, String host, int port, String file, String ref) argument
[all...]
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DSSLContext.java34 * Instances of this class represent a secure socket protocol
80 * This protocol is described in the <a href=
92 private final String protocol; field in class:SSLContext
99 * @param protocol the protocol
102 String protocol) {
105 this.protocol = protocol;
160 * specified secure socket protocol.
166 * Provider that supports the specified protocol i
101 SSLContext(SSLContextSpi contextSpi, Provider provider, String protocol) argument
187 getInstance(String protocol) argument
230 getInstance(String protocol, String provider) argument
267 getInstance(String protocol, Provider provider) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/util/
H A DURLUtil.java47 String protocol = url.getProtocol();
48 if (protocol != null) {
49 /* protocol is compared case-insensitive, so convert to lowercase */
50 protocol = protocol.toLowerCase();
51 strForm.append(protocol);
92 // If protocol is HTTP or HTTPS than use URLPermission object
/libcore/ojluni/src/main/java/sun/net/spi/
H A DDefaultProxySelector.java47 * provides backward compatibility with the old http protocol handler
50 * Most of the implementation copied from the old http protocol handler
60 * support for each given protocol.
62 * - 1 row per protocol (http, ftp, ...)
63 * - 1st element of each row is the protocol name
78 * protocol, Property prefix 1, Property prefix 2, ...
116 * it's not necessary. Therefore we do cache the result, on a per-protocol
156 String protocol = uri.getScheme();
182 if (protocol == null || host == null) {
183 throw new IllegalArgumentException("protocol
343 defaultPort(String protocol) argument
[all...]
/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/ojluni/src/main/java/sun/net/www/protocol/ftp/
H A DHandler.java30 package sun.net.www.protocol.ftp;
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
H A DHandler.java26 package sun.net.www.protocol.jar;
99 String protocol = u.getProtocol();
100 if (protocol != null)
101 h += protocol.hashCode();
H A DJarFileFactory.java26 package sun.net.www.protocol.jar;
H A DJarURLConnection.java26 package sun.net.www.protocol.jar;
/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.java87 // clear cached protocol handlers if they exist
92 System.setProperty("java.protocol.handler.pkgs", getHandlerPackageName());
96 System.clearProperty("java.protocol.handler.pkgs");
101 // clear cached protocol handlers if they exist
111 System.setProperty("java.protocol.handler.pkgs", getHandlerPackageName());
115 System.clearProperty("java.protocol.handler.pkgs");
125 @Override public URLStreamHandler createURLStreamHandler(String protocol) { argument
H A DURLTest.java184 * Temporarily registers a {@link URLStreamHandlerFactory} that accepts any protocol,
196 protocol -> new libcore.java.net.customstreamhandler.http.Handler());
261 String protocol, String host, int port, String authority, String file) {
263 asList(protocol, host, port, authority, file),
460 for (String protocol : Arrays.asList("file", "ftp", "jar", "http", "https")) {
462 (URLStreamHandler) getURLStreamHandler.invoke(null, protocol);
463 assertNotNull("Handler for protocol " + protocol + " should exist", handler);
260 assertFields(URL url, String protocol, String host, int port, String authority, String file) argument
/libcore/luni/src/module/java/
H A Dmodule-info.java82 exports sun.net.www.protocol.file;
83 exports sun.net.www.protocol.ftp;
84 exports sun.net.www.protocol.jar;
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLContext.java263 String protocol = "TLSv1.2";
267 createSSLContext(protocol, clientKeyManagers, client.trustManagers);
269 createSSLContext(protocol, serverKeyManagers, server.trustManagers);
317 public static final SSLContext createSSLContext(final String protocol, argument
322 SSLContext context = SSLContext.getInstance(protocol);
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
H A DHandler.java26 package sun.net.www.protocol.file;
H A DFileURLConnection.java32 package sun.net.www.protocol.file;
/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java310 @Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { argument
311 final FileDescriptor fd = os.socket(domain, type, protocol);
318 @Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { argument
319 os.socketpair(domain, type, protocol, fd1, fd2);
H A DClassPathURLStreamHandler.java33 import sun.net.www.protocol.jar.Handler;
95 * {@link sun.net.www.protocol.jar.Handler} and its treatment of directory entries.
H A DOs.java165 public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; argument
166 public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException; argument
H A DForwardingOs.java178 public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); } argument
179 public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); } argument
/libcore/luni/src/main/java/android/system/
H A DOs.java549 public static FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return Libcore.os.socket(domain, type, protocol); } argument
554 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;

Completed in 437 milliseconds

12