@ Nonnull public QValue getQValueOfEncoding ( @ Nonnull final String sEncoding ) { ValueEnforcer . notNull ( sEncoding , "Encoding" ) ; // Direct search encoding QValue aQuality = m_aMap . get ( _unify ( sEncoding ) ) ; if ( aQuality == null ) { // If not explicitly given, check for "*" aQuality = m_aMap . get ( AcceptEncodingHandler . ANY_ENCODING ) ; if ( aQuality == null ) { // Neither encoding nor "*" is present // -> assume minimum quality return QValue . MIN_QVALUE ; } } return aQuality ; }
Return the associated quality of the given encoding .