HomeSort by relevance Sort by last modified time
    Searched refs:Proxy (Results 1 - 25 of 80) sorted by null

1 2 3 4

  /libcore/luni/src/test/java/libcore/java/net/
OldProxyTest.java 19 import java.net.Proxy;
28 Proxy proxy = new Proxy(Proxy.Type.SOCKS, address); local
29 assertEquals(address, proxy.address());
32 new Proxy(Proxy.Type.SOCKS, null);
42 Proxy proxy1 = new Proxy(Proxy.Type.HTTP, address1)
61 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); local
    [all...]
  /libcore/luni/src/main/java/java/net/
Proxy.java 19 * This class represents proxy server settings. A created instance of {@code
20 * Proxy} stores a type and an address and is immutable. There are three types
27 public class Proxy {
30 * Represents the proxy type setting {@code Proxy.Type.DIRECT}. It tells
31 * protocol handlers that there is no proxy to be used. The address is set
34 public static final Proxy NO_PROXY = new Proxy();
36 private Proxy.Type type;
41 * Creates a new {@code Proxy} instance. {@code SocketAddress} must NOT b
    [all...]
ProxySelectorImpl.java 81 public List<Proxy> select(URI uri) {
93 Proxy proxy = Proxy.NO_PROXY; local
96 proxy = selectHttpProxy(host);
98 proxy = selectHttpsProxy();
100 proxy = selectFtpProxy(host);
102 proxy = selectSocksProxy();
104 List<Proxy> proxyList = new ArrayList<Proxy>(1)
265 Proxy proxy; local
    [all...]
ProxySelector.java 22 * Selects an applicable proxy server when connecting to a resource specified by
23 * a URL. Proxy selectors are concrete subclasses of {@code ProxySelector} and
25 * connection can't be established, the caller should notify the proxy selector
101 * @return a list containing all applicable proxies. If no proxy is
102 * available, the list contains only the {@code Proxy.NO_PROXY}
107 public abstract List<Proxy> select(URI uri);
110 * Notifies the {@code ProxySelector} that a connection to the proxy server
118 * the address of the proxy.
  /external/easymock/src/org/easymock/internal/
JavaProxyFactory.java 19 import java.lang.reflect.Proxy;
24 return (T) Proxy.newProxyInstance(toMock.getClassLoader(),
  /cts/tests/tests/net/src/android/net/cts/
ProxyTest.java 20 import android.net.Proxy;
30 @TestTargetClass(Proxy.class)
44 method = "Proxy",
48 new Proxy();
77 int defaultPort = Proxy.getDefaultPort();
78 if(null == Proxy.getDefaultHost()) {
84 final String host = "proxy.example.com";
88 assertEquals(host, Proxy.getHost(mContext));
89 assertEquals(port, Proxy.getPort(mContext));
  /libcore/luni/src/test/java/tests/api/java/lang/reflect/
ProxyTest.java 27 import java.lang.reflect.Proxy;
36 value = Proxy.class,
41 "called from proxy is tested by ProxyTest.",
70 public Object invoke(Object proxy, Method method, Object[] args)
76 class ProxyCoonstructorTest extends Proxy {
83 * @tests java.lang.reflect.Proxy#getProxyClass(java.lang.ClassLoader,
93 Class proxy = Proxy.getProxyClass(Support_Proxy_I1.class local
96 assertTrue("Did not create a Proxy subclass ",
97 proxy.getSuperclass() == Proxy.class)
193 Support_Proxy_I1 proxy = (Support_Proxy_I1) p; local
259 Class proxy = Proxy.getProxyClass(Support_Proxy_I1.class local
    [all...]
  /dalvik/tests/044-proxy/src/
Clash.java 20 import java.lang.reflect.Proxy;
23 * Try to instantiate a proxy class with interfaces that have conflicting
32 Proxy.newProxyInstance(Clash.class.getClassLoader(),
41 Proxy.newProxyInstance(Clash.class.getClassLoader(),
65 public Object invoke(Object proxy, Method method, Object[] args)
Clash2.java 20 import java.lang.reflect.Proxy;
23 * Try to instantiate a proxy class with interfaces that have conflicting
31 Proxy.newProxyInstance(Clash.class.getClassLoader(),
55 public Object invoke(Object proxy, Method method, Object[] args)
Clash3.java 20 import java.lang.reflect.Proxy;
23 * Try to instantiate a proxy class with interfaces that have conflicting
31 Proxy.newProxyInstance(Clash.class.getClassLoader(),
70 public Object invoke(Object proxy, Method method, Object[] args)
Clash4.java 20 import java.lang.reflect.Proxy;
23 * Try to instantiate a proxy class with interfaces that have conflicting
31 Proxy.newProxyInstance(Clash.class.getClassLoader(),
72 public Object invoke(Object proxy, Method method, Object[] args)
  /libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/ftp/
Handler.java 21 import java.net.Proxy;
36 * Returns a connection, which is established via the <code>proxy</code>,
38 * <code>proxy</code> is DIRECT type, the connection is made in normal
43 * @param proxy
44 * the proxy which is used to make the connection
50 * if any argument is null or the type of proxy is wrong.
55 protected URLConnection openConnection(URL url, Proxy proxy) throws IOException {
56 if (url == null || proxy == null) {
57 throw new IllegalArgumentException("url == null || proxy == null")
    [all...]
FtpURLConnection.java 28 import java.net.Proxy;
95 private Proxy proxy; field in class:FtpURLConnection
97 private Proxy currentProxy;
131 * @param proxy
133 protected FtpURLConnection(URL url, Proxy proxy) {
135 this.proxy = proxy;
168 // Use system-wide ProxySelect to select proxy list
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/
Handler.java 21 import java.net.Proxy;
49 * Returns a connection, which is established via the <code>proxy</code>,
51 * <code>proxy</code> is DIRECT type, the connection is made in normal
56 * @param proxy
57 * the proxy which is used to make the connection
63 * if any argument is null or the type of proxy is wrong.
68 protected URLConnection openConnection(URL url, Proxy proxy) throws IOException {
69 if (url == null || proxy == null) {
70 throw new IllegalArgumentException("url == null || proxy == null")
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/https/
Handler.java 21 import java.net.Proxy;
37 protected URLConnection openConnection(URL url, Proxy proxy) throws IOException {
38 if (url == null || proxy == null) {
39 throw new IllegalArgumentException("url == null || proxy == null");
41 return new HttpsURLConnectionImpl(url, getDefaultPort(), proxy);
  /external/apache-http/src/org/apache/http/impl/conn/
ProxySelectorRoutePlanner.java 37 import java.net.Proxy;
59 * By default, it will pick up the proxy settings of the JVM, either
71 /** The proxy selector to use, or <code>null</code> for system default. */
76 * Creates a new proxy selector route planner.
79 * @param prosel the proxy selector, or
95 * Obtains the proxy selector to use.
97 * @return the proxy selector, or <code>null</code> for the system default
105 * Sets the proxy selector to use.
107 * @param prosel the proxy selector, or
143 final HttpHost proxy = determineProxy(target, request, context) local
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
HttpURLConnectionTest.java 33 import java.net.Proxy;
105 "HTTP/1.0 407 Proxy authentication required\n"
106 + "Proxy-authenticate: Basic realm=\"remotehost\"\n\n")
117 request.toLowerCase().indexOf("proxy-authorization:") > 0;
131 // proxy port
137 * Creates proxy selector instance.
138 * Selector will return the proxy, only if the connection
141 * Address of the returned proxy will be localhost:proxy_port.
149 public java.util.List<Proxy> select(URI uri) {
150 Proxy proxy = Proxy.NO_PROXY local
210 MockServer proxy = new MockServer("proxy"); local
256 MockServer proxy = new MockServer("proxy"); local
320 MockProxyServer proxy = new MockProxyServer("ProxyServer"); local
    [all...]
  /frameworks/base/core/java/android/os/storage/
IMountShutdownObserver.java 42 * generating a proxy if needed.
52 return new IMountShutdownObserver.Stub.Proxy(obj);
79 private static class Proxy implements IMountShutdownObserver {
82 Proxy(IBinder remote) {
IObbActionListener.java 43 * generating a proxy if needed.
53 return new IObbActionListener.Stub.Proxy(obj);
84 private static class Proxy implements IObbActionListener {
87 Proxy(IBinder remote) {
IMountServiceListener.java 43 * generating a proxy if needed.
53 return new IMountServiceListener.Stub.Proxy(obj);
92 private static class Proxy implements IMountServiceListener {
95 Proxy(IBinder remote) {
  /cts/tools/signature-tools/src/signature/model/impl/
Uninitialized.java 21 import java.lang.reflect.Proxy;
42 UNINITIALIZED = Proxy.newProxyInstance(Uninitialized.class
48 public Object invoke(Object proxy, Method method, Object[] args)
  /external/ppp/pppd/plugins/radius/etc/
dictionary.merit 6 ATTRIBUTE Proxy-State 33 string
  /libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/file/
Handler.java 21 import java.net.Proxy;
48 * <code>proxy</code> is not used in FileURLConnection.
52 * @param proxy
53 * Proxy
64 public URLConnection openConnection(URL url, Proxy proxy) throws IOException {
76 return (proxy == null) ? ftpURL.openConnection() : ftpURL.openConnection(proxy);
  /packages/apps/Settings/src/com/android/settings/
ProxySelector.java 23 import android.net.Proxy;
41 * To start the Proxy Selector activity, create the following intent.
82 setContentView(R.layout.proxy);
119 // Use the default proxy settings provided by the carrier
120 hostname = Proxy.getDefaultHost();
121 port = Proxy.getDefaultPort();
124 hostname = Proxy.getHost(this);
125 port = Proxy.getPort(this);
208 // the user has cleared the input boxes in order to not use a proxy.
211 // FIXME: If the user types in a proxy that matches the default, shoul
    [all...]
  /libcore/luni/src/main/java/java/lang/reflect/
Proxy.java 31 * {@code Proxy} defines methods for creating dynamic proxy classes and instances.
32 * A proxy class implements a declared set of interfaces and delegates method
38 public class Proxy implements Serializable {
56 private Proxy() {
60 * Constructs a new {@code Proxy} instance with the specified invocation
64 * the invocation handler for the newly created proxy
66 protected Proxy(InvocationHandler h) {
79 * the class loader that will define the proxy class
82 * interface that will be implemented by the returned proxy
    [all...]

Completed in 483 milliseconds

1 2 3 4