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

1 2 3 4

  /external/okhttp/src/main/java/com/squareup/okhttp/internal/http/
Policy.java 18 import java.net.HttpURLConnection;
26 /** Returns the HttpURLConnection instance to store in the cache. */
27 HttpURLConnection getHttpConnectionToCache();
38 /** @see java.net.HttpURLConnection#setChunkedStreamingMode(int) */
41 /** @see java.net.HttpURLConnection#setFixedLengthStreamingMode(int) */
46 * @see java.net.HttpURLConnection#usingProxy
Dispatcher.java 22 import java.net.HttpURLConnection;
38 HttpURLConnection connection, Request request, Response.Receiver responseReceiver) {
63 private final HttpURLConnection connection;
66 RealResponseBody(HttpURLConnection connection, InputStream in) {
Job.java 22 import java.net.HttpURLConnection;
25 final HttpURLConnection connection;
30 public Job(Dispatcher dispatcher, HttpURLConnection connection, Request request,
54 private HttpURLConnection sendRequest() throws IOException {
OkResponseCacheAdapter.java 23 import java.net.HttpURLConnection;
48 @Override public void update(CacheResponse conditionalCacheHit, HttpURLConnection connection)
  /external/apache-harmony/support/src/test/java/tests/support/
Support_URLConnector.java 23 import java.net.HttpURLConnection;
45 ((HttpURLConnection) instance).disconnect();
65 ((HttpURLConnection) instance).setRequestMethod("POST");
79 return ((HttpURLConnection) instance).getHeaderField(index);
83 return ((HttpURLConnection) instance).getHeaderFieldKey(index);
  /external/oauth/core/src/main/java/net/oauth/client/
URLConnectionClient.java 22 import java.net.HttpURLConnection;
33 * An HttpClient based on HttpURLConnection.
52 if (connection instanceof HttpURLConnection) {
53 HttpURLConnection http = (HttpURLConnection) connection;
77 && connection instanceof HttpURLConnection) {
89 ((HttpURLConnection) connection)
URLConnectionResponse.java 21 import java.net.HttpURLConnection;
60 if (connection instanceof HttpURLConnection) {
61 return ((HttpURLConnection) connection).getResponseCode();
107 HttpURLConnection http = (connection instanceof HttpURLConnection) ? (HttpURLConnection) connection
  /external/okhttp/src/main/java/com/squareup/okhttp/
OkResponseCache.java 21 import java.net.HttpURLConnection;
49 void update(CacheResponse conditionalCacheHit, HttpURLConnection connection) throws IOException;
  /frameworks/volley/tests/src/com/android/volley/mock/
MockHttpURLConnection.java 22 import java.net.HttpURLConnection;
26 public class MockHttpURLConnection extends HttpURLConnection {
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
JavaNetHttpHelper.java 26 import java.net.HttpURLConnection;
83 HttpURLConnection c = null;
103 HttpURLConnection c = null;
127 private HttpURLConnection createConnection(String url, Map<String, String> headers)
131 HttpURLConnection c = (HttpURLConnection) u.openConnection();
150 private String getResponseFrom(HttpURLConnection c) throws IOException, HttpException {
151 if (c.getResponseCode() != HttpURLConnection.HTTP_OK) {
  /libcore/luni/src/test/java/libcore/java/net/
URLConnectionTest.java 36 import java.net.HttpURLConnection;
114 HttpURLConnection urlConnection = (HttpURLConnection) server.getUrl("/").openConnection();
175 HttpURLConnection urlConnection = (HttpURLConnection) server.getUrl("/").openConnection();
190 HttpURLConnection urlConnection = (HttpURLConnection) server.getUrl("/").openConnection();
219 HttpURLConnection connection = (HttpURLConnection) server.getUrl("/").openConnection();
226 HttpURLConnection connection = (HttpURLConnection) server.getUrl("/").openConnection()
    [all...]
  /external/mockwebserver/src/main/java/com/google/mockwebserver/
QueueDispatcher.java 18 import java.net.HttpURLConnection;
37 .setResponseCode(HttpURLConnection.HTTP_NOT_FOUND);
64 ? new MockResponse().setResponseCode(HttpURLConnection.HTTP_NOT_FOUND)
  /external/mockwebserver/src/test/java/com/google/mockwebserver/
CustomDispatcherTest.java 21 import java.net.HttpURLConnection;
50 final HttpURLConnection conn = (HttpURLConnection) url.openConnection();
90 final HttpURLConnection conn;
92 conn = (HttpURLConnection) url.openConnection();
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
HttpURLConnectionTest.java 24 import java.net.HttpURLConnection;
41 * Tests for <code>HTTPURLConnection</code> class constructors and methods.
173 HttpURLConnection c = (HttpURLConnection)
177 //object instances then those that are in HttpURLConnection classes
195 HttpURLConnection connection = (HttpURLConnection) url
220 HttpURLConnection huc = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY);
242 HttpURLConnection connection
    [all...]
  /frameworks/volley/src/com/android/volley/toolbox/
HurlStack.java 36 import java.net.HttpURLConnection;
47 * An {@link HttpStack} based on {@link HttpURLConnection}.
102 HttpURLConnection connection = openConnection(parsedUrl, request);
107 // Initialize HttpResponse with data from the HttpURLConnection.
113 throw new IOException("Could not retrieve response code from HttpUrlConnection.");
129 * Initializes an {@link HttpEntity} from the given {@link HttpURLConnection}.
133 private static HttpEntity entityFromConnection(HttpURLConnection connection) {
149 * Create an {@link HttpURLConnection} for the specified {@code url}.
151 protected HttpURLConnection createConnection(URL url) throws IOException {
152 return (HttpURLConnection) url.openConnection()
    [all...]
  /frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/
BandwidthEnforcementTestService.java 32 import java.net.HttpURLConnection;
95 final HttpURLConnection conn = (HttpURLConnection) new URL("http://www.google.com/")
119 final HttpURLConnection conn = (HttpURLConnection) new URL("http://ipv6.google.com/")
  /external/okhttp/src/test/java/com/squareup/okhttp/internal/http/
URLConnectionTest.java 39 import java.net.HttpURLConnection;
132 HttpURLConnection urlConnection = client.open(server.getUrl("/"));
193 HttpURLConnection urlConnection = client.open(server.getUrl("/"));
207 HttpURLConnection urlConnection = client.open(server.getUrl("/"));
237 HttpURLConnection urlConnection = client.open(server.getUrl("/"));
249 HttpURLConnection urlConnection = client.open(server.getUrl("/"));
261 HttpURLConnection urlConnection = client.open(server.getUrl("/"));
273 HttpURLConnection urlConnection = client.open(server.getUrl("/"));
286 HttpURLConnection connection = client.open(url);
317 HttpURLConnection connection = client.open(server.getUrl("/def"))
    [all...]
HttpResponseCacheTest.java 39 import java.net.HttpURLConnection;
123 private HttpURLConnection openConnection(URL url) {
176 HttpURLConnection conn = openConnection(url);
197 if (responseCode == HttpURLConnection.HTTP_PROXY_AUTH) {
199 } else if (responseCode == HttpURLConnection.HTTP_UNAUTHORIZED) {
206 HttpURLConnection conn = openConnection(url);
242 HttpURLConnection httpConnection = (HttpURLConnection) conn;
271 HttpURLConnection connection = openConnection(url);
289 * HttpURLConnection.getInputStream().skip(long) causes ResponseCache corruptio
    [all...]
  /external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/
HttpOverSpdyTest.java 33 import java.net.HttpURLConnection;
97 HttpURLConnection connection = client.open(server.getUrl("/foo"));
112 HttpURLConnection connection = client.open(server.getUrl("/foo"));
121 HttpURLConnection connection = client.open(server.getUrl("/foo"));
136 HttpURLConnection connection1 = client.open(server.getUrl("/r1"));
137 HttpURLConnection connection2 = client.open(server.getUrl("/r2"));
154 server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_UNAUTHORIZED)
161 HttpURLConnection connection = client.open(server.getUrl("/"));
173 server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP)
179 HttpURLConnection connection = client.open(server.getUrl("/"))
    [all...]
  /developers/samples/android/background/alarms/Scheduler/src/com/example/android/scheduler/
SampleSchedulingService.java 15 import java.net.HttpURLConnection;
116 * @return An InputStream retrieved from a successful HttpURLConnection.
122 HttpURLConnection conn = (HttpURLConnection) url.openConnection();
  /development/samples/training/threadsample/src/com/example/android/threadsample/
PhotoDownloadRunnable.java 24 import java.net.HttpURLConnection;
154 HttpURLConnection httpConn =
155 (HttpURLConnection) mPhotoTask.getImageURL().openConnection();
RSSPullService.java 28 import java.net.HttpURLConnection;
100 if ((localURLConnection instanceof HttpURLConnection)) {
106 HttpURLConnection localHttpURLConnection = (HttpURLConnection) localURLConnection;
  /external/replicaisland/src/com/replica/replicaisland/
EventReporter.java 3 import java.net.HttpURLConnection;
82 HttpURLConnection connection = null;
98 connection = (HttpURLConnection)serverAddress.openConnection();
  /libcore/benchmarks/src/benchmarks/regression/
URLConnectionBenchmark.java 27 import java.net.HttpURLConnection;
83 HttpURLConnection connection = (HttpURLConnection) url.openConnection();
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
HttpURLConnectionTest.java 23 import java.net.HttpURLConnection;
57 * Tests for <code>HttpURLConnection</code> class constructors and methods.
336 HttpURLConnection conn = null;
341 conn = (HttpURLConnection) new URL("http://localhost:" + port
354 conn = (HttpURLConnection) new URL("http://localhost:" + port
376 conn = (HttpURLConnection) new URL("http://localhost:" + port
430 HttpURLConnection httpURLConnect = (HttpURLConnection) url
467 HttpURLConnection httpURLConnect = (HttpURLConnection) new URL
    [all...]

Completed in 3202 milliseconds

1 2 3 4