Add a note that explain the behavior of CookieEncoder (#94)

- Contributed by @normanmaurer
This commit is contained in:
Trustin Lee 2012-05-30 15:53:20 -07:00
parent b5d715343a
commit 5e896cf0b3

View File

@ -82,6 +82,9 @@ public class CookieEncoder {
* Encodes the {@link Cookie}s which were added by {@link #addCookie(Cookie)}
* so far into an HTTP header value. If no {@link Cookie}s were added,
* an empty string is returned.
*
* <strong>Be aware that calling this method will clear the {@link Cookie}s you added to
* this encoder.</strong>
*/
public String encode() {
String answer;