}
public boolean doHandle(final FilterChainContext ctx, final Request request, final HttpRequestPacket requestPacket) throws IOException {
final List<Part> parts = request.getParts();
final MultipartBody multipartBody = MultipartUtils.newMultipartBody(parts, request.getHeaders());
requestPacket.setContentLengthLong(multipartBody.getContentLength());
requestPacket.setContentType(multipartBody.getContentType());
if (GrizzlyAsyncHttpProvider.LOGGER.isDebugEnabled()) {
GrizzlyAsyncHttpProvider.LOGGER.debug("REQUEST(modified): contentLength={}, contentType={}",
new Object[] { requestPacket.getContentLength(), requestPacket.getContentType() });
}