test_class.declarator: thrown = ExpectedException.none()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public ExpectedException thrown = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: thrown
test_class.file: everrest-core/src/test/java/org/everrest/core/impl/header/HeaderHelperTest.java
test_class.identifier: HeaderHelperTest
test_case.body: @UseDataProvider("forParsesQualityValue")
      @Test
      public void parsesQualityValue(String qValueString, float expectedResult) throws Exception {
          assertEquals(expectedResult, HeaderHelper.parseQualityValue(qValueString), 0.0f);
      }
test_case.class_method_signature: HeaderHelperTest.parsesQualityValue(String qValueString, float expectedResult)
test_case.full_signature: @UseDataProvider("forParsesQualityValue") @Test public void parsesQualityValue(String qValueString, float expectedResult)
test_case.identifier: parsesQualityValue
test_case.invocations: assertEquals parseQualityValue
test_case.modifiers: @UseDataProvider("forParsesQualityValue") @Test public
test_case.parameters: (String qValueString, float expectedResult)
test_case.return: void
test_case.signature: void parsesQualityValue(String qValueString, float expectedResult)
focal_class.declarator: WHITESPACE_QUOTE_PATTERN = Pattern.compile("[\\s\"]")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern WHITESPACE_QUOTE_PATTERN = Pattern.compile("[\\s\"]");
focal_class.type: Pattern
focal_class.var_name: WHITESPACE_QUOTE_PATTERN
focal_class.declarator: WHITESPACE_PATTERN = Pattern.compile("\\s")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern WHITESPACE_PATTERN = Pattern.compile("\\s");
focal_class.type: Pattern
focal_class.var_name: WHITESPACE_PATTERN
focal_class.declarator: SEPARATORS = new boolean[128]
focal_class.modifier: private static final
focal_class.original_string: private static final boolean[] SEPARATORS = new boolean[128];
focal_class.type: boolean[]
focal_class.var_name: SEPARATORS
focal_class.declarator: ACCEPT_ALL_MEDIA_TYPE = Collections.singletonList(AcceptMediaType.DEFAULT)
focal_class.modifier: private static final
focal_class.original_string: private static final List<AcceptMediaType> ACCEPT_ALL_MEDIA_TYPE = Collections.singletonList(AcceptMediaType.DEFAULT);
focal_class.type: List<AcceptMediaType>
focal_class.var_name: ACCEPT_ALL_MEDIA_TYPE
focal_class.declarator: ACCEPT_ALL_LANGUAGE = Collections.singletonList(AcceptLanguage.DEFAULT)
focal_class.modifier: private static final
focal_class.original_string: private static final List<AcceptLanguage> ACCEPT_ALL_LANGUAGE = Collections.singletonList(AcceptLanguage.DEFAULT);
focal_class.type: List<AcceptLanguage>
focal_class.var_name: ACCEPT_ALL_LANGUAGE
focal_class.declarator: ACCEPT_ALL_TOKENS = Collections.singletonList(new AcceptToken("*"))
focal_class.modifier: private static final
focal_class.original_string: private static final List<AcceptToken> ACCEPT_ALL_TOKENS = Collections.singletonList(new AcceptToken("*"));
focal_class.type: List<AcceptToken>
focal_class.var_name: ACCEPT_ALL_TOKENS
focal_class.declarator: QUALITY_VALUE_COMPARATOR = new Comparator<QualityValue>() {
          @Override
          public int compare(QualityValue qualityValueOne, QualityValue qualityValueTwo) {
              float q1 = qualityValueOne.getQvalue();
              float q2 = qualityValueTwo.getQvalue();
              if (q1 < q2) {
                  return 1;
              }
              if (q1 > q2) {
                  return -1;
              }
              return 0;
          }
      }
focal_class.modifier: public static final
focal_class.original_string: public static final Comparator<QualityValue> QUALITY_VALUE_COMPARATOR = new Comparator<QualityValue>() {
          @Override
          public int compare(QualityValue qualityValueOne, QualityValue qualityValueTwo) {
              float q1 = qualityValueOne.getQvalue();
              float q2 = qualityValueTwo.getQvalue();
              if (q1 < q2) {
                  return 1;
              }
              if (q1 > q2) {
                  return -1;
              }
              return 0;
          }
      };
