Repository: camel
Updated Branches:
  refs/heads/master c920eb5f6 -> a5771f5a8


CAMEL-10560, added getSubmittedFileName() into PartDataSource to retrieve file 
name specified by the client


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e41bdaaf
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e41bdaaf
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e41bdaaf

Branch: refs/heads/master
Commit: e41bdaaf608b6fc4506f600b5a6a6f5c48a24143
Parents: 19e59f3
Author: Fabrizio Spataro <fabrizio.spat...@bizmate.it>
Authored: Mon Dec 5 17:42:38 2016 +0100
Committer: Fabrizio Spataro <fabrizio.spat...@bizmate.it>
Committed: Mon Dec 5 17:42:38 2016 +0100

----------------------------------------------------------------------
 .../apache/camel/component/servlet/AttachmentHttpBinding.java  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e41bdaaf/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/AttachmentHttpBinding.java
----------------------------------------------------------------------
diff --git 
a/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/AttachmentHttpBinding.java
 
b/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/AttachmentHttpBinding.java
index d84a271..f9598fd 100644
--- 
a/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/AttachmentHttpBinding.java
+++ 
b/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/AttachmentHttpBinding.java
@@ -66,6 +66,10 @@ final class AttachmentHttpBinding extends DefaultHttpBinding 
{
             this.part = part;
         }
 
+        public String getSubmittedFileName() {
+            return part.getSubmittedFileName();
+        }
+
         @Override
         public OutputStream getOutputStream() throws IOException {
             return null;
@@ -86,4 +90,4 @@ final class AttachmentHttpBinding extends DefaultHttpBinding {
             return part.getContentType();
         }
     }
-}
\ No newline at end of file
+}

Reply via email to