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:
parent
436380c41e
commit
f95dbb7a4d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user