From 5e896cf0b35c8ff92c71b65210dea7f0b2221cfc Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 30 May 2012 15:53:20 -0700 Subject: [PATCH] Add a note that explain the behavior of CookieEncoder (#94) - Contributed by @normanmaurer --- .../main/java/io/netty/handler/codec/http/CookieEncoder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/CookieEncoder.java b/codec-http/src/main/java/io/netty/handler/codec/http/CookieEncoder.java index a8de9a8e46..9ed9b0b0f0 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/CookieEncoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/CookieEncoder.java @@ -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. + * + * Be aware that calling this method will clear the {@link Cookie}s you added to + * this encoder. */ public String encode() { String answer;