inboundEntityChannel = new ReadableChunkedChannel(this,
getBuffer(), getConnection()
.getReadableSelectionChannel());
} else {
// Wrap the buffer channel to control its announced size
inboundEntityChannel = new ReadableSizedSelectionChannel(this,
getBuffer(), getConnection()
.getReadableSelectionChannel(), contentLength);
}
setEntityRegistration(inboundEntityChannel.getRegistration());