test_class.declarator: entityTagHeaderDelegate
test_class.modifier: private
test_class.original_string: private EntityTagHeaderDelegate entityTagHeaderDelegate;
test_class.type: EntityTagHeaderDelegate
test_class.var_name: entityTagHeaderDelegate
test_class.file: everrest-core/src/test/java/org/everrest/core/impl/header/EntityTagHeaderDelegateTest.java
test_class.identifier: EntityTagHeaderDelegateTest
test_case.body: @Test
      public void parsesStringQuotedWeak() {
          EntityTag entityTag = entityTagHeaderDelegate.fromString("W/\"test \\\"test\\\"\"");
  
          assertTrue(entityTag.isWeak());
          assertEquals("test \"test\"", entityTag.getValue());
      }
test_case.class_method_signature: EntityTagHeaderDelegateTest.parsesStringQuotedWeak()
test_case.full_signature: @Test public void parsesStringQuotedWeak()
test_case.identifier: parsesStringQuotedWeak
test_case.invocations: fromString assertTrue isWeak assertEquals getValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void parsesStringQuotedWeak()
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/header/EntityTagHeaderDelegate.java
focal_class.identifier: EntityTagHeaderDelegate
focal_class.interfaces: implements RuntimeDelegate.HeaderDelegate<EntityTag>
focal_class.class_method_signature: EntityTagHeaderDelegate.fromString(String header)
focal_class.full_signature: @Override public EntityTag fromString(String header)
focal_class.identifier: fromString
focal_class.modifiers: @Override public
focal_class.parameters: (String header)
focal_class.return: EntityTag
focal_class.signature: EntityTag fromString(String header)
focal_class.class_method_signature: EntityTagHeaderDelegate.cutWeakPrefix(String header)
focal_class.full_signature: private String cutWeakPrefix(String header)
focal_class.identifier: cutWeakPrefix
focal_class.modifiers: private
focal_class.parameters: (String header)
focal_class.return: String
focal_class.signature: String cutWeakPrefix(String header)
focal_class.class_method_signature: EntityTagHeaderDelegate.toString(EntityTag entityTag)
focal_class.full_signature: @Override public String toString(EntityTag entityTag)
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: (EntityTag entityTag)
focal_class.return: String
focal_class.signature: String toString(EntityTag entityTag)
focal_method.body: @Override
      public EntityTag fromString(String header) {
          if (header == null) {
              throw new IllegalArgumentException();
          }
  
          boolean isWeak = header.startsWith("W/");
  
          String value;
          if (isWeak) {
              value = cutWeakPrefix(header);
          } else {
              value = header;
          }
          value = value.substring(1, value.length() - 1);
          value = HeaderHelper.removeQuoteEscapes(value);
  
          return new EntityTag(value, isWeak);
      }
focal_method.class_method_signature: EntityTagHeaderDelegate.fromString(String header)
focal_method.full_signature: @Override public EntityTag fromString(String header)
focal_method.identifier: fromString
focal_method.invocations: startsWith cutWeakPrefix substring length removeQuoteEscapes
focal_method.modifiers: @Override public
focal_method.parameters: (String header)
focal_method.return: EntityTag
focal_method.signature: EntityTag fromString(String header)