public interface ParsedHeaderValues
Modifier and Type | Method and Description |
---|---|
List<MIMEHeader> |
accept() |
List<ParsedHeaderValue> |
acceptCharset() |
List<ParsedHeaderValue> |
acceptEncoding() |
List<LanguageHeader> |
acceptLanguage() |
MIMEHeader |
contentType() |
<T extends ParsedHeaderValue> |
findBestUserAcceptedIn(List<T> accepted,
Collection<T> in)
Given the sorted list of parsed header values the user has sent and an Iterable of acceptable values:
It finds the first accepted header that matches any inside the Iterable.
|
List<MIMEHeader> accept()
Accept
headerList<ParsedHeaderValue> acceptCharset()
Accept-Charset
headerList<ParsedHeaderValue> acceptEncoding()
Accept-Encoding
headerList<LanguageHeader> acceptLanguage()
Accept-Language
headerMIMEHeader contentType()
Content-Type
header<T extends ParsedHeaderValue> T findBestUserAcceptedIn(List<T> accepted, Collection<T> in)
Note: This method is intended for internal usage.
accepted
- The sorted list of headers to find the best one.in
- The headers to match against.Copyright © 2023 Eclipse. All rights reserved.