/libcore/ojluni/src/main/java/java/util/ |
H A D | LinkedHashMap.java | 176 private transient LinkedHashMapEntry<K,V> header; field in class:LinkedHashMap 260 header = new LinkedHashMapEntry<>(-1, null, null, null); 261 header.before = header.after = header; 272 for (LinkedHashMapEntry<K,V> e = header.after; e != header; e = e.after) { 291 for (LinkedHashMapEntry e = header.after; e != header; e = e.after) 295 for (LinkedHashMapEntry e = header [all...] |
/libcore/ojluni/src/main/java/java/net/ |
H A D | HttpCookie.java | 95 // Attributes encoded in the header's cookie fields. 110 * The original header this cookie was consructed from, if it was 111 * constructed by parsing a header, otherwise null. 115 public final String header; field in class:HttpCookie 145 // constant strings represent set-cookie header token 185 this(name, value, null /*header*/); 188 private HttpCookie(String name, String value, String header) { argument 201 this.header = header; 206 * Constructs cookies from set-cookie or set-cookie2 header strin 222 parse(String header) argument 233 parse(String header, boolean retainHeader) argument 975 parseInternal(String header, boolean retainHeader) argument 1124 private String header() { method in class:HttpCookie 1202 guessCookieVersion(String header) argument 1265 splitMultiCookies(String header) argument [all...] |
/libcore/ojluni/src/main/java/sun/net/www/http/ |
H A D | ChunkedOutputStream.java | 35 /* Default chunk size (including chunk header) if not specified */ 61 /* header for a complete Chunk */ 64 /* return the size of the header for a particular chunk size */ 69 /* return a header for a particular chunk size */ 74 byte[] header = new byte[getHeaderSize(size)]; 76 header[i] = hexBytes[i]; 77 header[hexBytes.length] = CRLF[0]; 78 header[hexBytes.length+1] = CRLF[1]; 79 return header; 98 /* Adjust the size to cater for the chunk header [all...] |
H A D | ChunkedInputStream.java | 37 * containing entity-header fields. 129 * Maximum chunk header size of 2KB + 2 bytes for CRLF 285 * We are awaiting a line with a chunk header 289 * Find \n to indicate end of chunk header. If not found when there is 290 * insufficient bytes in the raw buffer to parse a chunk header. 300 throw new IOException("Chunk header too long"); 308 * Extract the chunk size from the header (ignoring extensions). 310 String header = new String(rawData, rawPos, pos-rawPos+1, "US-ASCII"); 311 for (i=0; i < header.length(); i++) { 312 if (Character.digit(header [all...] |
/libcore/ojluni/src/main/java/sun/security/provider/ |
H A D | X509Factory.java | 498 // Step 1: Read until header is found 519 // Step 2: Read the rest of header, determine the line end 521 StringBuffer header = new StringBuffer("-----"); 544 header.append((char)next); 575 checkHeaderFooter(header.toString(), footer.toString()); 582 private static void checkHeaderFooter(String header, argument 584 if (header.length() < 16 || !header.startsWith("-----BEGIN ") || 585 !header.endsWith("-----")) { 586 throw new IOException("Illegal header [all...] |
/libcore/support/src/test/java/tests/http/ |
H A D | MockResponse.java | 83 public MockResponse addHeader(String header) { argument 84 headers.add(header);
|
H A D | MockWebServer.java | 346 String header; 347 while (!(header = readAsciiUntilCrlf(in)).isEmpty()) { 348 headers.add(header); 349 String lowercaseHeader = header.toLowerCase(Locale.ROOT); 351 contentLength = Integer.parseInt(header.substring(15).trim()); 423 for (String header : response.getHeaders()) { 424 out.write((header + "\r\n").getBytes(ASCII));
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/ |
H A D | DigestAuthentication.java | 220 * @return the value of the HTTP header this authentication wants set 239 * @return the value of the HTTP header this authentication wants set 246 * Check if the header indicates that the current auth. parameters are stale. 254 public boolean isAuthorizationStale (String header) { argument 255 HeaderParser p = new HeaderParser (header); 268 * Set header(s) on the given connection. 269 * @param conn The connection to apply the header(s) to 270 * @param p A source of header values for this connection, if needed. 271 * @param raw Raw header values for this connection, if needed. 326 /* Calculate the Authorization header fiel 381 checkResponse(String header, String method, URL url) argument 386 checkResponse(String header, String method, String uri) argument [all...] |
H A D | NegotiateAuthentication.java | 126 * Check if the header indicates that the current auth. parameters are stale. 134 public boolean isAuthorizationStale (String header) { argument 139 * Set header(s) on the given connection. 140 * @param conn The connection to apply the header(s) to 141 * @param p A source of header values for this connection, not used because 143 * @param raw The raw header field. 213 // Authentication-Info header. 215 // Currently we ignore this header.
|
H A D | BasicAuthentication.java | 142 * Set header(s) on the given connection. This will only be called for 144 * @param conn The connection to apply the header(s) to 145 * @param p A source of header values for this connection, if needed. 146 * @param raw The raw header values for this connection, if needed. 156 * @return the value of the HTTP header this authentication wants set 172 public boolean isAuthorizationStale (String header) { argument 205 /* It is never expected that the header value will exceed the bytesPerLine */
|
H A D | AuthenticationInfo.java | 307 * for preemptive header-setting. Note, the protocol field is always 374 * @return the name of the HTTP header this authentication wants set. 386 * Calculates and returns the authentication header value based 391 * @return the value of the HTTP header this authentication wants set. 397 * Set header(s) on the given connection. Subclasses must override 400 * @param conn The connection to apply the header(s) to 401 * @param p A source of header values for this connection, if needed. 402 * @param raw The raw header field (if needed) 408 * Check if the header indicates that the current auth. parameters are stale. 415 public abstract boolean isAuthorizationStale (String header); argument [all...] |
H A D | HttpURLConnection.java | 156 * Host header since old JREs did not implement HTTP 1.1. 157 * Additionally, any header starting with Sec- is 430 * Checks the validity of http message header and whether the header 457 * checks the validity of http message header and throws 465 "Illegal character(s) in message header field: " + key); 484 "Illegal character(s) in message header value: " + value); 1173 // remove old Cookie header before setting new one. 1286 * Here we'll ignore the header line so that fallback 1392 /* in this case, only one header fiel [all...] |
/libcore/dex/src/main/java/com/android/dex/ |
H A D | TableOfContents.java | 24 * The file header and map. 32 public final Section header = new Section(0x0000); field in class:TableOfContents 51 header, stringIds, typeIds, protoIds, fieldIds, methodIds, classDefs, mapList, 88 throw new DexException("Unexpected header: 0x" + Integer.toHexString(headerSize));
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
H A D | URLConnectionTest.java | 626 assertEquals("Long value returned for header field 'Content-Encoding':", 629 assertEquals("Long value returned for header field 'Content-Length': ", 632 assertEquals("Long value returned for header field 'Content-Type': ", 635 assertEquals("Long value returned for header field 'content-type': ", 638 assertTrue("Wrong value returned for header field 'Date': " + hf, 641 assertEquals("Long value returned for header field 'SERVER': ", 644 assertEquals("Long value returned for header field 'Last-Modified': ", 660 assertTrue("Could not find header field containing \"" 671 assertTrue("Could not find header field containing \"" 690 "Could not find header fiel 991 assertContentTypeEquals(String encoding, String expected, String header) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | HttpCookieTest.java | 551 * to the HTTP header format. Netscape draft does not specify whether 552 * multiple cookies may be sent in one header. Hence, comma character 666 // If cookie header = Set-Cookie2, version = 1 801 // From the second cookie, the "set-cookie2" header does not take effect 809 // Must begin with "set-cookie2" header 886 // 0. No matter header is Set-cookie or Set-cookie2 898 // In Set-Cookie header, max-age does not take effect when expires 915 // expires decides the version. Not take Set-cookie header, version into 1000 private void checkValidValue(String header, String value) { argument 1002 .parse(header 1007 checkInvalidCookie(String header) argument [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | AbstractCookiesTest.java | 387 for (String header : redirectTarget.takeRequest().getHeaders()) { 388 if (header.startsWith("Cookie")) { 389 fail(header); 830 // For simplicity, we concatenate the cookie header strings if there are multiple ones. 1284 * Unlike the RI, we flatten all matching cookies into a single Cookie header
|
H A D | URLConnectionTest.java | 130 // Android became more strict after M about which characters were allowed in request header 257 fail("Set header after connect"); 262 fail("Set header after connect"); 879 // Confirm the cached body is returned along with the original etag header. 928 // Confirm the new body is returned along with the new etag header. 1311 // chunk buffer size (inc. header) the chunkLength has to be >= 8. This enables the flush() 1365 // no authorization header for the request... 1537 // no authorization header for the first request... 1541 // ...but the three requests that follow include an authorization header 1575 // no authorization header fo [all...] |
/libcore/support/src/test/java/tests/resources/ |
H A D | junit4-4.3.1.jar | META-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ... |