Make HttpPostRequestDecoder.addHttpData() and getFileUpload() protected

.. so that a user can extend it to get notified when changes are made
This commit is contained in:
Trustin Lee 2013-04-02 16:07:31 +09:00
parent 436380c41e
commit f95dbb7a4d

View File

@ -423,7 +423,7 @@ public class HttpPostRequestDecoder {
/** /**
* Utility function to add a new decoded data * Utility function to add a new decoded data
*/ */
private void addHttpData(InterfaceHttpData data) { protected void addHttpData(InterfaceHttpData data) {
if (data == null) { if (data == null) {
return; return;
} }
@ -1064,7 +1064,7 @@ public class HttpPostRequestDecoder {
* @return the InterfaceHttpData if any * @return the InterfaceHttpData if any
* @throws ErrorDataDecoderException * @throws ErrorDataDecoderException
*/ */
private InterfaceHttpData getFileUpload(String delimiter) throws ErrorDataDecoderException { protected InterfaceHttpData getFileUpload(String delimiter) throws ErrorDataDecoderException {
// eventually restart from existing FileUpload // eventually restart from existing FileUpload
// Now get value according to Content-Type and Charset // Now get value according to Content-Type and Charset
Attribute encoding = currentFieldAttributes.get(HttpHeaders.Names.CONTENT_TRANSFER_ENCODING); Attribute encoding = currentFieldAttributes.get(HttpHeaders.Names.CONTENT_TRANSFER_ENCODING);