org.jboss.resteasy.core.request
Class AcceptHeaders

java.lang.Object
  extended by org.jboss.resteasy.core.request.AcceptHeaders

public class AcceptHeaders
extends java.lang.Object

Author:
Pascal S. de Kloe

Constructor Summary
AcceptHeaders()
           
 
Method Summary
static java.util.Map<java.util.Locale,QualityValue> getLocaleQualityValues(java.lang.String header)
          Gets the locales from a comma-separated list.
static java.util.Map<MediaType,QualityValue> getMediaTypeQualityValues(java.lang.String header)
          Gets the media types from a comma-separated list.
static java.util.Map<java.lang.String,QualityValue> getStringQualityValues(java.lang.String header)
          Gets the strings from a comma-separated list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptHeaders

public AcceptHeaders()
Method Detail

getStringQualityValues

public static java.util.Map<java.lang.String,QualityValue> getStringQualityValues(java.lang.String header)
Gets the strings from a comma-separated list. All "*" entries are replaced with null keys.

Parameters:
header - the header value.
Returns:
the listed items in order of appearance or null if the header didn't contain any entries.

getLocaleQualityValues

public static java.util.Map<java.util.Locale,QualityValue> getLocaleQualityValues(java.lang.String header)
Gets the locales from a comma-separated list. Any "*" entries are replaced with null keys.

Parameters:
header - the header value.
Returns:
the listed items in order of appearance or null if the header didn't contain any entries.

getMediaTypeQualityValues

public static java.util.Map<MediaType,QualityValue> getMediaTypeQualityValues(java.lang.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 null if the header didn't contain any entries.


Copyright © 2010. All Rights Reserved.