cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1378309 - /cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java
Date Tue, 28 Aug 2012 20:26:52 GMT
Author: dkulp
Date: Tue Aug 28 20:26:51 2012
New Revision: 1378309

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

........
  r1375645 | dkulp | 2012-08-21 12:13:50 -0400 (Tue, 21 Aug 2012) | 10 lines

  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.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java

Modified: cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java?rev=1378309&r1=1378308&r2=1378309&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java
Tue Aug 28 20:26:51 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;
@@ -89,7 +90,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";
@@ -529,5 +530,9 @@ public class DispatchImpl<T> implements 
         }
         return payloadElementMap;
     }
+
+    public void close() throws IOException {
+        client.destroy();
+    }
     
 }



Mime
View raw message