Lines Matching defs:httpConnection
84 private HttpURLConnection httpConnection = null;
105 outputStream = httpConnection.getOutputStream();
115 httpConnection.connect();
141 String contentEncoding = httpConnection.getContentEncoding();
157 respHeaders.putAll(httpConnection.getHeaderFields());
164 is = httpConnection.getInputStream();
166 is = httpConnection.getErrorStream();
192 statusCode = httpConnection.getResponseCode();
193 statusMessage = httpConnection.getResponseMessage();
194 contentLength = httpConnection.getContentLength();
202 httpConnection = (HttpURLConnection) endpoint.openConnection();
207 if (httpConnection instanceof HttpsURLConnection) {
223 ((HttpsURLConnection) httpConnection).setHostnameVerifier(new HttpClientVerifier());
230 ((HttpsURLConnection) httpConnection).setHostnameVerifier(verifier);
237 ((HttpsURLConnection) httpConnection).setSSLSocketFactory(sslSocketFactory);
244 httpConnection.setAllowUserInteraction(true);
247 httpConnection.setDoOutput(true);
248 httpConnection.setDoInput(true);
252 httpConnection.setRequestMethod(method);
265 httpConnection.setReadTimeout(reqTimeout);
270 httpConnection.setConnectTimeout(connectTimeout);
275 httpConnection.setChunkedStreamingMode(chunkSize);
281 httpConnection.addRequestProperty(entry.getKey(), value);
291 return !(httpConnection.getRequestMethod().equalsIgnoreCase("GET") ||
292 httpConnection.getRequestMethod().equalsIgnoreCase("HEAD") ||
293 httpConnection.getRequestMethod().equalsIgnoreCase("DELETE"));
297 return httpConnection.getContentType();