/*
 * Copyright 2012 The Netty Project
 *
 * The Netty Project licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package io.netty.handler.codec.http;

public enum HttpTransferEncoding {
    CHUNKED(false),
    STREAMED(false),
    SINGLE(true);

    private final boolean single;

    private HttpTransferEncoding(boolean single) {
        this.single = single;
    }

    public boolean isMultiple() {
        return !single;
    }

    public boolean isSingle() {
        return single;
    }
}

@@ -670,290 +670,2405 @@
 p;%0A%0A
-public enum HttpTransferEncoding %7B%0A    CHUNKED(false),%0A    STREAMED(false),%0A    SINGLE(true);%0A%0A    private final boolean single;%0A%0A    private HttpTransferEncoding(boolean single) %7B%0A        this.single = single;%0A    %7D%0A%0A    public boolean isMultiple() %7B%0A        return !single;%0A    %7D%0A
+/**%0A * Represents how an HTTP request or an HTTP response is represented as an %7B@link HttpMessage%7D%0A * and zero or more %7B@link HttpChunk%7Ds.%0A */%0Apublic enum HttpTransferEncoding %7B%0A    /**%0A     * An HTTP message whose transfer encoding is %7B@code chunked%7D as defined in%0A     * %3Ca href=%22http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6%22%3Ethe section 3.6 of%0A     * RFC2616%3C/a%3E so that the content is split into multiple chunks.  A complete HTTP message is%0A     * composed of the following:%0A     * %3Col%3E%0A     * %3Cli%3E%7B@link HttpRequest%7D or %7B@link HttpResponse%7D with empty content%3C/li%3E%0A     * %3Cli%3EA list of %7B@link HttpChunk%7Ds whose content are not empty%3C/li%3E%0A     * %3Cli%3E%7B@link HttpChunkTrailer%7D%3C/li%3E%0A     * %3C/ol%3E%0A     */%0A    CHUNKED(false),%0A    /**%0A     * An HTTP message whose transfer encoding is %3Cstrong%3Enot%3C/strong%3E %7B@code chunked%7D, but%0A     * the length of its content is large enough so that the content is split into multiple%0A     * chunks.  A complete HTTP message is composted of the following.%0A     * %3Col%3E%0A     * %3Cli%3E%7B@link HttpRequest%7D or %7B@link HttpResponse%7D with empty content%3C/li%3E%0A     * %3Cli%3EA list of %7B@link HttpChunk%7Ds whose content are not empty%3C/li%3E%0A     * %3Cli%3E%7B@link HttpChunkTrailer%7D%3C/li%3E%0A     * %3C/ol%3E%0A     * The difference from %7B@link #CHUNKED%7D is that the transfer encoding of the streamed content%0A     * is %3Cstrong%3Enot%3C/strong%3E %7B@code chunked%7D, and thus %7B@link HttpMessageEncoder%7D will%0A     * encode the content as-is, rather than prepending HTTP chunk headers as defined in%0A     * %3Ca href=%22http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6%22%3Ethe section 3.6 of%0A     * RFC2616%3C/a%3E.%0A     */%0A    STREAMED(false),%0A    /**%0A     * A self-contained HTTP message which is not followed by any %7B@link HttpChunk%7Ds.%0A     * A user can set the content of the message via %7B@link HttpMessage#setContent(io.netty.buffer.ByteBuf)%7D.%0A     */%0A    SINGLE(true);%0A%0A    private final boolean single;%0A%0A    private HttpTransferEncoding(boolean single) %7B%0A        this.single = single;%0A    %7D%0A%0A    /**%0A     * Returns %7B@code true%7D if and only if a complete HTTP message is composed of an%0A     * %7B@link HttpMessage%7D and one or more %7B@link HttpChunk%7Ds.%0A     */%0A    public boolean isMultiple() %7B%0A        return !single;%0A    %7D%0A%0A    /**%0A     * Returns %7B@code true%7D if and only if a single %7B@link HttpMessage%7D represents a complete%0A     * HTTP message, not followed by any %7B@link HttpChunk%7Ds.%0A     */
 %0A   

Add Javadoc for HttpTransferEncoding