Class VariantQuality
java.lang.Object
org.jboss.resteasy.core.request.VariantQuality
A individual variant quality bean for the RVSA (Remote Variant Selection Algorithm).
- Author:
- Pascal S. de Kloe
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe position in the list of languages this descriptor was created for.Returns how precisely the variant's language matched the request entry.jakarta.ws.rs.core.MediaTypevoidvoidvoidsetLanguageMatchPosition(int languageMatchPosition) Sets the position of this language value was set at.voidsetLanguageMatchPrecision(LanguageMatchPrecision languageMatchPrecision) Sets the language match precision.voidvoidvoidsetRequestMediaType(jakarta.ws.rs.core.MediaType requestMediaType)
-
Constructor Details
-
VariantQuality
public VariantQuality()
-
-
Method Details
-
setMediaTypeQualityValue
-
setCharacterSetQualityValue
-
setEncodingQualityValue
-
setLanguageQualityValue
-
getLanguageMatchPosition
public int getLanguageMatchPosition()The position in the list of languages this descriptor was created for.- Returns:
- the position in the list of the languages
-
setLanguageMatchPosition
public void setLanguageMatchPosition(int languageMatchPosition) Sets the position of this language value was set at.- Parameters:
languageMatchPosition- the position
-
getLanguageMatchPrecision
Returns how precisely the variant's language matched the request entry.- Returns:
- the match precision
-
setLanguageMatchPrecision
Sets the language match precision.- Parameters:
languageMatchPrecision- the precision
-
getRequestMediaType
public jakarta.ws.rs.core.MediaType getRequestMediaType() -
setRequestMediaType
public void setRequestMediaType(jakarta.ws.rs.core.MediaType requestMediaType) -
getOverallQuality
- Returns:
- the quality value between zero and one with five decimal places after the point.
- See Also:
-