You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2012/08/21 18:13:50 UTC

svn commit: r1375645 - /cxf/branches/2.6.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java

Author: dkulp
Date: Tue Aug 21 16:13:50 2012
New Revision: 1375645

URL: http://svn.apache.org/viewvc?rev=1375645&view=rev
Log:
Merged revisions 1374412 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1374412 | dkulp | 2012-08-17 15:53:57 -0400 (Fri, 17 Aug 2012) | 2 lines

  Dispatch should implement closeable as well to release resources

........

Modified:
    cxf/branches/2.6.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java

Modified: cxf/branches/2.6.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java?rev=1375645&r1=1375644&r2=1375645&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java (original)
+++ cxf/branches/2.6.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java Tue Aug 21 16:13:50 2012
@@ -20,6 +20,7 @@
 package org.apache.cxf.jaxws;
 
 import java.io.ByteArrayInputStream;
+import java.io.Closeable;
 import java.io.IOException;
 import java.io.StringWriter;
 import java.net.HttpURLConnection;
@@ -90,7 +91,7 @@ import org.apache.cxf.staxutils.StaxSour
 import org.apache.cxf.staxutils.StaxUtils;
 import org.apache.cxf.ws.addressing.WSAddressingFeature;
 
-public class DispatchImpl<T> implements Dispatch<T>, BindingProvider {
+public class DispatchImpl<T> implements Dispatch<T>, BindingProvider, Closeable {
     private static final Logger LOG = LogUtils.getL7dLogger(DispatchImpl.class);
     private static final String DISPATCH_NS = "http://cxf.apache.org/jaxws/dispatch";
     private static final String INVOKE_NAME = "Invoke";
@@ -530,5 +531,9 @@ public class DispatchImpl<T> implements 
         }
         return payloadElementMap;
     }
+
+    public void close() throws IOException {
+        client.destroy();
+    }
     
 }