equal
deleted
inserted
replaced
335 return req; |
335 return req; |
336 } |
336 } |
337 } |
337 } |
338 |
338 |
339 // Use a WeakHashMap to make it possible for the HttpClient to |
339 // Use a WeakHashMap to make it possible for the HttpClient to |
340 // be garbaged collected when no longer referenced. |
340 // be garbage collected when no longer referenced. |
341 static final WeakHashMap<HttpClientImpl,Cache> caches = new WeakHashMap<>(); |
341 static final WeakHashMap<HttpClientImpl,Cache> caches = new WeakHashMap<>(); |
342 |
342 |
343 static synchronized Cache getCache(MultiExchange<?> exchange) { |
343 static synchronized Cache getCache(MultiExchange<?> exchange) { |
344 HttpClientImpl client = exchange.client(); |
344 HttpClientImpl client = exchange.client(); |
345 Cache c = caches.get(client); |
345 Cache c = caches.get(client); |