focal_class.type: Comparator<QualityValue>
focal_class.var_name: QUALITY_VALUE_COMPARATOR
focal_class.declarator: LIST_MEDIA_TYPE_PRODUCER = new ListHeaderProducer<>(new AcceptMediaTypeFactory())
focal_class.modifier: private static final
focal_class.original_string: private static final ListHeaderProducer<AcceptMediaType> LIST_MEDIA_TYPE_PRODUCER = new ListHeaderProducer<>(new AcceptMediaTypeFactory());
focal_class.type: ListHeaderProducer<AcceptMediaType>
focal_class.var_name: LIST_MEDIA_TYPE_PRODUCER
focal_class.declarator: LIST_LANGUAGE_PRODUCER = new ListHeaderProducer<>(new AcceptLanguageFactory())
focal_class.modifier: private static final
focal_class.original_string: private static final ListHeaderProducer<AcceptLanguage> LIST_LANGUAGE_PRODUCER = new ListHeaderProducer<>(new AcceptLanguageFactory());
focal_class.type: ListHeaderProducer<AcceptLanguage>
focal_class.var_name: LIST_LANGUAGE_PRODUCER
focal_class.declarator: LIST_TOKEN_PRODUCER = new ListHeaderProducer<>(new AcceptTokenFactory())
focal_class.modifier: private static final
focal_class.original_string: private static final ListHeaderProducer<AcceptToken> LIST_TOKEN_PRODUCER = new ListHeaderProducer<>(new AcceptTokenFactory());
focal_class.type: ListHeaderProducer<AcceptToken>
focal_class.var_name: LIST_TOKEN_PRODUCER
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/header/HeaderHelper.java
focal_class.identifier: HeaderHelper
focal_class.class_method_signature: HeaderHelper.HeaderHelper()
focal_class.full_signature: private  HeaderHelper()
focal_class.identifier: HeaderHelper
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  HeaderHelper()
focal_class.class_method_signature: HeaderHelper.createAcceptMediaTypeList(String header)
focal_class.full_signature: public static List<AcceptMediaType> createAcceptMediaTypeList(String header)
focal_class.identifier: createAcceptMediaTypeList
focal_class.modifiers: public static
focal_class.parameters: (String header)
focal_class.return: List<AcceptMediaType>
focal_class.signature: List<AcceptMediaType> createAcceptMediaTypeList(String header)
focal_class.class_method_signature: HeaderHelper.createAcceptedLanguageList(String header)
focal_class.full_signature: public static List<AcceptLanguage> createAcceptedLanguageList(String header)
focal_class.identifier: createAcceptedLanguageList
focal_class.modifiers: public static
focal_class.parameters: (String header)
focal_class.return: List<AcceptLanguage>
focal_class.signature: List<AcceptLanguage> createAcceptedLanguageList(String header)
focal_class.class_method_signature: HeaderHelper.createAcceptedCharsetList(String header)
focal_class.full_signature: public static List<AcceptToken> createAcceptedCharsetList(String header)
focal_class.identifier: createAcceptedCharsetList
focal_class.modifiers: public static
focal_class.parameters: (String header)
focal_class.return: List<AcceptToken>
focal_class.signature: List<AcceptToken> createAcceptedCharsetList(String header)
focal_class.class_method_signature: HeaderHelper.createAcceptedEncodingList(String header)
focal_class.full_signature: public static List<AcceptToken> createAcceptedEncodingList(String header)
focal_class.identifier: createAcceptedEncodingList
focal_class.modifiers: public static
focal_class.parameters: (String header)
focal_class.return: List<AcceptToken>
focal_class.signature: List<AcceptToken> createAcceptedEncodingList(String header)
focal_class.class_method_signature: HeaderHelper.parseCookies(String cookiesString)
focal_class.full_signature: public static List<Cookie> parseCookies(String cookiesString)
focal_class.identifier: parseCookies
focal_class.modifiers: public static
focal_class.parameters: (String cookiesString)
focal_class.return: List<Cookie>
focal_class.signature: List<Cookie> parseCookies(String cookiesString)
focal_class.class_method_signature: HeaderHelper.parseNewCookie(String newCookieString)
focal_class.full_signature: public static NewCookie parseNewCookie(String newCookieString)
focal_class.identifier: parseNewCookie
focal_class.modifiers: public static
focal_class.parameters: (String newCookieString)
focal_class.return: NewCookie
focal_class.signature: NewCookie parseNewCookie(String newCookieString)
focal_class.class_method_signature: HeaderHelper.parseDateHeader(String header)
focal_class.full_signature: public static Date parseDateHeader(String header)
focal_class.identifier: parseDateHeader
focal_class.modifiers: public static
focal_class.parameters: (String header)
focal_class.return: Date
focal_class.signature: Date parseDateHeader(String header)
focal_class.class_method_signature: HeaderHelper.formatDate(Date date)
focal_class.full_signature: public static String formatDate(Date date)
focal_class.identifier: formatDate
focal_class.modifiers: public static
focal_class.parameters: (Date date)
focal_class.return: String
focal_class.signature: String formatDate(Date date)
focal_class.class_method_signature: HeaderHelper.getContentLengthLong(MultivaluedMap<String, String> httpHeaders)
focal_class.full_signature: public static long getContentLengthLong(MultivaluedMap<String, String> httpHeaders)
focal_class.identifier: getContentLengthLong
focal_class.modifiers: public static
focal_class.parameters: (MultivaluedMap<String, String> httpHeaders)
focal_class.return: long
focal_class.signature: long getContentLengthLong(MultivaluedMap<String, String> httpHeaders)
focal_class.class_method_signature: HeaderHelper.getHeaderAsString(Object o)
focal_class.full_signature: @SuppressWarnings({"unchecked"}) public static String getHeaderAsString(Object o)
focal_class.identifier: getHeaderAsString
focal_class.modifiers: @SuppressWarnings({"unchecked"}) public static
focal_class.parameters: (Object o)
focal_class.return: String
focal_class.signature: String getHeaderAsString(Object o)
focal_class.class_method_signature: HeaderHelper.convertToString(Collection<String> collection)
focal_class.full_signature: public static String convertToString(Collection<String> collection)
focal_class.identifier: convertToString
focal_class.modifiers: public static
focal_class.parameters: (Collection<String> collection)
focal_class.return: String
focal_class.signature: String convertToString(Collection<String> collection)
focal_class.class_method_signature: HeaderHelper.appendWithQuote(StringBuilder target, String appendMe)
focal_class.full_signature: static void appendWithQuote(StringBuilder target, String appendMe)
focal_class.identifier: appendWithQuote
focal_class.modifiers: static
focal_class.parameters: (StringBuilder target, String appendMe)
focal_class.return: void
focal_class.signature: void appendWithQuote(StringBuilder target, String appendMe)
focal_class.class_method_signature: HeaderHelper.appendEscapeQuote(StringBuilder target, String appendMe)
focal_class.full_signature: static void appendEscapeQuote(StringBuilder target, String appendMe)
focal_class.identifier: appendEscapeQuote
focal_class.modifiers: static
focal_class.parameters: (StringBuilder target, String appendMe)
focal_class.return: void
focal_class.signature: void appendEscapeQuote(StringBuilder target, String appendMe)
focal_class.class_method_signature: HeaderHelper.removeWhitespaces(String str)
focal_class.full_signature: static String removeWhitespaces(String str)
focal_class.identifier: removeWhitespaces
focal_class.modifiers: static
focal_class.parameters: (String str)
focal_class.return: String
focal_class.signature: String removeWhitespaces(String str)
focal_class.class_method_signature: HeaderHelper.addQuotesIfHasWhitespace(String str)
focal_class.full_signature: static String addQuotesIfHasWhitespace(String str)
focal_class.identifier: addQuotesIfHasWhitespace
focal_class.modifiers: static
focal_class.parameters: (String str)
focal_class.return: String
focal_class.signature: String addQuotesIfHasWhitespace(String str)
focal_class.class_method_signature: HeaderHelper.parseQualityValue(String qString)
focal_class.full_signature: static float parseQualityValue(String qString)
focal_class.identifier: parseQualityValue
focal_class.modifiers: static
focal_class.parameters: (String qString)
focal_class.return: float
focal_class.signature: float parseQualityValue(String qString)
focal_class.class_method_signature: HeaderHelper.isToken(String token)
focal_class.full_signature: static int isToken(String token)
focal_class.identifier: isToken
focal_class.modifiers: static
focal_class.parameters: (String token)
focal_class.return: int
focal_class.signature: int isToken(String token)
focal_class.class_method_signature: HeaderHelper.findCookieParameterSeparator(String cookie, int start)
focal_class.full_signature: private static int findCookieParameterSeparator(String cookie, int start)
focal_class.identifier: findCookieParameterSeparator
focal_class.modifiers: private static
focal_class.parameters: (String cookie, int start)
focal_class.return: int
focal_class.signature: int findCookieParameterSeparator(String cookie, int start)
focal_class.class_method_signature: HeaderHelper.removeQuoteEscapes(String token)
focal_class.full_signature: static String removeQuoteEscapes(String token)
focal_class.identifier: removeQuoteEscapes
focal_class.modifiers: static
focal_class.parameters: (String token)
focal_class.return: String
focal_class.signature: String removeQuoteEscapes(String token)
focal_method.body: static float parseQualityValue(String qString) {
          if (qString.length() > 5) {
              throw new IllegalArgumentException("Quality value string has more then 5 characters");
          }
  
          float qValue;
          try {
              qValue = Float.valueOf(qString);
          } catch (NumberFormatException e) {
              throw new IllegalArgumentException(String.format("Invalid quality value '%s'", qString));
          }
          if (qValue > 1.0F) {
              throw new IllegalArgumentException("Quality value can't be greater then 1.0");
          }
  
          return qValue;
      }
focal_method.class_method_signature: HeaderHelper.parseQualityValue(String qString)
focal_method.full_signature: static float parseQualityValue(String qString)
focal_method.identifier: parseQualityValue
focal_method.invocations: length valueOf format
focal_method.modifiers: static
focal_method.parameters: (String qString)
focal_method.return: float
focal_method.signature: float parseQualityValue(String qString)