Examples of hadException()


Examples of org.eclipse.ecf.remoteservice.events.IRemoteCallCompleteEvent.hadException()

    // Make async call
    remoteService.callAsync(remoteCall, new IRemoteCallListener() {
      public void handleEvent(IRemoteCallEvent event) {
        if (event instanceof IRemoteCallCompleteEvent) {
          final IRemoteCallCompleteEvent complete = (IRemoteCallCompleteEvent) event;
          if (complete.hadException()) {
            showException(complete.getException());
          } else
            showResult(interfaceClass.getName(), remoteCall,
                complete.getResponse());
        }
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.events.IRemoteCallCompleteEvent.hadException()

            public void handleEvent(IRemoteCallEvent event)
            {
                if (event instanceof IRemoteCallCompleteEvent)
                {
                    IRemoteCallCompleteEvent cce = (IRemoteCallCompleteEvent) event;
                    if (!cce.hadException())
                    {
                        System.out.println("Remote call completed successfully!");
                        SyndFeed feed = (SyndFeed) cce.getResponse();
                        printFeedContent(feed);
                    }
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.events.IRemoteCallCompleteEvent.hadException()

  @SuppressWarnings("unchecked")
  public void handleEvent(IRemoteCallEvent event) {
    if (event instanceof IRemoteCallCompleteEvent) {
      IRemoteCallCompleteEvent cce = (IRemoteCallCompleteEvent) event;
      if (cce.hadException()) {
        callback.onFailure(cce.getException());
      } else {
        callback.onSuccess(cce.getResponse());
      }
    }
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.events.IRemoteCallCompleteEvent.hadException()

  protected void callCompletableAsync(AbstractAsyncProxyRemoteCall call, final IAsyncProxyCompletable completable) {
    callAsync((IRemoteCall) call, new IRemoteCallListener() {
      public void handleEvent(IRemoteCallEvent event) {
        if (event instanceof IRemoteCallCompleteEvent) {
          IRemoteCallCompleteEvent cce = (IRemoteCallCompleteEvent) event;
          completable.handleComplete(cce.getResponse(), cce.hadException(), cce.getException());
        }
      }
    });
  }
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.events.IRemoteCallCompleteEvent.hadException()

    return new IRemoteCallListener() {

      public void handleEvent(IRemoteCallEvent event) {
        if (event instanceof IRemoteCallCompleteEvent) {
          IRemoteCallCompleteEvent cce = (IRemoteCallCompleteEvent) event;
          if (!cce.hadException())
            System.out
                .println("Remote call completed successfully!");
          else
            System.out
                .println("Remote call completed with exception: "
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.