Beispiel #1
0
  /** {@inheritDoc} */
  public void responseReceived(ResponseEvent event) {
    // Igor: if necessary update last value. We expect one event only
    // originating
    // from initial asynchronous get

    doForwardValue(event.getResponse().getValue(), event.getResponse().getTimestamp());
  }
 /**
  * Accepts responseError notifications
  *
  * @param event Response event
  */
 public void responseError(ResponseEvent<F> event) {
   if (listener != null) {
     listener.responseError(event);
   }
   if (isValue) {
     lastValueResponse = (Response<T>) event.getResponse();
   }
   fireResponseError(event);
   if (event.isLast()) {
     listener = null;
   }
 }
  protected void fireResponseError(ResponseEvent event) {
    lastResponse = event.getResponse();

    Iterator<ResponseListener<?>> ite = responseListeners.iterator();

    while (ite.hasNext()) {
      ite.next().responseError(event);
    }
  }
Beispiel #4
0
 /** {@inheritDoc} */
 public void responseError(ResponseEvent event) {
   Exception e = event.getResponse().getError();
   doForwardError(e != null ? e.getMessage() : "Unknown error!");
 }
 public void responseError(ResponseEvent<T> event) {
   lastValueResponse = event.getResponse();
   fireResponseError(event);
 }
 public void responseReceived(ResponseEvent<T> event) {
   lastValueResponse = event.getResponse();
   fireResponseReceived(event);
 }