test_class.declarator: cacheControlHeaderDelegate
test_class.modifier: private
test_class.original_string: private CacheControlHeaderDelegate cacheControlHeaderDelegate;
test_class.type: CacheControlHeaderDelegate
test_class.var_name: cacheControlHeaderDelegate
test_class.file: everrest-core/src/test/java/org/everrest/core/impl/header/CacheControlHeaderDelegateTest.java
test_class.identifier: CacheControlHeaderDelegateTest
test_case.body: @Test
      public void testToStringCacheControlWithAllArguments() throws Exception {
          CacheControl cacheControl = aCacheControl()
                  .withMaxAge(60)
                  .withMustRevalidate(true)
                  .withNoCache(true)
                  .withNoStore(true)
                  .withNoTransform(true)
                  .withPrivate(true)
                  .withProxyRevalidate(true)
                  .withSMaxAge(60)
                  .withPrivateFields(newArrayList("aaa"))
                  .withNoCacheFields(newArrayList("bbb"))
                  .withCacheExtension(ImmutableMap.of("foo", "bar"))
                  .build();
  
          assertEquals("private=\"aaa\", no-cache=\"bbb\", no-store, no-transform, must-revalidate, proxy-revalidate, 60, 60, foo=bar",
                       cacheControlHeaderDelegate.toString(cacheControl));
      }
test_case.class_method_signature: CacheControlHeaderDelegateTest.testToStringCacheControlWithAllArguments()
test_case.full_signature: @Test public void testToStringCacheControlWithAllArguments()
test_case.identifier: testToStringCacheControlWithAllArguments
test_case.invocations: build withCacheExtension withNoCacheFields withPrivateFields withSMaxAge withProxyRevalidate withPrivate withNoTransform withNoStore withNoCache withMustRevalidate withMaxAge aCacheControl newArrayList newArrayList of assertEquals toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToStringCacheControlWithAllArguments()
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/header/CacheControlHeaderDelegate.java
focal_class.identifier: CacheControlHeaderDelegate
focal_class.interfaces: implements RuntimeDelegate.HeaderDelegate<CacheControl>
focal_class.class_method_signature: CacheControlHeaderDelegate.fromString(String header)
focal_class.full_signature: @Override public CacheControl fromString(String header)
focal_class.identifier: fromString
focal_class.modifiers: @Override public
focal_class.parameters: (String header)
focal_class.return: CacheControl
focal_class.signature: CacheControl fromString(String header)
focal_class.class_method_signature: CacheControlHeaderDelegate.toString(CacheControl header)
focal_class.full_signature: @Override public String toString(CacheControl header)
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: (CacheControl header)
focal_class.return: String
focal_class.signature: String toString(CacheControl header)
focal_class.class_method_signature: CacheControlHeaderDelegate.appendString(StringBuilder buff, String s)
focal_class.full_signature: private void appendString(StringBuilder buff, String s)
focal_class.identifier: appendString
focal_class.modifiers: private
focal_class.parameters: (StringBuilder buff, String s)
focal_class.return: void
focal_class.signature: void appendString(StringBuilder buff, String s)
focal_class.class_method_signature: CacheControlHeaderDelegate.appendWithSingleParameter(StringBuilder buff, String key, String value)
focal_class.full_signature: private void appendWithSingleParameter(StringBuilder buff, String key, String value)
focal_class.identifier: appendWithSingleParameter
focal_class.modifiers: private
focal_class.parameters: (StringBuilder buff, String key, String value)
focal_class.return: void
focal_class.signature: void appendWithSingleParameter(StringBuilder buff, String key, String value)
focal_class.class_method_signature: CacheControlHeaderDelegate.appendWithParameters(StringBuilder buff, String key, List<String> values)
focal_class.full_signature: private void appendWithParameters(StringBuilder buff, String key, List<String> values)
focal_class.identifier: appendWithParameters
focal_class.modifiers: private
focal_class.parameters: (StringBuilder buff, String key, List<String> values)
focal_class.return: void
focal_class.signature: void appendWithParameters(StringBuilder buff, String key, List<String> values)
focal_method.body: @Override
      public String toString(CacheControl header) {
          StringBuilder buff = new StringBuilder();
          if (!header.isPrivate()) {
              appendString(buff, "public");
          }
          if (header.isPrivate()) {
              appendWithParameters(buff, "private", header.getPrivateFields());
          }
          if (header.isNoCache()) {
              appendWithParameters(buff, "no-cache", header.getNoCacheFields());
          }
          if (header.isNoStore()) {
              appendString(buff, "no-store");
          }
          if (header.isNoTransform()) {
              appendString(buff, "no-transform");
          }
          if (header.isMustRevalidate()) {
              appendString(buff, "must-revalidate");
          }
          if (header.isProxyRevalidate()) {
              appendString(buff, "proxy-revalidate");
          }
          if (header.getMaxAge() >= 0) {
              appendString(buff, Integer.toString(header.getMaxAge()));
          }
          if (header.getSMaxAge() >= 0) {
              appendString(buff, Integer.toString(header.getSMaxAge()));
          }
          for (Map.Entry<String, String> entry : header.getCacheExtension().entrySet()) {
              appendWithSingleParameter(buff, entry.getKey(), entry.getValue());
          }
          return buff.toString();
      }
focal_method.class_method_signature: CacheControlHeaderDelegate.toString(CacheControl header)
focal_method.full_signature: @Override public String toString(CacheControl header)
focal_method.identifier: toString
focal_method.invocations: isPrivate appendString isPrivate appendWithParameters getPrivateFields isNoCache appendWithParameters getNoCacheFields isNoStore appendString isNoTransform appendString isMustRevalidate appendString isProxyRevalidate appendString getMaxAge appendString toString getMaxAge getSMaxAge appendString toString getSMaxAge entrySet getCacheExtension appendWithSingleParameter getKey getValue toString
focal_method.modifiers: @Override public
focal_method.parameters: (CacheControl header)
focal_method.return: String
focal_method.signature: String toString(CacheControl header)