Author: ffang
Date: Wed Jun 13 20:20:25 2007
New Revision: 547100
URL: http://svn.apache.org/viewvc?view=rev&rev=547100
Log:
[CXF-728] StreamInterceptor sample failed
Modified:
incubator/cxf/trunk/distribution/src/main/release/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java
Modified:
incubator/cxf/trunk/distribution/src/main/release/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java?view=diff&rev=547100&r1=547099&r2=547100
==============================================================================
---
incubator/cxf/trunk/distribution/src/main/release/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java
(original)
+++
incubator/cxf/trunk/distribution/src/main/release/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java
Wed Jun 13 20:20:25 2007
@@ -26,7 +26,7 @@
import java.util.zip.GZIPOutputStream;
import org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor;
-import org.apache.cxf.io.AbstractCachedOutputStream;
+import org.apache.cxf.io.CachedOutputStream;
import org.apache.cxf.message.Message;
import org.apache.cxf.phase.AbstractPhaseInterceptor;
import org.apache.cxf.phase.Phase;
@@ -55,10 +55,10 @@
try {
cs.flush();
- AbstractCachedOutputStream csnew =
(AbstractCachedOutputStream) message
+ CachedOutputStream csnew = (CachedOutputStream) message
.getContent(OutputStream.class);
GZIPOutputStream zipOutput = new GZIPOutputStream(os);
- AbstractCachedOutputStream.copyStream(csnew.getInputStream(),
zipOutput, 1024);
+ CachedOutputStream.copyStream(csnew.getInputStream(),
zipOutput, 1024);
cs.close();
zipOutput.close();
@@ -83,7 +83,7 @@
}
- private class CachedStream extends AbstractCachedOutputStream {
+ private class CachedStream extends CachedOutputStream {
public CachedStream() {
super();
}