cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1518954 - in /cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec: ClientRequestContextImpl.java ClientResponseContextImpl.java
Date Fri, 30 Aug 2013 12:30:32 GMT
Author: sergeyb
Date: Fri Aug 30 12:30:32 2013
New Revision: 1518954

URL: http://svn.apache.org/r1518954
Log:
Also fixing client contexts to deal with streams

Modified:
    cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientRequestContextImpl.java
    cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientResponseContextImpl.java

Modified: cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientRequestContextImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientRequestContextImpl.java?rev=1518954&r1=1518953&r2=1518954&view=diff
==============================================================================
--- cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientRequestContextImpl.java
(original)
+++ cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientRequestContextImpl.java
Fri Aug 30 12:30:32 2013
@@ -93,7 +93,7 @@ public class ClientRequestContextImpl ex
     
     @Override
     public OutputStream getEntityStream() {
-        return m.get(OutputStream.class);
+        return m.getContent(OutputStream.class);
     }
 
     @Override
@@ -144,7 +144,7 @@ public class ClientRequestContextImpl ex
 
     @Override
     public void setEntityStream(OutputStream os) {
-        m.put(OutputStream.class, os);
+        m.setContent(OutputStream.class, os);
 
     }
 

Modified: cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientResponseContextImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientResponseContextImpl.java?rev=1518954&r1=1518953&r2=1518954&view=diff
==============================================================================
--- cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientResponseContextImpl.java
(original)
+++ cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientResponseContextImpl.java
Fri Aug 30 12:30:32 2013
@@ -39,7 +39,7 @@ public class ClientResponseContextImpl e
     }
     
     public InputStream getEntityStream() {
-        return m.get(InputStream.class);
+        return m.getContent(InputStream.class);
     }
 
     @SuppressWarnings("unchecked")
@@ -55,7 +55,7 @@ public class ClientResponseContextImpl e
     
     @Override
     public void setEntityStream(InputStream is) {
-        m.put(InputStream.class, is);
+        m.setContent(InputStream.class, is);
 
     }
 }



Mime
View raw message