Searched defs:proxy (Results 1 - 25 of 26) sorted by relevance

12

/dalvik/libcore/luni/src/main/java/java/lang/reflect/
H A DInvocationHandler.java21 * Implementors of this interface dispatch methods invoked on proxy instances.
28 * Handles the method which was originally invoked on the proxy instance. A
32 * public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
36 * Object result = method.invoke(proxy, args);
42 * @param proxy
43 * the proxy instance on which the method was invoked
45 * the method invoked on the proxy instance
55 * the exception to throw from the invoked method on the proxy.
60 public Object invoke(Object proxy, Method method, Object[] args) argument
H A DProxy.java33 * {@code Proxy} defines methods for creating dynamic proxy classes and instances.
34 * A proxy class implements a declared set of interfaces and delegates method
66 * the invocation handler for the newly created proxy
81 * the class loader that will define the proxy class
84 * interface that will be implemented by the returned proxy
86 * @return a proxy class that implements all of the interfaces referred to
141 // search cache for matching proxy class using the class loader
209 * the class loader that will define the proxy class
212 * interface that will be implemented by the returned proxy
217 * @return a new proxy objec
278 getInvocationHandler(Object proxy) argument
[all...]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/ftp/
H A DHandler.java38 * Returns a connection, which is established via the <code>proxy</code>,
40 * <code>proxy</code> is DIRECT type, the connection is made in normal
45 * @param proxy
46 * the proxy which is used to make the connection
52 * if any argument is null or the type of proxy is wrong.
57 protected URLConnection openConnection(URL u, Proxy proxy) argument
59 if (null == u || null == proxy) {
62 return new FtpURLConnection(u, proxy);
H A DFtpURLConnection.java98 private Proxy proxy; field in class:FtpURLConnection
134 * @param proxy
136 protected FtpURLConnection(URL url, Proxy proxy) { argument
138 this.proxy = proxy;
171 // Use system-wide ProxySelect to select proxy list,
172 // then try to connect via elements in the proxy list.
174 if (null != proxy) {
176 proxyList.add(proxy);
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/
H A DHandler.java51 * Returns a connection, which is established via the <code>proxy</code>,
53 * <code>proxy</code> is DIRECT type, the connection is made in normal
58 * @param proxy
59 * the proxy which is used to make the connection
65 * if any argument is null or the type of proxy is wrong.
70 protected URLConnection openConnection(URL u, Proxy proxy) argument
72 if (null == u || null == proxy) {
75 return new HttpURLConnectionImpl(u, getDefaultPort(), proxy);
H A DHttpConfiguration.java38 private Proxy proxy; field in class:HttpConfiguration
56 public HttpConfiguration(URI uri, Proxy proxy) { argument
58 this.proxy = proxy;
59 if (proxy.type() == Proxy.Type.HTTP) {
60 SocketAddress proxyAddr = proxy.address();
69 // using SOCKS proxy
81 SocketAddress proxyAddr = proxy.address();
95 return proxy != null;
99 * Returns the Proxy for this configuration, or null if a proxy
[all...]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/https/
H A DHandler.java39 protected URLConnection openConnection(URL url, Proxy proxy) argument
41 if ((url == null) || (proxy == null)) {
42 // K034b=url and proxy can not be null
45 return new HttpsURLConnectionImpl(url, getDefaultPort(), proxy);
H A DHttpsURLConnectionImpl.java54 protected HttpsURLConnectionImpl(URL url, int port, Proxy proxy) { argument
56 httpsEngine = new HttpsEngine(url, port, proxy);
351 // In case of using proxy this field indicates
359 protected HttpsEngine(URL url, int port, Proxy proxy) { argument
360 super(url, port, proxy);
369 // SSL Tunnel through the proxy was not established yet, do so
/dalvik/tests/044-proxy/src/
H A DClash.java23 * Try to instantiate a proxy class with interfaces that have conflicting
65 public Object invoke(Object proxy, Method method, Object[] args) argument
H A DClash2.java23 * Try to instantiate a proxy class with interfaces that have conflicting
55 public Object invoke(Object proxy, Method method, Object[] args) argument
H A DClash3.java23 * Try to instantiate a proxy class with interfaces that have conflicting
70 public Object invoke(Object proxy, Method method, Object[] args) argument
H A DClash4.java23 * Try to instantiate a proxy class with interfaces that have conflicting
72 public Object invoke(Object proxy, Method method, Object[] args) argument
H A DWrappedThrow.java31 Object proxy;
34 proxy = Proxy.newProxyInstance(WrappedThrow.class.getClassLoader(),
42 InterfaceW1 if1 = (InterfaceW1) proxy;
43 InterfaceW2 if2 = (InterfaceW2) proxy;
176 * Invocation handler for our proxy class.
186 * This is called when anything gets invoked in the proxy object.
188 public Object invoke(Object proxy, Method method, Object[] args) argument
H A DBasicTest.java33 Object proxy = createProxy(proxyMe);
35 if (!Proxy.isProxyClass(proxy.getClass()))
36 System.err.println("not a proxy class?");
37 if (Proxy.getInvocationHandler(proxy) == null)
41 Shapes shapes = (Shapes) proxy;
45 Quads quads = (Quads) proxy;
48 Colors colors = (Colors) proxy;
72 Method[] methods = proxy.getClass().getDeclaredMethods();
79 Field[] fields = proxy.getClass().getDeclaredFields();
87 /* create the proxy clas
222 invoke(Object proxy, Method method, Object[] args) argument
[all...]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/file/
H A DHandler.java50 * <code>proxy</code> is not used in FileURLConnection.
54 * @param proxy
66 public URLConnection openConnection(URL url, Proxy proxy) argument
69 // K034b=url and proxy can not be null
81 return (proxy == null) ? ftpURL.openConnection() : ftpURL
82 .openConnection(proxy);
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/
H A DNetUtil.java30 * Returns whether to use a SOCKS proxy.
32 * @param proxy java.net.Proxy <code>proxy</code> is used to determine
33 * whether using SOCKS proxy.
34 * @return true if only the type of <code>proxy</code> is
37 public static boolean usingSocks(Proxy proxy) { argument
38 if (null != proxy && Proxy.Type.SOCKS == proxy.type()) {
65 * Gets proxy list according to the URI by system ProxySelector.
68 * @return a list of proxy fo
[all...]
H A DPlainSocketImpl.java85 Proxy proxy; field in class:PlainSocketImpl
98 * creates an instance with specified proxy.
100 public PlainSocketImpl(Proxy proxy) { argument
102 this.proxy = proxy;
115 if (NetUtil.usingSocks(proxy)) {
240 if (NetUtil.usingSocks(proxy)) {
313 if (NetUtil.usingSocks(proxy)) {
356 * Gets the SOCKS proxy server port.
359 // get socks server port from proxy
[all...]
/dalvik/libcore/luni-kernel/src/main/java/org/apache/harmony/lang/annotation/
H A DAnnotationFactory.java39 * The annotation implementation based on dynamically generated proxy instances.
287 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable argument
/dalvik/libcore/luni/src/main/java/java/net/
H A DURLStreamHandler.java46 * u} using the given {@code proxy}. Since different protocols also have
51 * @param proxy
52 * the proxy that is used to make the connection.
57 * if any argument is {@code null} or the type of proxy is
62 protected URLConnection openConnection(URL u, Proxy proxy) argument
H A DURL.java681 * connection will be established through the given proxy and allows
684 * @param proxy
685 * the proxy through which the connection will be established.
692 * to the proxy.
694 * if the argument proxy is {@code null} or is an invalid type.
699 public URLConnection openConnection(Proxy proxy) throws IOException { argument
700 if (proxy == null) {
701 // K034c=proxy should not be null
706 if (sm != null && proxy.type() != Proxy.Type.DIRECT) {
707 InetSocketAddress pAddress = (InetSocketAddress) proxy
[all...]
H A DSocket.java62 private Proxy proxy; field in class:Socket
101 * Creates a new unconnected socket using the given proxy type. When a
107 * proxy server: <br>
111 * @param proxy
112 * the specified proxy for this socket.
114 * if the argument {@code proxy} is {@code null} or of an
118 * connect to the given proxy.
122 public Socket(Proxy proxy) { argument
123 if (null == proxy || Proxy.Type.HTTP == proxy
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DProxyTest.java41 "called from proxy is tested by ProxyTest.",
70 public Object invoke(Object proxy, Method method, Object[] args) argument
93 Class proxy = Proxy.getProxyClass(Support_Proxy_I1.class
97 proxy.getSuperclass() == Proxy.class);
99 .isProxyClass(proxy));
150 public Object invoke(Object proxy, Method method, Object[] args)
173 public Object invoke(Object proxy, Method method, Object[] args)
176 return new Boolean(proxy == args[0]);
193 Support_Proxy_I1 proxy = (Support_Proxy_I1) p;
194 assertTrue("Failed identity test ", proxy
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/net/
H A DProxySelectorTest.java199 // no proxy, return a proxyList only contains NO_PROXY
203 // set http proxy
206 // set https proxy
209 // set ftp proxy
212 // set socks proxy
246 // no proxy, return a proxyList only contains NO_PROXY
250 // set http proxy
253 // set https proxy
256 // set ftp proxy
259 // set socks proxy
658 assertProxyEquals(List selectedProxyList, Proxy proxy) argument
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DSerializationStressTest4.java2648 public Object invoke(Object proxy, Method method, Object[] args) argument
2651 return new Boolean(proxy == args[0]);
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DURLTest.java1032 public URLConnection openConnection(URL arg0, Proxy proxy) argument
1034 return super.openConnection(u, proxy);

Completed in 1003 milliseconds

12