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

1 2 3 4 5 6 7 8 91011>>

  /external/javassist/src/main/javassist/tools/rmi/
Proxy.java 19 * An interface implemented by proxy classes.
23 public interface Proxy {
  /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...]
ProxySelectorTest.java 20 import java.net.Proxy;
66 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(ftpUri));
67 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(httpUri));
68 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(httpsUri));
69 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(socketUri));
70 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(otherUri));
79 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 80))),
81 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("b", 80)))
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
ProxyTest.java 19 import java.net.Proxy;
29 * java.net.Proxy#Proxy(java.net.Proxy.Type, SocketAddress)
32 // test HTTP type proxy
33 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); local
34 assertEquals(Proxy.Type.HTTP, proxy.type())
52 Proxy proxy = null; local
111 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); local
170 Proxy proxy[] = { new Proxy(Proxy.Type.HTTP, address1), local
    [all...]
ProxySelectorTest.java 21 import java.net.Proxy;
112 // no proxy, return a proxyList only contains NO_PROXY
114 assertProxyEquals(proxyList, Proxy.NO_PROXY);
116 // set http proxy
119 // set https proxy
122 // set ftp proxy
125 // set socks proxy
130 assertProxyEquals(proxyList, Proxy.Type.HTTP, HTTP_PROXY_HOST, HTTP_PROXY_PORT);
133 assertProxyEquals(proxyList, Proxy.Type.HTTP, HTTPS_PROXY_HOST, HTTPS_PROXY_PORT);
136 assertProxyEquals(proxyList, Proxy.Type.HTTP, FTP_PROXY_HOST, FTP_PROXY_PORT)
527 Proxy proxy = new Proxy(type, sa); local
    [all...]
  /cts/tests/tests/net/src/android/net/cts/
ProxyTest.java 20 import android.net.Proxy;
26 new Proxy();
32 int defaultPort = Proxy.getDefaultPort();
33 if(null == Proxy.getDefaultHost()) {
  /libcore/ojluni/src/main/java/sun/net/
ApplicationProxy.java 28 import java.net.Proxy;
32 * Proxy wrapper class so that we can determine application set
35 public final class ApplicationProxy extends Proxy {
36 private ApplicationProxy(Proxy proxy) {
37 super(proxy.type(), proxy.address());
40 public static ApplicationProxy create(Proxy proxy) {
41 return new ApplicationProxy(proxy);
    [all...]
SocksProxy.java 28 import java.net.Proxy;
32 * Proxy wrapper class so we can determine the socks protocol version.
34 public final class SocksProxy extends Proxy {
38 super(Proxy.Type.SOCKS, addr);
  /art/runtime/mirror/
proxy.h 28 // C++ mirror of java.lang.reflect.Proxy.
29 class MANAGED Proxy FINAL : public Object {
34 DISALLOW_IMPLICIT_CONSTRUCTORS(Proxy);
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Authenticator.java 19 import java.net.Proxy;
22 * Responds to authentication challenges from the remote web or proxy server.
41 Request authenticate(Proxy proxy, Response response) throws IOException;
47 * status code sent by the proxy server.
50 * derived from the initial request by setting the "Proxy-Authorization"
55 * .header("Proxy-Authorization", credential)
59 Request authenticateProxy(Proxy proxy, Response response) throws IOException;
Route.java 19 import java.net.Proxy;
25 * <li><strong>HTTP proxy:</strong> a proxy server may be explicitly
27 * proxy selector} is used. It may return multiple proxies to attempt.
29 * server or a proxy, opening a socket requires an IP address. The DNS
36 final Proxy proxy; field in class:Route
39 public Route(Address address, Proxy proxy, InetSocketAddress inetSocketAddress) {
43 if (proxy == null)
    [all...]
  /prebuilts/jdk/jdk8/darwin-x86/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/
TestUtils.java 44 import java.lang.reflect.Proxy;
70 * Returns the ObjectName of the MBean that a proxy object
73 public static ObjectName getObjectName(Object proxy) {
74 if (!(proxy instanceof Proxy))
75 throw new IllegalArgumentException("not a "+Proxy.class.getName());
76 final Proxy p = (Proxy) proxy;
78 Proxy.getInvocationHandler(proxy)
    [all...]
  /prebuilts/jdk/jdk8/linux-x86/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/
TestUtils.java 44 import java.lang.reflect.Proxy;
70 * Returns the ObjectName of the MBean that a proxy object
73 public static ObjectName getObjectName(Object proxy) {
74 if (!(proxy instanceof Proxy))
75 throw new IllegalArgumentException("not a "+Proxy.class.getName());
76 final Proxy p = (Proxy) proxy;
78 Proxy.getInvocationHandler(proxy)
    [all...]
  /external/apache-harmony/luni/src/test/api/common/
Proxy2Test.java 18 import java.lang.reflect.Proxy;
29 Class pc = Proxy.getProxyClass(DefaultPkgIntf.class.getClassLoader(),
31 assertTrue(pc.getName().startsWith("$Proxy"));
  /external/clang/test/CodeCompletion/
member-access.cpp 23 class Proxy {
28 void test(const Proxy &p) {
  /external/easymock/src/org/easymock/internal/
JavaProxyFactory.java 19 import java.lang.reflect.Proxy;
24 return (T) Proxy.newProxyInstance(toMock.getClassLoader(),
  /libcore/ojluni/src/main/java/java/net/
Proxy.java 29 * This class represents a proxy setting, typically a type (http, socks) and
31 * A {@code Proxy} is an immutable object.
38 public class Proxy {
41 * Represents the proxy type.
47 * Represents a direct connection, or the absence of a proxy.
51 * Represents proxy for high level protocols such as HTTP or FTP.
55 * Represents a SOCKS (V4 or V5) proxy.
64 * A proxy setting that represents a {@code DIRECT} connection,
67 * proxy settings (like SOCKS):
69 * {@code Socket s = new Socket(Proxy.NO_PROXY);
    [all...]
  /frameworks/support/lifecycle/compiler/src/tests/test-data/
InheritanceOk1.java 32 class Proxy extends Base1 {
35 class Derived1 extends Proxy {
41 class Derived2 extends Proxy {
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
ProxyTest.java 27 import java.lang.reflect.Proxy;
55 public Object invoke(Object proxy, Method method, Object[] args)
61 class ProxyCoonstructorTest extends Proxy {
68 * java.lang.reflect.Proxy#getProxyClass(java.lang.ClassLoader,
72 Class proxy = Proxy.getProxyClass(Support_Proxy_I1.class local
75 assertTrue("Did not create a Proxy subclass ",
76 proxy.getSuperclass() == Proxy.class);
77 assertTrue("Does not believe its a Proxy class ", Prox
142 Support_Proxy_I1 proxy = (Support_Proxy_I1) p; local
186 Class proxy = Proxy.getProxyClass(Support_Proxy_I1.class local
    [all...]
  /external/okhttp/android/main/java/com/squareup/okhttp/
OkUrlFactories.java 22 import java.net.Proxy;
36 public static HttpURLConnection open(OkUrlFactory okUrlFactory, URL url, Proxy proxy) {
37 return okUrlFactory.open(url, proxy);
  /frameworks/base/core/java/android/net/
PacProxySelector.java 28 import java.net.Proxy;
29 import java.net.Proxy.Type;
43 private static final String PROXY = "PROXY ";
46 private final List<Proxy> mDefaultList;
53 Log.e(TAG, "PacManager: no proxy service");
55 mDefaultList = Lists.newArrayList(java.net.Proxy.NO_PROXY);
59 public List<Proxy> select(URI uri) {
65 Log.e(TAG, "select: no proxy service return NO_PROXY");
66 return Lists.newArrayList(java.net.Proxy.NO_PROXY)
103 Proxy proxy = proxyFromHostPort(Type.HTTP, trimmed.substring(PROXY.length())); local
108 Proxy proxy = proxyFromHostPort(Type.SOCKS, trimmed.substring(SOCKS.length())); local
    [all...]
  /external/libbrillo/brillo/glib/
dbus.cc 17 bool CallPtrArray(const Proxy& proxy,
26 if (!::dbus_g_proxy_call(proxy.gproxy(), method, &Resetter(&error).lvalue(),
109 bool RetrieveProperties(const Proxy& proxy,
114 if (!::dbus_g_proxy_call(proxy.gproxy(), "GetAll", &Resetter(&error).lvalue(),
126 Proxy::Proxy()
132 Proxy::Proxy(const BusConnection& connection
221 Proxy proxy = brillo::dbus::Proxy(connection, local
    [all...]
dbus.h 67 friend class Proxy;
81 // \brief Proxy manages the ref-count for a ::DBusGProxy*.
83 // Proxy has reference semantics and represents a connection to on object on
84 // the bus. A proxy object is constructed with a connection to a bus, a name
88 class BRILLO_EXPORT Proxy {
92 Proxy();
96 Proxy(const BusConnection& connection,
102 // Equivalent to Proxy(connection, name, path, interface, false).
103 Proxy(const BusConnection& connection,
108 // Creates a peer proxy using dbus_g_proxy_new_for_peer
191 const Proxy& proxy() const { return proxy_; } function in class:brillo::dbus::MonitorConnection
213 const Proxy& proxy() const { return proxy_; } function in class:brillo::dbus::MonitorConnection
235 const Proxy& proxy() const { return proxy_; } function in class:brillo::dbus::MonitorConnection
262 const Proxy& proxy() const { return proxy_; } function in class:brillo::dbus::MonitorConnection
    [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
RouteSelector.java 25 import java.net.Proxy;
35 * choice of proxy server, IP address, and TLS mode. Connections may also be
43 private Proxy lastProxy;
46 /* State for negotiating the next proxy to use. */
47 private List<Proxy> proxies = Collections.emptyList();
102 if (failedRoute.getProxy().type() != Proxy.Type.DIRECT && address.getProxySelector() != null) {
103 // Tell the proxy selector when we fail to connect on a fresh connection.
111 /** Prepares the proxy servers to try. */
112 private void resetNextProxy(HttpUrl url, Proxy proxy) {
    [all...]
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
RecordingOkAuthenticator.java 21 import java.net.Proxy;
27 public final List<Proxy> proxies = new ArrayList<>();
39 public Proxy onlyProxy() {
44 @Override public Request authenticate(Proxy proxy, Response response) {
46 proxies.add(proxy);
52 @Override public Request authenticateProxy(Proxy proxy, Response response) {
54 proxies.add(proxy);
56 .addHeader("Proxy-Authorization", credential
    [all...]

Completed in 593 milliseconds

1 2 3 4 5 6 7 8 91011>>