cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: [CXF-5639] Minor updates to StreamingResponseProvider
Date Tue, 25 Mar 2014 11:16:22 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 3f1542f09 -> 9962043b6


[CXF-5639] Minor updates to StreamingResponseProvider


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

Branch: refs/heads/master
Commit: 9962043b677b1105e9d5def79e8175215541cd31
Parents: 3f1542f
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Tue Mar 25 11:15:53 2014 +0000
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Tue Mar 25 11:15:53 2014 +0000

----------------------------------------------------------------------
 .../jaxrs/provider/StreamingResponseProvider.java | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/9962043b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/StreamingResponseProvider.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/StreamingResponseProvider.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/StreamingResponseProvider.java
index 1154df8..3cfde6e 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/StreamingResponseProvider.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/StreamingResponseProvider.java
@@ -57,8 +57,8 @@ public class StreamingResponseProvider<T> implements
             throw new InternalServerErrorException();
         }
         //TODO: review the possibility of caching the providers
-        StreamingProviderWriterImpl thewriter = 
-            new StreamingProviderWriterImpl(writer, actualCls, anns, mt, headers, os);
+        StreamingResponseWriter thewriter = 
+            new StreamingResponseWriter(writer, actualCls, anns, mt, headers, os);
         p.writeTo(thewriter);
     }
 
@@ -67,7 +67,7 @@ public class StreamingResponseProvider<T> implements
         return -1;
     }
     
-    private class StreamingProviderWriterImpl implements StreamingResponse.Writer<T>
{
+    private class StreamingResponseWriter implements StreamingResponse.Writer<T> {
         private MessageBodyWriter<T> writer;
         private Class<?> cls;
         private MediaType mt;
@@ -75,12 +75,12 @@ public class StreamingResponseProvider<T> implements
         private MultivaluedMap<String, Object> headers; 
         private OutputStream os;
                 
-        public StreamingProviderWriterImpl(MessageBodyWriter<T> writer, 
-                                           Class<?> cls,
-                                           Annotation[] anns,
-                                           MediaType mt,
-                                           MultivaluedMap<String, Object> headers,

-                                           OutputStream os) {
+        public StreamingResponseWriter(MessageBodyWriter<T> writer, 
+                                       Class<?> cls,
+                                       Annotation[] anns,
+                                       MediaType mt,
+                                       MultivaluedMap<String, Object> headers, 
+                                       OutputStream os) {
             this.writer = writer;
             this.cls = cls;
             this.anns = anns;


Mime
View raw message