@Override
				public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
						throws Exception {
					if (e.getCause() instanceof TooLongFrameException) {
						HttpResponse err = new DefaultHttpResponse(HTTP_1_1,
								REQUEST_ENTITY_TOO_LARGE);
						e.getChannel().write(err).addListener(ChannelFutureListener.CLOSE);
					}
				}
Set the max content length; default 1Mb.
@param maxContentLength the max content length.
extensions/spring-xd-extension-http/src/main/java/org/springframework/integration/x/http/NettyHttpInboundChannelAdapter.java