/** * Returns an immutable map of parameterized HTTP header value(s) for this {@code BodyPart}, * keyed by header name. Key comparisons in the returned map must be case-insensitive. If you wish to modify the headers * map for this {@code BodyPart}, modify the map returned by {@code getHeaders()} instead. * * @return immutable map of HTTP header values. * @throws ParseException if an un-expected/in-correct value is found during parsing the headers. */ public MultivaluedMap<String, ParameterizedHeader> getParameterizedHeaders() throws ParseException { return new ImmutableMultivaluedMap<>(new ParameterizedHeadersMap(headers)); }
/** * Returns an immutable map of parameterized HTTP header value(s) for this {@code BodyPart}, * keyed by header name. Key comparisons in the returned map must be case-insensitive. If you wish to modify the headers * map for this {@code BodyPart}, modify the map returned by {@code getHeaders()} instead. * * @return immutable map of HTTP header values. * @throws ParseException if an un-expected/in-correct value is found during parsing the headers. */ public MultivaluedMap<String, ParameterizedHeader> getParameterizedHeaders() throws ParseException { return new ImmutableMultivaluedMap<>(new ParameterizedHeadersMap(headers)); }
/** * Returns an immutable map of parameterized HTTP header value(s) for this {@code BodyPart}, * keyed by header name. Key comparisons in the returned map must be case-insensitive. If you wish to modify the headers * map for this {@code BodyPart}, modify the map returned by {@code getHeaders()} instead. * * @return immutable map of HTTP header values. * @throws ParseException if an un-expected/in-correct value is found during parsing the headers. */ public MultivaluedMap<String, ParameterizedHeader> getParameterizedHeaders() throws ParseException { return new ImmutableMultivaluedMap<>(new ParameterizedHeadersMap(headers)); }
/** * Returns an immutable map of parameterized HTTP header value(s) for this {@code BodyPart}, * keyed by header name. Key comparisons in the returned map must be case-insensitive. If you wish to modify the headers * map for this {@code BodyPart}, modify the map returned by {@code getHeaders()} instead. * * @return immutable map of HTTP header values. * @throws ParseException if an un-expected/in-correct value is found during parsing the headers. */ public MultivaluedMap<String, ParameterizedHeader> getParameterizedHeaders() throws ParseException { return new ImmutableMultivaluedMap<>(new ParameterizedHeadersMap(headers)); }
/** * Returns an immutable map of parameterized HTTP header value(s) for this {@code BodyPart}, * keyed by header name. Key comparisons in the returned map must be case-insensitive. If you wish to modify the headers * map for this {@code BodyPart}, modify the map returned by {@code getHeaders()} instead. * * @return immutable map of HTTP header values. * @throws ParseException if an un-expected/in-correct value is found during parsing the headers. */ public MultivaluedMap<String, ParameterizedHeader> getParameterizedHeaders() throws ParseException { return new ImmutableMultivaluedMap<>(new ParameterizedHeadersMap(headers)); }