cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1374412 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java
Date Fri, 17 Aug 2012 19:53:58 GMT
Author: dkulp
Date: Fri Aug 17 19:53:57 2012
New Revision: 1374412

URL: http://svn.apache.org/viewvc?rev=1374412&view=rev
Log:
Dispatch should implement closeable as well to release resources

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java?rev=1374412&r1=1374411&r2=1374412&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java (original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java Fri Aug
17 19:53:57 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();
+    }
     
 }



Mime
View raw message