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

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


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

      if (retries != 0) {
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");
                        for (Message txm : txMessages) {
                            if (txm.getErrorCallback() == null || txm.getErrorCallback().error(txm, tioe)) {
                                logError("Problem communicating with remote bus (Received HTTP 503 Error)", message, tioe);
                            }
                        }
View Full Code Here

          case 304:
          case 305:
          case 307:
            break;
          default:
            onError(request, new TransportIOException("Unexpected response code", statusCode, response.getStatusText()));
            return;
        }
      }

      if (retries != 0) {
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");

              callErrorHandler(txMessage, tioe);
              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

          case 304:
          case 305:
          case 307:
            break;
          default:
              onError(request, new TransportIOException("Unexpected response code: " + statusCode, statusCode, response.getStatusText()));
            return;
        }
      }

      if (retries != 0) {
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");

                for (Message txM : txMessages) {
                  callErrorHandler(txM, 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.