class NettyMultipartRequest extends NettyRequest {
private final Queue<HttpContent> rawRequestContents = new LinkedBlockingQueue<HttpContent>();
private final Logger logger = LoggerFactory.getLogger(getClass());
private boolean readyForRead = false;
private boolean hasBlob = false;
<BUG>public NettyMultipartRequest(HttpRequest request, NettyMetrics nettyMetrics)
</BUG>
throws RestServiceException {
<BUG>super(request, nettyMetrics);

if (!getRestMethod().equals(RestMethod.POST)) {</BUG>
throw new IllegalArgumentException("NettyMultipartRequest cannot be created for " + getRestMethod());

class NettyMultipartRequest extends NettyRequest {
private final Queue<HttpContent> rawRequestContents = new LinkedBlockingQueue<HttpContent>();
private final Logger logger = LoggerFactory.getLogger(getClass());
private boolean readyForRead = false;
private boolean hasBlob = false;
public NettyMultipartRequest(HttpRequest request, Channel channel, NettyMetrics nettyMetrics)
throws RestServiceException {
super(request, channel, nettyMetrics);
setAutoRead(true);
if (!getRestMethod().equals(RestMethod.POST)) {
throw new IllegalArgumentException("NettyMultipartRequest cannot be created for " + getRestMethod());
