Class VariantQuality

java.lang.Object
org.jboss.resteasy.core.request.VariantQuality

public class VariantQuality extends Object
A individual variant quality bean for the RVSA (Remote Variant Selection Algorithm).
Author:
Pascal S. de Kloe
See Also:
  • "RFC 2296"
  • Constructor Details

    • VariantQuality

      public VariantQuality()
  • Method Details

    • setMediaTypeQualityValue

      public void setMediaTypeQualityValue(QualityValue value)
    • setCharacterSetQualityValue

      public void setCharacterSetQualityValue(QualityValue value)
    • setEncodingQualityValue

      public void setEncodingQualityValue(QualityValue value)
    • setLanguageQualityValue

      public void setLanguageQualityValue(QualityValue value)
    • getRequestMediaType

      public jakarta.ws.rs.core.MediaType getRequestMediaType()
    • setRequestMediaType

      public void setRequestMediaType(jakarta.ws.rs.core.MediaType requestMediaType)
    • getOverallQuality

      public BigDecimal getOverallQuality()
      Returns:
      the quality value between zero and one with five decimal places after the point.
      See Also:
      • "3.3 Computing overall quality values"