Searched refs:HttpURLConnection (Results 1 - 25 of 26) sorted by relevance

12

/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
H A DHttpURLConnectionTest.java22 import java.net.HttpURLConnection;
171 HttpURLConnection c = (HttpURLConnection)
175 //object instances then those that are in HttpURLConnection classes
193 HttpURLConnection connection = (HttpURLConnection) url
218 HttpURLConnection huc = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY);
240 HttpURLConnection connection =
241 (HttpURLConnection) ur
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DURLConnectionTest.java37 import java.net.HttpURLConnection;
182 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
194 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
204 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
213 HttpURLConnection urlConnection = (HttpURLConnection) server.getUrl("/").openConnection();
274 HttpURLConnection urlConnectio
[all...]
H A DAbstractCookiesTest.java46 import java.net.HttpURLConnection;
368 .setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP)
419 HttpURLConnection connection = (HttpURLConnection) server.getUrl("/").openConnection();
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DURICertStore.java30 import java.net.HttpURLConnection;
290 } else if (connection instanceof HttpURLConnection) {
292 HttpURLConnection hconn = (HttpURLConnection)connection;
294 == HttpURLConnection.HTTP_NOT_MODIFIED) {
404 } else if (connection instanceof HttpURLConnection) {
406 HttpURLConnection hconn = (HttpURLConnection)connection;
408 == HttpURLConnection.HTTP_NOT_MODIFIED) {
H A DOCSP.java32 import java.net.HttpURLConnection;
223 HttpURLConnection con = (HttpURLConnection)url.openConnection();
238 con.getResponseCode() != HttpURLConnection.HTTP_OK) {
/libcore/benchmarks/src/benchmarks/regression/
H A DURLConnectionBenchmark.java26 import java.net.HttpURLConnection;
81 HttpURLConnection connection = (HttpURLConnection) url.openConnection();
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
H A DHandler.java38 import sun.net.www.protocol.http.HttpURLConnection;
H A DFtpURLConnection.java55 import sun.net.www.protocol.http.HttpURLConnection;
85 // In case we have to use proxies, we use HttpURLConnection
86 HttpURLConnection http = null;
250 http = new HttpURLConnection(url, p);
271 http = new HttpURLConnection(url, instProxy);
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/
H A DHandler.java62 return new HttpURLConnection(u, p, this);
H A DNegotiator.java43 // the J2SE platform where HttpURLConnection is a bootstrap class.
78 PlatformLogger logger = HttpURLConnection.getHttpLogger();
H A DDigestAuthentication.java39 import static sun.net.www.protocol.http.HttpURLConnection.HTTP_CONNECT;
275 public boolean setHeaders(HttpURLConnection conn, HeaderParser p, String raw) {
283 conn.tunnelState() == HttpURLConnection.TunnelState.SETUP) {
284 uri = HttpURLConnection.connectRequestURI(conn.getURL());
H A DNTLMAuthenticationProxy.java144 PlatformLogger logger = HttpURLConnection.getHttpLogger();
H A DNegotiateAuthentication.java147 public synchronized boolean setHeaders(HttpURLConnection conn, HeaderParser p, String raw) {
H A DBasicAuthentication.java150 public boolean setHeaders(HttpURLConnection conn, HeaderParser p, String raw) {
H A DHttpURLConnection.java84 public class HttpURLConnection extends java.net.HttpURLConnection { class in inherits:java.net.HttpURLConnection
374 PlatformLogger.getLogger("sun.net.www.protocol.http.HttpURLConnection");
710 protected HttpURLConnection(URL u, Handler handler) method in class:HttpURLConnection
717 public HttpURLConnection(URL u, String host, int port) { method in class:HttpURLConnection
723 public HttpURLConnection(URL u, Proxy p) { method in class:HttpURLConnection
727 protected HttpURLConnection(URL u, Proxy p, Handler handler) { method in class:HttpURLConnection
773 if (c instanceof HttpURLConnection) {
774 ((HttpURLConnection) c).setInstanceFollowRedirects(false);
783 if (c instanceof HttpURLConnection) {
[all...]
H A DAuthenticationInfo.java49 // policy in HttpURLConnection. A failure on baz.foo.com shouldn't
405 public abstract boolean setHeaders(HttpURLConnection conn, HeaderParser p, String raw);
/libcore/ojluni/src/main/java/sun/net/www/protocol/gopher/
H A DHandler.java37 import sun.net.www.protocol.http.HttpURLConnection;
69 return new HttpURLConnection(u, p);
/libcore/ojluni/src/main/java/sun/net/www/http/
H A DHttpClient.java37 import sun.net.www.protocol.http.HttpURLConnection;
39 import static sun.net.www.protocol.http.HttpURLConnection.TunnelState.*;
126 private static final PlatformLogger logger = HttpURLConnection.getHttpLogger();
264 HttpURLConnection httpuc) throws IOException
324 HttpURLConnection httpuc) throws IOException
338 HttpURLConnection httpuc)
616 public boolean parseHTTP(MessageHeader responses, ProgressSource pi, HttpURLConnection httpuc)
619 * HttpURLConnection parse the mime header itself.
666 private boolean parseHTTPHeader(MessageHeader responses, ProgressSource pi, HttpURLConnection httpuc)
669 * HttpURLConnection pars
[all...]
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DHttpsURLConnection.java30 import java.net.HttpURLConnection;
36 * <code>HttpsURLConnection</code> extends <code>HttpURLConnection</code>
58 class HttpsURLConnection extends HttpURLConnection
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DURLConnectionTest.java40 import java.net.HttpURLConnection;
186 return new HttpURLConnection(u) {
245 ((HttpURLConnection) uc).disconnect();
246 ((HttpURLConnection) uc2).disconnect();
247 ((HttpURLConnection) uc3).disconnect();
294 HttpURLConnection connection = (HttpURLConnection)
338 ((HttpURLConnection) uc).disconnect();
380 ((HttpURLConnection) uc).disconnect();
408 ((HttpURLConnection) u
[all...]
/libcore/ojluni/src/main/java/sun/net/www/protocol/https/
H A DHttpsClient.java51 import sun.net.www.protocol.http.HttpURLConnection;
58 import static sun.net.www.protocol.http.HttpURLConnection.TunnelState.*;
284 HttpURLConnection httpuc)
292 HttpURLConnection httpuc) throws IOException {
302 HttpURLConnection httpuc) throws IOException {
308 HttpURLConnection httpuc)
316 int connectTimeout, HttpURLConnection httpuc)
327 int connectTimeout, HttpURLConnection httpuc)
353 PlatformLogger logger = HttpURLConnection.getHttpLogger();
H A DAbstractDelegateHttpsURLConnection.java36 import sun.net.www.protocol.http.HttpURLConnection;
41 * java.net.HttpURLConnection. We will avoid copying over the code from
42 * sun.net.www.protocol.http.HttpURLConnection by having this class
46 HttpURLConnection {
/libcore/ojluni/src/main/java/java/net/
H A DHttpURLConnection.java41 * <li>Obtain a new {@code HttpURLConnection} by calling {@link
43 * {@code HttpURLConnection}.
57 * HttpURLConnection} should be closed by calling {@link #disconnect()}.
65 * HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
88 * {@code HttpURLConnection} will follow up to five HTTP redirects. It will
104 * HttpURLConnection} will be forced to buffer the complete request body in
109 * HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
144 * <p>By default, this implementation of {@code HttpURLConnection} request
276 abstract public class HttpURLConnection extends URLConnection { class in inherits:URLConnection
528 protected HttpURLConnection (URL u) { method in class:HttpURLConnection
[all...]
/libcore/ojluni/src/main/java/sun/misc/
H A DURLClassPath.java43 import java.net.HttpURLConnection;
508 if (uc instanceof HttpURLConnection) {
509 HttpURLConnection hconn = (HttpURLConnection)uc;
511 if (hconn.getResponseCode() >= HttpURLConnection.HTTP_BAD_REQUEST) {
/libcore/support/src/test/java/tests/http/
H A DMockWebServer.java25 import java.net.HttpURLConnection;
409 .setResponseCode(HttpURLConnection.HTTP_NOT_FOUND);

Completed in 1078 milliseconds

12