KIE Remote Services :: Services 6.1.0.CR2

org.kie.remote.services.rest.variant
Class AcceptHeaders

java.lang.Object
  extended by org.kie.remote.services.rest.variant.AcceptHeaders

public class AcceptHeaders
extends Object

Copied from RestEasy 2.3.6.Final with very minor modifications (RestOperationException) Can be deleted when RESTEASY-960 is fixed


Constructor Summary
AcceptHeaders()
           
 
Method Summary
static Map<Locale,QualityValue> getLocaleQualityValues(String header)
          Gets the locales from a comma-separated list.
static Map<javax.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.
 
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 Map<String,QualityValue> getStringQualityValues(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 Map<Locale,QualityValue> getLocaleQualityValues(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 Map<javax.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 null if the header didn't contain any entries.

KIE Remote Services :: Services 6.1.0.CR2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.