Home
last modified time | relevance | path

Searched refs:getHeaderField (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
DFileURLConnection.java145 public String getHeaderField(String name) { in getHeaderField() method in FileURLConnection
147 return super.getHeaderField(name); in getHeaderField()
150 public String getHeaderField(int n) { in getHeaderField() method in FileURLConnection
152 return super.getHeaderField(n); in getHeaderField()
/libcore/ojluni/src/main/java/sun/net/www/
DURLConnection.java100 public String getHeaderField(String name) { in getHeaderField() method in URLConnection
129 public String getHeaderField(int n) { in getHeaderField() method in URLConnection
144 contentType = getHeaderField("content-type"); in getContentType()
/libcore/ojluni/src/main/java/java/net/
DHttpURLConnection.java474 public String getHeaderField(int n) { in getHeaderField() method in HttpURLConnection
695 String statusLine = getHeaderField(0); in getResponseCode()
758 String dateString = getHeaderField(name); in getHeaderFieldDate()
DURLConnection.java540 return getHeaderField("content-type"); in getContentType()
551 return getHeaderField("content-encoding"); in getContentEncoding()
601 public String getHeaderField(String name) { in getHeaderField() method in URLConnection
634 String value = getHeaderField(name); in getHeaderFieldInt()
657 String value = getHeaderField(name); in getHeaderFieldLong()
682 String value = getHeaderField(name); in getHeaderFieldDate()
716 public String getHeaderField(int n) { in getHeaderField() method in URLConnection
/libcore/ojluni/annotations/hiddenapi/sun/net/www/
DURLConnection.java63 public java.lang.String getHeaderField(java.lang.String name) { in getHeaderField() method in URLConnection
71 public java.lang.String getHeaderField(int n) { in getHeaderField() method in URLConnection
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java664 while ((hf = uc.getHeaderField(i++)) != null) {
675 while ((hf = uc.getHeaderField(i++)) != null) {
743 hf = uc.getHeaderField("Content-Encoding");
746 hf = uc.getHeaderField("Content-Length");
749 hf = uc.getHeaderField("Content-Type");
752 hf = uc.getHeaderField("content-type");
755 hf = uc.getHeaderField("Date");
758 hf = uc.getHeaderField("SERVER");
761 hf = uc.getHeaderField("Last-Modified");
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DJarURLConnection.java233 public String getHeaderField(String name) { in getHeaderField() method in JarURLConnection
234 return jarFileURLConnection.getHeaderField(name); in getHeaderField()
/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java322 assertEquals("HTTP/1.0 200 Fantastic", urlConnection.getHeaderField(null)); in responseHeaders()
338 assertEquals("c", urlConnection.getHeaderField(0)); in responseHeaders()
340 assertEquals("d", urlConnection.getHeaderField(1)); in responseHeaders()
342 assertEquals("e", urlConnection.getHeaderField(2)); in responseHeaders()
544 assertEquals("def", conn.getHeaderField("abc")); in getResponseCodeNoResponseBody()
856 assertEquals(etagValue1, connection1.getHeaderField("Etag")); in etagHeaders_uncached()
864 assertEquals(etagValue2, connection2.getHeaderField("Etag")); in etagHeaders_uncached()
1015 assertEquals(etagValue, connection.getHeaderField("Etag")); in etagHeaders_cachedWithServerHit()
1024 assertEquals(etagValue, cachedConnection.getHeaderField("Etag")); in etagHeaders_cachedWithServerHit()
1064 assertEquals(etagValue1, connection.getHeaderField("Etag")); in etagHeaders_cachedWithServerMiss()
[all …]
/libcore/api/
Dcurrent.txt6185 method public String getHeaderField(String);
6186 method public String getHeaderField(int);