From f95dbb7a4d5111978d6b2e793d5dd9a4dc250b2c Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 2 Apr 2013 16:07:31 +0900 Subject: [PATCH] Make HttpPostRequestDecoder.addHttpData() and getFileUpload() protected .. so that a user can extend it to get notified when changes are made --- .../handler/codec/http/multipart/HttpPostRequestDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoder.java b/codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoder.java index 66dbcf6604..7fa47fe4fa 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoder.java @@ -423,7 +423,7 @@ public class HttpPostRequestDecoder { /** * Utility function to add a new decoded data */ - private void addHttpData(InterfaceHttpData data) { + protected void addHttpData(InterfaceHttpData data) { if (data == null) { return; } @@ -1064,7 +1064,7 @@ public class HttpPostRequestDecoder { * @return the InterfaceHttpData if any * @throws ErrorDataDecoderException */ - private InterfaceHttpData getFileUpload(String delimiter) throws ErrorDataDecoderException { + protected InterfaceHttpData getFileUpload(String delimiter) throws ErrorDataDecoderException { // eventually restart from existing FileUpload // Now get value according to Content-Type and Charset Attribute encoding = currentFieldAttributes.get(HttpHeaders.Names.CONTENT_TRANSFER_ENCODING);