Author: dkulp Date: Tue Sep 11 19:54:30 2012 New Revision: 1383587 URL: http://svn.apache.org/viewvc?rev=1383587&view=rev Log: Merged revisions 1378309 via git cherry-pick from https://svn.apache.org/repos/asf/cxf/branches/2.5.x-fixes
........ r1378309 | dkulp | 2012-08-28 16:26:51 -0400 (Tue, 28 Aug 2012) | 18 lines 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.4.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java Modified: cxf/branches/2.4.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java?rev=1383587&r1=1383586&r2=1383587&view=diff ============================================================================== --- cxf/branches/2.4.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java (original) +++ cxf/branches/2.4.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java Tue Sep 11 19:54:30 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(); + } }
