/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
H A D | HttpURLConnectionTest.java | 22 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 D | URLConnectionTest.java | 37 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 D | AbstractCookiesTest.java | 46 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 D | URICertStore.java | 30 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 D | OCSP.java | 32 import java.net.HttpURLConnection; 223 HttpURLConnection con = (HttpURLConnection)url.openConnection(); 238 con.getResponseCode() != HttpURLConnection.HTTP_OK) {
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | URLConnectionBenchmark.java | 26 import java.net.HttpURLConnection; 81 HttpURLConnection connection = (HttpURLConnection) url.openConnection();
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/ |
H A D | Handler.java | 38 import sun.net.www.protocol.http.HttpURLConnection;
|
H A D | FtpURLConnection.java | 55 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 D | Handler.java | 62 return new HttpURLConnection(u, p, this);
|
H A D | Negotiator.java | 43 // the J2SE platform where HttpURLConnection is a bootstrap class. 78 PlatformLogger logger = HttpURLConnection.getHttpLogger();
|
H A D | DigestAuthentication.java | 39 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 D | NTLMAuthenticationProxy.java | 144 PlatformLogger logger = HttpURLConnection.getHttpLogger();
|
H A D | NegotiateAuthentication.java | 147 public synchronized boolean setHeaders(HttpURLConnection conn, HeaderParser p, String raw) {
|
H A D | BasicAuthentication.java | 150 public boolean setHeaders(HttpURLConnection conn, HeaderParser p, String raw) {
|
H A D | HttpURLConnection.java | 84 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 D | AuthenticationInfo.java | 49 // 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 D | Handler.java | 37 import sun.net.www.protocol.http.HttpURLConnection; 69 return new HttpURLConnection(u, p);
|
/libcore/ojluni/src/main/java/sun/net/www/http/ |
H A D | HttpClient.java | 37 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 D | HttpsURLConnection.java | 30 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 D | URLConnectionTest.java | 40 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 D | HttpsClient.java | 51 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 D | AbstractDelegateHttpsURLConnection.java | 36 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 D | HttpURLConnection.java | 41 * <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 D | URLClassPath.java | 43 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 D | MockWebServer.java | 25 import java.net.HttpURLConnection; 409 .setResponseCode(HttpURLConnection.HTTP_NOT_FOUND);
|