public interface ParsedHeaderValues
Modifier and Type | Method and Description |
---|---|
List<MIMEHeader> |
accept() |
List<ParsedHeaderValue> |
acceptCharset() |
List<ParsedHeaderValue> |
acceptEncoding() |
List<LanguageHeader> |
acceptLanguage() |
MIMEHeader |
contentType() |
MIMEHeader |
findBestUserAcceptedIn(List<MIMEHeader> accepted,
Collection<MIMEHeader> 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
headerMIMEHeader findBestUserAcceptedIn(List<MIMEHeader> accepted, Collection<MIMEHeader> 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.