Package org.jboss.resteasy.core.request
Class AcceptHeaders
java.lang.Object
org.jboss.resteasy.core.request.AcceptHeaders
- Author:
 - Pascal S. de Kloe
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic Map<Locale, QualityValue> getLocaleQualityValues(String header) Gets the locales from a comma-separated list.static Map<jakarta.ws.rs.core.MediaType, QualityValue> getMediaTypeQualityValues(String header) Gets the media types from a comma-separated list.static Map<String, QualityValue> getStringQualityValues(String header) Gets the strings from a comma-separated list. 
- 
Constructor Details
- 
AcceptHeaders
public AcceptHeaders() 
 - 
 - 
Method Details
- 
getStringQualityValues
Gets the strings from a comma-separated list. All "*" entries are replaced withnullkeys.- Parameters:
 header- the header value.- Returns:
 - the listed items in order of appearance or 
nullif the header didn't contain any entries. 
 - 
getLocaleQualityValues
Gets the locales from a comma-separated list. Any "*" entries are replaced withnullkeys.- Parameters:
 header- the header value.- Returns:
 - the listed items in order of appearance or 
nullif the header didn't contain any entries. 
 - 
getMediaTypeQualityValues
public static Map<jakarta.ws.rs.core.MediaType,QualityValue> getMediaTypeQualityValues(String header) Gets the media types from a comma-separated list.- Parameters:
 header- the header value.- Returns:
 - the listed items in order of appearance or 
nullif the header didn't contain any entries. 
 
 -