if (len == ContentLengthStrategy.CHUNKED) {
this.contentDecoder = new ChunkDecoder(this.session.channel(), this.inbuf);
entity.setChunked(true);
entity.setContentLength(-1);
} else if (len == ContentLengthStrategy.IDENTITY) {
this.contentDecoder = new IdentityDecoder(this.session.channel(), this.inbuf);
entity.setChunked(false);
entity.setContentLength(-1);
} else {
this.contentDecoder = new LengthDelimitedDecoder(this.session.channel(), this.inbuf, len);
entity.setChunked(false);