Add the toString() method

This commit is contained in:
luchua-bc
2021-03-05 03:05:49 +00:00
parent 919c6b4b0a
commit a93aabab40
2 changed files with 22 additions and 0 deletions

View File

@@ -320,4 +320,15 @@ public class NewCookie extends Cookie {
public Cookie toCookie() {
return null;
}
/**
* Convert the cookie to a string suitable for use as the value of the
* corresponding HTTP header.
*
* @return a stringified cookie.
*/
@Override
public String toString() {
return null;
}
}

View File

@@ -114,4 +114,15 @@ public class Cookie implements Cloneable {
public boolean isHttpOnly() {
return isHttpOnly;
}
/**
* Convert the cookie to a string suitable for use as the value of the
* corresponding HTTP header.
*
* @return a stringified cookie.
*/
@Override
public String toString() {
return null;
}
}