public class AcceptHeaders extends Object
Constructor and Description |
---|
AcceptHeaders() |
Modifier and Type | Method and Description |
---|---|
static Map<Locale,QualityValue> |
getLocaleQualityValues(String header)
Gets the locales from a comma-separated list.
|
static Map<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.
|
public static Map<String,QualityValue> getStringQualityValues(String header)
null
keys.header
- the header value.null
if the header didn't contain any entries.public static Map<Locale,QualityValue> getLocaleQualityValues(String header)
null
keys.header
- the header value.null
if the header didn't contain any entries.public static Map<MediaType,QualityValue> getMediaTypeQualityValues(String header)
header
- the header value.null
if the header didn't contain any entries.Copyright © 2021 JBoss by Red Hat. All rights reserved.