StringBuilder format(StringBuilder builder, MimeHeaders headers) { final Iterator<String> iterator = headers.values(name).iterator(); if (iterator.hasNext()) builder.append(iterator.next()); while (iterator.hasNext()) builder.append("; ").append(iterator.next()); return builder; } }
StringBuilder format(StringBuilder builder, MimeHeaders headers) { final Iterator<String> iterator = headers.values(name).iterator(); if (iterator.hasNext()) builder.append(iterator.next()); while (iterator.hasNext()) builder.append("; ").append(iterator.next()); return builder; } }
StringBuilder format(StringBuilder builder, MimeHeaders headers) { final Iterator<String> iterator = headers.values(name).iterator(); if (iterator.hasNext()) builder.append(iterator.next()); while (iterator.hasNext()) builder.append("; ").append(iterator.next()); return builder; } }
StringBuilder format(StringBuilder builder, MimeHeaders headers) { final Iterator<String> iterator = headers.values(name).iterator(); if (iterator.hasNext()) builder.append(iterator.next()); while (iterator.hasNext()) builder.append("; ").append(iterator.next()); return builder; } }
/** * Return all of the values of the specified header, if any; otherwise, * return an empty enumeration. * * @param name Name of the requested header */ public Iterable<String> getHeaders(String name) { return request.getHeaders().values(name); }
/** * Return all of the values of the specified header, if any; otherwise, * return an empty enumeration. * * @param name Name of the requested header */ public Iterable<String> getHeaders(String name) { return request.getHeaders().values(name); }
/** * Return all of the values of the specified header, if any; otherwise, * return an empty enumeration. * * @param name Name of the requested header */ public Iterable<String> getHeaders(String name) { return request.getHeaders().values(name); }
/** * Return all of the values of the specified header, if any; otherwise, * return an empty enumeration. * * @param name Name of the requested header */ public Iterable<String> getHeaders(String name) { return request.getHeaders().values(name); }
/** * Return all of the values of the specified header, if any; otherwise, * return an empty enumeration. * * @param header the requested {@link Header} * * @since 2.1.2 */ public Iterable<String> getHeaders(final Header header) { return request.getHeaders().values(header); }
/** * Return all of the values of the specified header, if any; otherwise, * return an empty enumeration. * * @param header the requested {@link Header} * * @since 2.1.2 */ public Iterable<String> getHeaders(final Header header) { return request.getHeaders().values(header); }
/** * Return all of the values of the specified header, if any; otherwise, * return an empty enumeration. * * @param header the requested {@link Header} * * @since 2.1.2 */ public Iterable<String> getHeaders(final Header header) { return request.getHeaders().values(header); }
/** * Return all of the values of the specified header, if any; otherwise, * return an empty enumeration. * * @param header the requested {@link Header} * * @since 2.1.2 */ public Iterable<String> getHeaders(final Header header) { return request.getHeaders().values(header); }
/** * Return all of the values of the specified header, if any; otherwise, * return an empty enumeration. * * @param name Name of the requested header */ public Iterable<String> getHeaders(String name) { return request.getHeaders().values(name); }
/** * Return all of the values of the specified header, if any; otherwise, * return an empty enumeration. * * @param header the requested {@link Header} * * @since 2.1.2 */ public Iterable<String> getHeaders(final Header header) { return request.getHeaders().values(header); }
/** * Return all of the values of the specified header, if any; otherwise, * return an empty enumeration. * * @param name Name of the requested header */ public Iterable<String> getHeaders(String name) { return request.getHeaders().values(name); }
/** * Return all of the values of the specified header, if any; otherwise, * return an empty enumeration. * * @param header the requested {@link Header} * * @since 2.1.2 */ public Iterable<String> getHeaders(final Header header) { return request.getHeaders().values(header); }
private static Request newRequest(final HttpTransactionContext ctx, final Uri newUri, final HttpResponsePacket response, final Realm realm, boolean asGet) { final Request prototype = ctx.getAhcRequest(); final FluentCaseInsensitiveStringsMap prototypeHeaders = prototype.getHeaders(); prototypeHeaders.remove(Header.Host.toString()); prototypeHeaders.remove(Header.ContentLength.toString()); if (asGet) prototypeHeaders.remove(Header.ContentType.toString()); if (realm != null && realm.getScheme() == AuthScheme.NTLM) { prototypeHeaders.remove(Header.Authorization.toString()); prototypeHeaders.remove(Header.ProxyAuthorization.toString()); } final RequestBuilder builder = new RequestBuilder(prototype); if (asGet) { builder.setMethod("GET"); } builder.setUrl(newUri.toString()); for (String cookieStr : response.getHeaders().values(Header.SetCookie)) { builder.addOrReplaceCookie(CookieDecoder.decode(cookieStr)); } return builder.build(); }
final FilterChainContext ctx) { final List<String> authHeaders = listOf(responsePacket.getHeaders() .values(Header.WWWAuthenticate));
final List<String> proxyAuthHeaders = listOf(responsePacket.getHeaders() .values(Header.ProxyAuthenticate));
private void initializeHeaders() { this.headers = new CaseInsensitiveMultiMap(!PRESERVE_HEADER_CASE); for (String grizzlyHeaderName : requestPacket.getHeaders().names()) { final Iterable<String> headerValues = requestPacket.getHeaders().values(grizzlyHeaderName); for (String headerValue : headerValues) { this.headers.put(grizzlyHeaderName, headerValue); } } this.headers = this.headers.toImmutableMultiMap(); }