Searched defs:route (Results 1 - 25 of 47) sorted by relevance

12

/external/apache-http/src/org/apache/http/conn/params/
H A DConnPerRoute.java37 * allowed for for a given route. This class can be used by pooling
39 * a fine-grained control of connections on a per route basis.
54 int getMaxForRoute(HttpRoute route); argument
H A DConnRouteParamBean.java68 public void setForcedRoute (final HttpRoute route) { argument
69 params.setParameter(ConnRoutePNames.FORCED_ROUTE, route);
H A DConnPerRouteBean.java42 * a fine-grained control of connections on a per route basis.
86 public void setMaxForRoute(final HttpRoute route, int max) { argument
87 if (route == null) {
89 ("HTTP route may not be null.");
95 this.maxPerHostMap.put(route, Integer.valueOf(max));
98 public int getMaxForRoute(final HttpRoute route) { argument
99 if (route == null) {
101 ("HTTP route may not be null.");
103 Integer max = this.maxPerHostMap.get(route);
H A DConnRouteParams.java43 * An adaptor for accessing route related parameters in {@link HttpParams}.
69 * A special value indicating "no route".
70 * This is a route with {@link #NO_HOST} as the target.
133 * @return the forced route set in the argument parameters, or
140 HttpRoute route = (HttpRoute)
142 if ((route != null) && NO_ROUTE.equals(route)) {
144 route = null;
146 return route;
155 * @param route th
160 setForcedRoute(HttpParams params, HttpRoute route) argument
[all...]
/external/nist-sip/java/gov/nist/javax/sip/parser/
H A DRouteParser.java31 * Parser for a list of route headers.
45 * @param route message to parse to set
47 public RouteParser(String route) { argument
48 super(route);
70 Route route = new Route();
71 super.parse(route);
72 routeList.add(route);
/external/apache-http/src/org/apache/http/impl/client/
H A DRoutedRequest.java38 * A request with the route along which it should be sent.
56 protected final HttpRoute route; field in class:RoutedRequest
62 * @param route the route
64 public RoutedRequest(final RequestWrapper req, final HttpRoute route) { argument
67 this.route = route;
75 return route;
/external/apache-http/src/org/apache/http/impl/conn/tsccm/
H A DBasicPoolEntry.java64 * @param route the planned route for the connection
69 HttpRoute route,
71 super(op, route);
72 if (route == null) {
73 throw new IllegalArgumentException("HTTP route may not be null");
83 return super.route;
68 BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, ReferenceQueue<Object> queue) argument
H A DBasicPoolEntryRef.java43 * This reference explicitly keeps the planned route, so the connection
53 /** The planned route of the entry. */
54 private final HttpRoute route; field in class:BasicPoolEntryRef
70 route = entry.getPlannedRoute();
75 * Obtain the planned route for the referenced entry.
76 * The planned route is still available, even if the entry is gone.
78 * @return the planned route
81 return this.route;
H A DAbstractConnPool.java152 * @param route the route for which to get the connection
157 * @return pool entry holding a connection for the route
166 HttpRoute route,
171 return requestPoolEntry(route, state).getPoolEntry(timeout, tunit);
178 public abstract PoolEntryRequest requestPoolEntry(HttpRoute route, Object state); argument
211 final HttpRoute route =
214 log.debug("Connection garbage collected. " + route);
216 handleLostEntry(route);
227 * Handles cleaning up for a lost pool entry with the given route
165 getEntry( HttpRoute route, Object state, long timeout, TimeUnit tunit) argument
233 handleLostEntry(HttpRoute route) argument
[all...]
H A DRouteSpecificPool.java46 * A connection sub-pool for a specific route, used by {@link ConnPoolByRoute}.
59 /** The route this pool is for. */
60 protected final HttpRoute route; field in class:RouteSpecificPool
80 * Creates a new route-specific pool.
82 * @param route the route for which to pool
85 public RouteSpecificPool(HttpRoute route, int maxEntries) { argument
86 this.route = route;
95 * Obtains the route fo
[all...]
H A DThreadSafeClientConnManager.java157 final HttpRoute route,
161 route, state);
172 if (route == null) {
178 + route + ", timeout = " + timeout);
240 // Shutdown of the adapter also clears the tracked route.
266 * Gets the total number of pooled connections for the given route.
268 * are still in use by this connection manager for the route.
271 * @param route the route in question
273 * @return the total number of pooled connections for that route
156 requestConnection( final HttpRoute route, final Object state) argument
275 getConnectionsInPool(HttpRoute route) argument
[all...]
/external/mockito/cglib-and-asm/src/org/mockito/cglib/proxy/
H A DMixinEmitter.java38 public MixinEmitter(ClassVisitor v, String className, Class[] classes, int[] route) { argument
70 e.aaload((route != null) ? route[i] : i);
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
H A DRouteDatabase.java37 public synchronized void connected(Route route) { argument
38 failedRoutes.remove(route);
41 /** Returns true if {@code route} has failed recently and should be avoided. */
42 public synchronized boolean shouldPostpone(Route route) { argument
43 return failedRoutes.contains(route);
/external/apache-http/src/org/apache/http/conn/
H A DClientConnectionManager.java75 ClientConnectionRequest requestConnection(HttpRoute route, Object state) argument
H A DManagedClientConnection.java83 * Obtains the current route of this connection.
85 * @return the route established so far, or
113 * Opens this connection according to the given route.
115 * @param route the route along which to open. It will be opened to
122 void open(HttpRoute route, HttpContext context, HttpParams params) argument
129 * The route is the one previously passed to {@link #open open}.
178 * The route is the one previously passed to {@link #open open}.
203 * A {@link #getRoute route} mismatch, the connection being closed,
/external/apache-http/src/org/apache/http/impl/conn/
H A DAbstractPoolEntry.java52 * {@link HttpRoute route} established.
53 * The adapter delegates methods for establishing the route to
58 * underlying connection and the established route.
82 /** The route for which this entry gets allocated. */
86 protected volatile HttpRoute route; field in class:AbstractPoolEntry
91 /** The tracked route, or <code>null</code> before tracking starts. */
99 * @param route the planned route for the connection,
103 HttpRoute route) {
110 this.route
102 AbstractPoolEntry(ClientConnectionOperator connOperator, HttpRoute route) argument
141 open(HttpRoute route, HttpContext context, HttpParams params) argument
[all...]
H A DAbstractPooledConnAdapter.java50 * In addition, methods to establish a route are delegated to the
52 * will clear the tracked route in the pool entry and call the
119 public void open(HttpRoute route, argument
124 poolEntry.open(route, context, params);
H A DSingleClientConnManager.java184 final HttpRoute route,
196 route, state);
207 * @param route where the connection should point to
210 * along the given route
212 public ManagedClientConnection getConnection(HttpRoute route, Object state) { argument
214 if (route == null) {
220 log.debug("Get connection for route " + route);
236 !tracker.toRoute().equals(route));
271 managedConn = new ConnAdapter(uniquePoolEntry, route);
183 requestConnection( final HttpRoute route, final Object state) argument
463 ConnAdapter(PoolEntry entry, HttpRoute route) argument
[all...]
/external/libnl/src/
H A Dnl-route-add.c2 * src/nl-route-add.c Route addition utility
13 #include <netlink/cli/route.h>
22 "Usage: nl-route-add [OPTION]... [ROUTE]\n"
32 " dev=DEV route via device\n"
35 " via=GATEWAY route via other node\n"
55 struct rtnl_route *route; local
66 route = nl_cli_route_alloc();
108 case 'd': nl_cli_route_parse_dst(route, optarg); break;
109 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break;
110 case 't': nl_cli_route_parse_table(route, optar
[all...]
H A Dnl-route-list.c2 * src/nl-route-list.c List route attributes
13 #include <netlink/cli/route.h>
19 "Usage: nl-route-list [OPTION]... [ROUTE]\n"
22 " -c, --cache List the contents of the route cache\n"
30 " dev=DEV route via device\n"
33 " via=GATEWAY route via other node\n"
54 struct rtnl_route *route; local
64 route = nl_cli_route_alloc();
108 case 'd': nl_cli_route_parse_dst(route, optar
[all...]
H A Dnl-route-delete.c2 * src/nl-route-delete.c Delete Routes
13 #include <netlink/cli/route.h>
29 "Usage: nl-route-delete [OPTION]... [ROUTE]\n"
41 " dev=DEV route via device\n"
44 " via=GATEWAY route via other node\n"
63 struct rtnl_route *route = (struct rtnl_route *) obj; local
73 if ((err = rtnl_route_delete(sock, route, 0)) < 0)
74 nl_cli_fatal(err, "Unable to delete route: %s", nl_geterror(err));
87 struct rtnl_route *route; local
94 route
[all...]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
H A DSocketConnector.java65 public ConnectedSocket connectCleartext(int connectTimeout, int readTimeout, Route route) argument
67 Socket socket = connectRawSocket(readTimeout, connectTimeout, route);
68 return new ConnectedSocket(route, socket);
72 int writeTimeout, Request request, Route route, List<ConnectionSpec> connectionSpecs,
75 Address address = route.getAddress();
79 Socket socket = connectRawSocket(readTimeout, connectTimeout, route);
80 if (route.requiresTunnel()) {
81 createTunnel(readTimeout, writeTimeout, request, route, socket);
130 return new ConnectedSocket(route, sslSocket, alpnProtocol, handshake);
147 private Socket connectRawSocket(int soTimeout, int connectTimeout, Route route) argument
71 connectTls(int connectTimeout, int readTimeout, int writeTimeout, Request request, Route route, List<ConnectionSpec> connectionSpecs, boolean connectionRetryEnabled) argument
173 createTunnel(int readTimeout, int writeTimeout, Request request, Route route, Socket socket) argument
258 public final Route route; field in class:SocketConnector.ConnectedSocket
264 ConnectedSocket(Route route, Socket socket) argument
272 ConnectedSocket(Route route, SSLSocket socket, Protocol alpnProtocol, Handshake handshake) argument
[all...]
/external/apache-http/src/org/apache/http/conn/routing/
H A DRouteTracker.java40 * Helps tracking the steps in establishing a route.
67 // now follow attributes that indicate the established route
69 /** Whether the first hop of the route is established. */
75 /** Whether the the route is tunnelled end-to-end through proxies. */
78 /** Whether the route is layered over a tunnel. */
81 /** Whether the route is secure. */
86 * Creates a new route tracker.
89 * @param target the host to which to route
90 * @param local the local address to route from, or
105 * Creates a new tracker for the given route
111 RouteTracker(HttpRoute route) argument
[all...]
/external/libnl/lib/route/
H A Droute.c2 * lib/route/route.c Routes
14 * @defgroup route Routing
24 #include <netlink/route/rtnl.h>
25 #include <netlink/route/route.h>
26 #include <netlink/route/link.h>
33 struct rtnl_route *route; local
36 if ((err = rtnl_route_parse(nlh, &route)) < 0)
39 err = pp->pp_cb((struct nl_object *) route, p
128 rtnl_route_add(struct nl_sock *sk, struct rtnl_route *route, int flags) argument
150 rtnl_route_delete(struct nl_sock *sk, struct rtnl_route *route, int flags) argument
[all...]
/external/libnl/src/lib/
H A Droute.c2 * src/lib/route.c CLI Route Helpers
20 #include <netlink/cli/route.h>
24 struct rtnl_route *route; local
26 route = rtnl_route_alloc();
27 if (!route)
28 nl_cli_fatal(ENOMEM, "Unable to allocate route object");
30 return route;
39 nl_cli_fatal(err, "Unable to allocate route cache: %s\n",
47 void nl_cli_route_parse_family(struct rtnl_route *route, char *arg) argument
52 rtnl_route_set_family(route, famil
55 nl_cli_route_parse_dst(struct rtnl_route *route, char *arg) argument
68 nl_cli_route_parse_src(struct rtnl_route *route, char *arg) argument
81 nl_cli_route_parse_pref_src(struct rtnl_route *route, char *arg) argument
94 nl_cli_route_parse_metric(struct rtnl_route *route, char *subopts) argument
137 nl_cli_route_parse_nexthop(struct rtnl_route *route, char *subopts, struct nl_cache *link_cache) argument
197 nl_cli_route_parse_table(struct rtnl_route *route, char *arg) argument
211 nl_cli_route_parse_prio(struct rtnl_route *route, char *arg) argument
222 nl_cli_route_parse_scope(struct rtnl_route *route, char *arg) argument
232 nl_cli_route_parse_protocol(struct rtnl_route *route, char *arg) argument
248 nl_cli_route_parse_type(struct rtnl_route *route, char *arg) argument
260 nl_cli_route_parse_iif(struct rtnl_route *route, char *arg, struct nl_cache *link_cache) argument
[all...]

Completed in 630 milliseconds

12