More Javadoc

This commit is contained in:
Trustin Lee 2009-11-17 07:43:43 +00:00
parent 8c39e2823e
commit 96bbbbb7f1

View File

@ -137,6 +137,11 @@ public interface HttpMessage {
* Returns {@code true} if and only if this message does not have any
* content but the {@link HttpChunk}s, which is generated by
* {@link HttpMessageDecoder} consecutively, contain the actual content.
* <p>
* Please note that this method will keep returning {@code true} if the
* {@code "Transfer-Encoding"} of this message is {@code "chunked"}, even if
* you attempt to override this property by calling {@link #setChunked(boolean)}
* with {@code false}.
*/
boolean isChunked();
@ -147,6 +152,10 @@ public interface HttpMessage {
* <p>
* If this method is called with {@code true}, the content of this message
* becomes {@link ChannelBuffers#EMPTY_BUFFER}.
* <p>
* Even if this method is called with {@code false}, {@link #isChunked()}
* will keep returning {@code true} if the {@code "Transfer-Encoding"} of
* this message is {@code "chunked"}.
*/
void setChunked(boolean chunked);