Author: darran.lofthouse(a)jboss.com
Date: 2010-07-14 12:58:04 -0400 (Wed, 14 Jul 2010)
New Revision: 12648
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/jaxws/client/ResponseImpl.java
Log:
[JBPAPP-4515] Additional methods to call internal method to access Future
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/jaxws/client/ResponseImpl.java
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/jaxws/client/ResponseImpl.java 2010-07-14
16:53:54 UTC (rev 12647)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/jaxws/client/ResponseImpl.java 2010-07-14
16:58:04 UTC (rev 12648)
@@ -73,12 +73,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)
@@ -104,7 +98,7 @@
public boolean cancel(boolean mayInterruptIfRunning)
{
- return getFuture().cancel(mayInterruptIfRunning);
+ return getFutureInternal().cancel(mayInterruptIfRunning);
}
public Object get() throws InterruptedException, ExecutionException
@@ -135,11 +129,11 @@
public boolean isCancelled()
{
- return getFuture().isCancelled();
+ return getFutureInternal().isCancelled();
}
public boolean isDone()
{
- return getFuture().isDone();
+ return getFutureInternal().isDone();
}
}
Show replies by date