Searched refs:proxy (Results 1 - 25 of 36) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/net/
H A DApplicationProxy.java36 private ApplicationProxy(Proxy proxy) { argument
37 super(proxy.type(), proxy.address());
40 public static ApplicationProxy create(Proxy proxy) { argument
41 return new ApplicationProxy(proxy);
H A DNetworkClient.java49 protected Proxy proxy = Proxy.NO_PROXY; field in class:NetworkClient
154 if (proxy != null) {
155 if (proxy.type() == Proxy.Type.SOCKS) {
159 return new Socket(proxy);
161 } else if (proxy.type() == Proxy.Type.DIRECT) {
164 // Still connecting through a proxy
165 // server & port will be the proxy address and port
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DProxyTest.java32 // test HTTP type proxy
33 Proxy proxy = new Proxy(Proxy.Type.HTTP, address);
34 assertEquals(Proxy.Type.HTTP, proxy.type());
35 assertEquals(address, proxy.address());
37 // test SOCKS type proxy
38 proxy = new Proxy(Proxy.Type.SOCKS, address);
39 assertEquals(Proxy.Type.SOCKS, proxy.type());
40 assertEquals(address, proxy.address());
42 // test DIRECT type proxy
43 proxy
[all...]
H A DProxySelectorTest.java112 // no proxy, return a proxyList only contains NO_PROXY
116 // set http proxy
119 // set https proxy
122 // set ftp proxy
125 // set socks proxy
153 // no proxy, return a proxyList only contains NO_PROXY
157 // set http proxy
160 // set https proxy
163 // set ftp proxy
166 // set socks proxy
513 assertProxyEquals(List selectedProxyList, Proxy proxy) argument
[all...]
/libcore/ojluni/src/main/java/java/lang/reflect/
H A DInvocationHandler.java30 * the <i>invocation handler</i> of a proxy instance.
32 * <p>Each proxy instance has an associated invocation handler.
33 * When a method is invoked on a proxy instance, the method
44 * Processes a method invocation on a proxy instance and returns
46 * when a method is invoked on a proxy instance that it is
49 * @param proxy the proxy instance that the method was invoked on
52 * the interface method invoked on the proxy instance. The declaring
55 * proxy interface that the proxy clas
93 invoke(Object proxy, Method method, Object[] args) argument
[all...]
H A DProxy.java50 * {@code Proxy} provides static methods for creating dynamic proxy
52 * dynamic proxy classes created by those methods.
54 * <p>To create a proxy for some interface {@code Foo}:
70 * <p>A <i>dynamic proxy class</i> (simply referred to as a <i>proxy
75 * A <i>proxy interface</i> is such an interface that is implemented
76 * by a proxy class.
78 * A <i>proxy instance</i> is an instance of a proxy class.
80 * Each proxy instanc
799 getInvocationHandler(Object proxy) argument
811 invoke(Proxy proxy, Method method, Object[] args) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/ssl/
H A DKrb5Helper.java48 private static final Krb5Proxy proxy = field in class:Krb5Helper
67 return proxy != null;
71 if (proxy == null)
81 return proxy.getClientSubject(acc);
90 return proxy.getServerSubject(acc);
99 return proxy.getServerKeys(acc);
107 return proxy.getServerPrincipalName(kerberosKey);
115 return proxy.getPrincipalHostName(principal);
124 return proxy.getServicePermission(principalName, action);
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/
H A DHandler.java38 protected String proxy; field in class:Handler
46 proxy = null;
50 public Handler (String proxy, int port) { argument
51 this.proxy = proxy;
H A DNTLMAuthenticationProxy.java44 static final NTLMAuthenticationProxy proxy = tryLoadNTLMAuthentication(); field in class:NTLMAuthenticationProxy
45 static final boolean supported = proxy != null ? true : false;
/libcore/ojluni/src/main/java/sun/net/www/protocol/https/
H A DHandler.java38 protected String proxy; field in class:Handler
46 proxy = null;
50 public Handler (String proxy, int port) { argument
51 this.proxy = proxy;
H A DHttpsClient.java129 // use an application-level HTTP proxy. We might tunnel through
130 // our http proxy, though.
239 * the specified proxy server.
248 * the specified proxy server, with a connect timeout
262 HttpsClient(SSLSocketFactory sf, URL url, Proxy proxy, argument
265 this.proxy = proxy;
298 * the specified proxy server.
345 if ((ret.proxy != null && ret.proxy
[all...]
/libcore/ojluni/src/main/java/sun/util/logging/
H A DLoggingSupport.java48 private static final LoggingProxy proxy = field in class:LoggingSupport
71 return proxy != null;
75 if (proxy == null)
81 return proxy.getLoggerNames();
85 return proxy.getLoggerLevel(loggerName);
90 proxy.setLoggerLevel(loggerName, levelName);
95 return proxy.getParentLoggerName(loggerName);
100 return proxy.getLogger(name);
105 return proxy.getLevel(logger);
110 proxy
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DOldProxyTest.java28 Proxy proxy = new Proxy(Proxy.Type.SOCKS, address);
29 assertEquals(address, proxy.address());
61 Proxy proxy = new Proxy(Proxy.Type.HTTP, address);
62 assertEquals(Proxy.Type.HTTP, proxy.type());
64 proxy = new Proxy(Proxy.Type.SOCKS, address);
65 assertEquals(Proxy.Type.SOCKS, proxy.type());
67 proxy = Proxy.NO_PROXY;
68 assertEquals(Proxy.Type.DIRECT, proxy.type());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
H A DProxyTest.java55 public Object invoke(Object proxy, Method method, Object[] args) argument
72 Class proxy = Proxy.getProxyClass(Support_Proxy_I1.class
76 proxy.getSuperclass() == Proxy.class);
78 .isProxyClass(proxy));
104 public Object invoke(Object proxy, Method method, Object[] args)
122 public Object invoke(Object proxy, Method method, Object[] args)
125 return new Boolean(proxy == args[0]);
142 Support_Proxy_I1 proxy = (Support_Proxy_I1) p;
143 assertTrue("Failed identity test ", proxy.equals(proxy));
[all...]
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
H A DHttpURLConnectionTest.java108 request.toLowerCase().indexOf("proxy-authorization:") > 0;
122 // proxy port
128 * Creates proxy selector instance.
129 * Selector will return the proxy, only if the connection
132 * Address of the returned proxy will be localhost:proxy_port.
141 Proxy proxy = Proxy.NO_PROXY;
144 proxy = new Proxy(Proxy.Type.HTTP,
148 result.add(proxy);
183 * Test checks if the proxy specified in openConnection
189 MockServer proxy
[all...]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DProxyTest.java34 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
40 * Make sure the proxy's class loader fails if it cannot see the class
64 Object proxy = Proxy.newProxyInstance(loaderA, interfacesA, invocationHandlerB);
65 assertEquals(loaderA, proxy.getClass().getClassLoader());
66 assertEquals("foo", proxy.getClass().getMethod("echo", String.class).invoke(proxy, "foo"));
249 @Override public Object invoke(Object proxy, Method method, Object[] args) {
262 @Override public Object invoke(Object proxy, Method method, Object[] args) {
272 @Override public Object invoke(Object proxy, Method method, Object[] args) {
282 @Override public Object invoke(Object proxy, Metho
395 invoke(Object proxy, Method method, Object[] args) argument
[all...]
H A DAnnotationsTest.java206 @Override public Object invoke(Object proxy, Method method, Object[] args) {
211 Object proxy = Proxy.newProxyInstance(getClass().getClassLoader(),
213 assertSetEquals(proxy.getClass().getMethod("foo").getExceptionTypes(),
215 assertSetEquals(proxy.getClass().getMethod("foo", Void.class).getExceptionTypes());
/libcore/support/src/test/java/tests/io/
H A DMockOs.java56 @Override public Object invoke(Object proxy, Method method, Object[] args)
62 return handler.invoke(proxy, method, args);
115 @Override public Object invoke(Object proxy, Method method, Object[] args) throws ErrnoException {
/libcore/ojluni/src/main/java/java/beans/
H A DPropertyChangeSupport.java111 PropertyChangeListenerProxy proxy =
114 addPropertyChangeListener(proxy.getPropertyName(),
115 proxy.getListener());
137 PropertyChangeListenerProxy proxy =
140 removePropertyChangeListener(proxy.getPropertyName(),
141 proxy.getListener());
163 * PropertyChangeListenerProxy proxy =
165 * if (proxy.getPropertyName().equals("foo")) {
166 * // proxy is a PropertyChangeListener which was associated
/libcore/ojluni/src/main/java/sun/net/www/http/
H A DHttpClient.java86 // are we using proxy in this instance?
107 * through a Netscape proxy to a server that sent me a keep-alive
108 * time of 15 sec, the proxy unilaterally terminates my connection
110 * 4 sec for the case where we're using a proxy. *SIGH*
201 proxy = (p == null) ? Proxy.NO_PROXY : p;
231 * @param proxy proxy to use for this URL (e.g. forwarding)
232 * @param proxyPort proxy port to use for this URL
284 if ((ret.proxy != null && ret.proxy
[all...]
/libcore/luni/src/test/java/libcore/java/util/beans/
H A DPropertyChangeSupportTest.java196 PropertyChangeListenerProxy proxy = new PropertyChangeListenerProxy("a", listener);
197 support.addPropertyChangeListener("b", proxy);
199 // this proxy sets us up to receive 'b' events
205 // there's no more proxy on 'a'.
260 PropertyChangeListenerProxy proxy = (PropertyChangeListenerProxy) listener;
261 return proxy.getPropertyName() + " to " + describe(proxy.getListener());
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DPSKKeyManagerProxy.java77 public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable { argument
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
H A DFtpClient.java58 private Proxy proxy; field in class:FtpClient
600 // the first place. Most likely because the proxy is doing
637 if (proxy != null) {
638 if (proxy.type() == Proxy.Type.SOCKS) {
643 return new Socket(proxy);
724 if (proxy != null && proxy.type() == Proxy.Type.SOCKS) {
893 proxy = p;
898 * Get the proxy of this FtpClient
905 return proxy;
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DSerializationTest.java404 public Object invoke(Object proxy, Method method, Object[] args) { argument
410 // This was created by serializing a proxy referencing WasInterface when it was an
436 public Object invoke(Object proxy, Method method, Object[] args) { argument
442 // This was created by serializing a proxy referencing WasSerializableInvocationHandler when
/libcore/ojluni/src/main/java/java/net/
H A DSocket.java91 * Creates an unconnected socket, specifying the type of proxy, if any,
95 * is called with the proxy host address and port number
100 * a plain socket ignoring any other proxy configuration.</LI>
102 * will create a socket connecting through the specified SOCKS proxy
106 * @param proxy a {@link java.net.Proxy Proxy} object specifying what kind
108 * @throws IllegalArgumentException if the proxy is of an invalid type
111 * permission to connect to the proxy is
118 public Socket(Proxy proxy) { argument
120 if (proxy == null) {
123 Proxy p = proxy
[all...]

Completed in 3626 milliseconds

12