org.apache.flink.shaded.netty4.io.netty.handler.codec.http.multipart.HttpPostRequestDecoder Java Examples

The following examples show how to use org.apache.flink.shaded.netty4.io.netty.handler.codec.http.multipart.HttpPostRequestDecoder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FileUploadHandler.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
private void reset() {
	// destroy() can fail because some data is stored multiple times in the decoder causing an IllegalReferenceCountException
	// see https://github.com/netty/netty/issues/7814
	try {
		currentHttpPostRequestDecoder.getBodyHttpDatas().clear();
	} catch (HttpPostRequestDecoder.NotEnoughDataDecoderException ned) {
		// this method always fails if not all chunks were offered to the decoder yet
		LOG.debug("Error while resetting handler.", ned);
	}
	currentHttpPostRequestDecoder.destroy();
	currentHttpPostRequestDecoder = null;
	currentHttpRequest = null;
	currentUploadDir = null;
	currentJsonPayload = null;
}
 
Example #2
Source File: FileUploadHandler.java    From flink with Apache License 2.0 5 votes vote down vote up
private void reset() {
	// destroy() can fail because some data is stored multiple times in the decoder causing an IllegalReferenceCountException
	// see https://github.com/netty/netty/issues/7814
	try {
		currentHttpPostRequestDecoder.getBodyHttpDatas().clear();
	} catch (HttpPostRequestDecoder.NotEnoughDataDecoderException ned) {
		// this method always fails if not all chunks were offered to the decoder yet
		LOG.debug("Error while resetting handler.", ned);
	}
	currentHttpPostRequestDecoder.destroy();
	currentHttpPostRequestDecoder = null;
	currentHttpRequest = null;
	currentUploadDir = null;
	currentJsonPayload = null;
}
 
Example #3
Source File: FileUploadHandler.java    From flink with Apache License 2.0 5 votes vote down vote up
private void reset() {
	// destroy() can fail because some data is stored multiple times in the decoder causing an IllegalReferenceCountException
	// see https://github.com/netty/netty/issues/7814
	try {
		currentHttpPostRequestDecoder.getBodyHttpDatas().clear();
	} catch (HttpPostRequestDecoder.NotEnoughDataDecoderException ned) {
		// this method always fails if not all chunks were offered to the decoder yet
		LOG.debug("Error while resetting handler.", ned);
	}
	currentHttpPostRequestDecoder.destroy();
	currentHttpPostRequestDecoder = null;
	currentHttpRequest = null;
	currentUploadDir = null;
	currentJsonPayload = null;
}