You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ay...@apache.org on 2014/02/27 21:47:09 UTC
git commit: use block-write for bytes writing
Repository: cxf
Updated Branches:
refs/heads/master a7c4de45e -> 2c2c74460
use block-write for bytes writing
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/2c2c7446
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/2c2c7446
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/2c2c7446
Branch: refs/heads/master
Commit: 2c2c744608675c802039e79afacdae34efd5d433
Parents: a7c4de4
Author: Akitoshi Yoshida <ay...@apache.org>
Authored: Thu Feb 27 21:46:52 2014 +0100
Committer: Akitoshi Yoshida <ay...@apache.org>
Committed: Thu Feb 27 21:46:52 2014 +0100
----------------------------------------------------------------------
.../org/apache/cxf/jaxrs/impl/ServletOutputStreamFilter.java | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/2c2c7446/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ServletOutputStreamFilter.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ServletOutputStreamFilter.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ServletOutputStreamFilter.java
index ce5478d..13ddc44 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ServletOutputStreamFilter.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ServletOutputStreamFilter.java
@@ -48,6 +48,12 @@ public class ServletOutputStreamFilter extends ServletOutputStream {
os.write(b);
}
+ @Override
+ public void write(byte[] b, int off, int len) throws IOException {
+ setComittedStatus();
+ os.write(b, off, len);
+ }
+
private void setComittedStatus() {
m.getExchange().put(AbstractHTTPDestination.RESPONSE_COMMITED, Boolean.TRUE);
}