Searched defs:protocol (Results 1 - 25 of 30) 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 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...]
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...]
/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/luni/src/test/java/libcore/java/net/
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 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 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/ojluni/src/main/java/sun/net/www/protocol/ftp/
H A DHandler.java30 package sun.net.www.protocol.ftp;
H A DFtpURLConnection.java31 package sun.net.www.protocol.ftp;
85 // It relies on the removed sun.net.www.protocol.http.HttpURLConnection API.
257 // It relies on the removed sun.net.www.protocol.http.HttpURLConnection API.
286 // It relies on the removed sun.net.www.protocol.http.HttpURLConnection API.
313 new GetPropertyAction("ftp.protocol.user",
428 // It relies on the removed sun.net.www.protocol.http.HttpURLConnection API.
546 // It relies on the removed sun.net.www.protocol.http.HttpURLConnection API.
/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/ojluni/src/main/java/sun/net/www/protocol/jar/
H A DJarFileFactory.java26 package 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 DURLJarFile.java26 package sun.net.www.protocol.jar;
H A DJarURLConnection.java26 package sun.net.www.protocol.jar;
/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/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/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/luni/src/main/java/libcore/io/
H A DIoBridge.java637 public static FileDescriptor socket(int domain, int type, int protocol) throws SocketException { argument
640 fd = Libcore.os.socket(domain, type, protocol);
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);
/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/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/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;
/libcore/ojluni/src/main/java/java/io/
H A DObjectOutputStream.java183 /** stream protocol version */
184 private int protocol = PROTOCOL_VERSION_2; field in class:ObjectOutputStream
291 * Specify stream protocol version to use when writing the stream.
318 protocol = version;
1036 * Returns protocol version in use.
1039 return protocol;
1334 if (protocol == PROTOCOL_VERSION_1) {
1335 // do not invoke class descriptor write hook with old protocol
1511 if (protocol == PROTOCOL_VERSION_1) {

Completed in 852 milliseconds

12