Package org.jboss.errai.bus.client.api.base

Examples of org.jboss.errai.bus.client.api.base.TransportIOException


          case 401:
            BusToolsCli.decodeToCallback(response.getText(), messageBus);
            break;
          default:
            onError(request,
                new TransportIOException("unexpected response code: " + statusCode, statusCode, response
                    .getStatusText()), statusCode);
            return;
        }
      }
View Full Code Here


        case 307:
          break;
        default:
          cometChannelOpen = false;
          onError(request,
                  new TransportIOException("unexpected response code: " + statusCode, statusCode, response
                          .getStatusText()));
          return;
        }
      }
View Full Code Here

          @Override
          public void onResponseReceived(final Request request, final Response response) {
            statusCode = response.getStatusCode();
            if (statusCode >= 400) {
              final TransportIOException tioe
                  = new TransportIOException(response.getText(), response.getStatusCode(),
                      "Failure communicating with server");

              if (handleHTTPTransportError(new BusTransportError(request, tioe, statusCode, NO_RETRY))) {
                return;
              }
View Full Code Here

                // Sending the message failed.
                // Although the response may still be valid
                // Handle it gracefully
                //noinspection ThrowableInstanceNeverThrown

                final TransportIOException tioe
                    = new TransportIOException(response.getText(), response.getStatusCode(),
                    "Failure communicating with server");

                if (handleHTTPTransportError(request, tioe, statusCode)) {
                  return;
                }
View Full Code Here

          case 305:
          case 307:
            break;
          default:
            cometChannelOpen = false;
            onError(request, new TransportIOException("unexpected response code: " + statusCode, statusCode,
                response.getStatusText()));
            return;
        }
      }
View Full Code Here

                // Sending the message failed.
                // Although the response may still be valid
                // Handle it gracefully
                //noinspection ThrowableInstanceNeverThrown

                final TransportIOException tioe
                    = new TransportIOException(response.getText(), response.getStatusCode(),
                    "Failure communicating with server");

                if (handleHTTPTransportError(request, tioe, statusCode)) {
                  return;
                }
View Full Code Here

          case 305:
          case 307:
            break;
          default:
            cometChannelOpen = false;
            onError(request, new TransportIOException("unexpected response code: " + statusCode, statusCode,
                response.getStatusText()));
            return;
        }
      }
View Full Code Here

                        // Sending the message failed.
                        // Although the response may still be valid
                        // Handle it gracefully
                        //noinspection ThrowableInstanceNeverThrown

                        TransportIOException tioe = new TransportIOException(response.getText(), response.getStatusCode(), "Failure communicating with server");
                        if (txMessage.getErrorCallback() == null || txMessage.getErrorCallback().error(txMessage, tioe)) {
                            logError("Problem communicating with remote bus (Received HTTP 503 Error)", message, tioe);
                        }
                    }
View Full Code Here

          case 401:
            BusToolsCli.decodeToCallback(response.getText(), messageBus);
            break;
          default:
            onError(request,
                new TransportIOException("unexpected response code: " + statusCode, statusCode, response
                    .getStatusText()), statusCode);
            return;
        }
      }
View Full Code Here

                        // Sending the message failed.
                        // Although the response may still be valid
                        // Handle it gracefully
                        //noinspection ThrowableInstanceNeverThrown

                        TransportIOException tioe = new TransportIOException(response.getText(), response.getStatusCode(), "Failure communicating with server");
                        if (txMessage.getErrorCallback() == null || txMessage.getErrorCallback().error(txMessage, tioe)) {
                            logError("Problem communicating with remote bus (Received HTTP 503 Error)", message, tioe);
                        }
                    }
View Full Code Here

TOP

Related Classes of org.jboss.errai.bus.client.api.base.TransportIOException

Copyright © 2018 www.massapicom. 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.