test_class.declarator: newCookieHeaderDelegate
test_class.modifier: private
test_class.original_string: private NewCookieHeaderDelegate newCookieHeaderDelegate;
test_class.type: NewCookieHeaderDelegate
test_class.var_name: newCookieHeaderDelegate
test_class.file: everrest-core/src/test/java/org/everrest/core/impl/header/NewCookieHeaderDelegateTest.java
test_class.identifier: NewCookieHeaderDelegateTest
test_case.body: @Test(expected = IllegalArgumentException.class)
      public void throwsExceptionWhenNewCookieIsNull() throws Exception {
          newCookieHeaderDelegate.toString(null);
      }
test_case.class_method_signature: NewCookieHeaderDelegateTest.throwsExceptionWhenNewCookieIsNull()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void throwsExceptionWhenNewCookieIsNull()
test_case.identifier: throwsExceptionWhenNewCookieIsNull
test_case.invocations: toString
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void throwsExceptionWhenNewCookieIsNull()
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/header/NewCookieHeaderDelegate.java
focal_class.identifier: NewCookieHeaderDelegate
focal_class.interfaces: implements RuntimeDelegate.HeaderDelegate<NewCookie>
focal_class.class_method_signature: NewCookieHeaderDelegate.fromString(String header)
focal_class.full_signature: @Override public NewCookie fromString(String header)
focal_class.identifier: fromString
focal_class.modifiers: @Override public
focal_class.parameters: (String header)
focal_class.return: NewCookie
focal_class.signature: NewCookie fromString(String header)
focal_class.class_method_signature: NewCookieHeaderDelegate.toString(NewCookie cookie)
focal_class.full_signature: @Override public String toString(NewCookie cookie)
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: (NewCookie cookie)
focal_class.return: String
focal_class.signature: String toString(NewCookie cookie)
focal_method.body: @Override
      public String toString(NewCookie cookie) {
          checkArgument(cookie != null);
          StringBuilder sb = new StringBuilder();
          sb.append(cookie.getName()).append('=').append(addQuotesIfHasWhitespace(cookie.getValue()));
  
          sb.append(';').append("Version=").append(cookie.getVersion());
  
          if (cookie.getComment() != null) {
              sb.append(';').append("Comment=").append(addQuotesIfHasWhitespace(cookie.getComment()));
          }
  
          if (cookie.getDomain() != null) {
              sb.append(';').append("Domain=").append(addQuotesIfHasWhitespace(cookie.getDomain()));
          }
  
          if (cookie.getPath() != null) {
              sb.append(';').append("Path=").append(addQuotesIfHasWhitespace(cookie.getPath()));
          }
  
          if (cookie.getMaxAge() != -1) {
              sb.append(';').append("Max-Age=").append(addQuotesIfHasWhitespace(Integer.toString(cookie.getMaxAge())));
          }
  
          if (cookie.getExpiry() != null) {
              sb.append(';').append("Expires=");
              sb.append(HeaderHelper.formatDate(cookie.getExpiry()));
          }
  
          if (cookie.isSecure()) {
              sb.append(';').append("Secure");
          }
  
          if (cookie.isHttpOnly()) {
              sb.append(';').append("HttpOnly");
          }
  
          return sb.toString();
      }
focal_method.class_method_signature: NewCookieHeaderDelegate.toString(NewCookie cookie)
focal_method.full_signature: @Override public String toString(NewCookie cookie)
focal_method.identifier: toString
focal_method.invocations: checkArgument append append append getName addQuotesIfHasWhitespace getValue append append append getVersion getComment append append append addQuotesIfHasWhitespace getComment getDomain append append append addQuotesIfHasWhitespace getDomain getPath append append append addQuotesIfHasWhitespace getPath getMaxAge append append append addQuotesIfHasWhitespace toString getMaxAge getExpiry append append append formatDate getExpiry isSecure append append isHttpOnly append append toString
focal_method.modifiers: @Override public
focal_method.parameters: (NewCookie cookie)
focal_method.return: String
focal_method.signature: String toString(NewCookie cookie)