Author: darran.lofthouse(a)jboss.com
Date: 2010-07-14 13:04:29 -0400 (Wed, 14 Jul 2010)
New Revision: 12649
Modified:
stack/native/branches/jbossws-native-3.1.2.SP3-patch-02_JBPAPP-4610/modules/core/src/main/java/org/jboss/ws/core/jaxws/client/ResponseImpl.java
Log:
[JBPAPP-4610] Additional methods to call internal method to access Future
Modified:
stack/native/branches/jbossws-native-3.1.2.SP3-patch-02_JBPAPP-4610/modules/core/src/main/java/org/jboss/ws/core/jaxws/client/ResponseImpl.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2.SP3-patch-02_JBPAPP-4610/modules/core/src/main/java/org/jboss/ws/core/jaxws/client/ResponseImpl.java 2010-07-14
16:58:04 UTC (rev 12648)
+++
stack/native/branches/jbossws-native-3.1.2.SP3-patch-02_JBPAPP-4610/modules/core/src/main/java/org/jboss/ws/core/jaxws/client/ResponseImpl.java 2010-07-14
17:04:29 UTC (rev 12649)
@@ -71,12 +71,6 @@
return delegate;
}
- /*
- * The get methods are required to throw any returned Exception as an
- * ExecutionException so use this internal getFuture instead to avoid
- * wrapping the exception with WebServiceException which is a
- * RuntimeException.
- */
private Future getFutureInternal()
{
if (delegate == null)
@@ -102,7 +96,7 @@
public boolean cancel(boolean mayInterruptIfRunning)
{
- return getFuture().cancel(mayInterruptIfRunning);
+ return getFutureInternal().cancel(mayInterruptIfRunning);
}
public Object get() throws InterruptedException, ExecutionException
@@ -133,11 +127,11 @@
public boolean isCancelled()
{
- return getFuture().isCancelled();
+ return getFutureInternal().isCancelled();
}
public boolean isDone()
{
- return getFuture().isDone();
+ return getFutureInternal().isDone();
}
}
Show replies by date