Examples of ClientException


Examples of javax.ws.rs.client.ClientException

        Integer responseCode = getResponseCode(outMessage.getExchange());
        if (responseCode == null) {
            if (ex instanceof ClientException) {
                throw ex;
            } else if (ex != null) {
                throw new ClientException(ex);
            } else if (!outMessage.getExchange().isOneWay() || cfg.isResponseExpectedForOneway()) {
                waitForResponseCode(outMessage.getExchange());
            }
        }
    }
View Full Code Here

Examples of javax.ws.rs.client.ClientException

                return;
            }
        }
       
        if (getResponseCode(exchange) == null) {
            throw new ClientException("Response timeout");
        }
    }
View Full Code Here

Examples of javax.ws.rs.client.ClientException

            new org.apache.cxf.common.i18n.Message(name,
                                                   BUNDLE,
                                                   cls,
                                                   JAXRSUtils.mediaTypeToString(ct));
        LOG.severe(errorMsg.toString());
        throw new ClientException(errorMsg.toString(), cause);
    }
View Full Code Here

Examples of javax.ws.rs.client.ClientException

   
    @Override
    public boolean cancel(boolean mayInterruptIfRunning) {
        boolean result = super.cancel(mayInterruptIfRunning);
        if (result && handler != null) {
            handler.failed(new ClientException(new CancellationException()));
        }
        return result;
    }
View Full Code Here

Examples of javax.ws.rs.client.ClientException

    @Override
    public void handleException(Map<String, Object> ctx, final Throwable ex) {
        context = ctx;
        exception = ex;
        if (handler != null) {
            handler.failed(new ClientException(exception));
        }
        done = true;
        synchronized (this) {
            notifyAll();
        }
View Full Code Here

Examples of javax.ws.rs.client.ClientException

            }
        } catch (Exception ex) {
            Throwable t = ex instanceof WebApplicationException
                ? (WebApplicationException)ex
                : ex instanceof ClientException
                ? (ClientException)ex : new ClientException(ex);
            cb.handleException(message, t);
            return;
        }
        if (r == null) {
            try {
View Full Code Here

Examples of javax.ws.rs.client.ClientException

            }
        } catch (Exception ex) {
            throw ex instanceof WebApplicationException
                ? (WebApplicationException)ex
                : ex instanceof ClientException
                ? new ClientException(ex) : new RuntimeException(ex);
        }
       
        Response response = null;
        Object entity = null;
        try {
View Full Code Here

Examples of org.andromda.core.server.ClientException

            {
                serverClient.stop(configuration);
            }
            catch (final Throwable throwable)
            {
                throw new ClientException(throwable);
            }
        }
    }
View Full Code Here

Examples of org.apache.abdera.protocol.client.ClientException

      String value = getHeader(header);
      if (value != null)
        return DateUtil.parseDate(value);
      else return null;
    } catch (DateParseException e) {
      throw new ClientException(e); // server likely returned a bad date format
    }
  }
View Full Code Here

Examples of org.apache.cactus.client.ClientException

                            .getResponseObject(parameters[0].getName(),
                            theRequest, theConnection);
                    }
                    catch (ClientException e)
                    {
                        throw new ClientException("The method ["
                            + methods[i].getName()
                            + "] has a bad parameter of type ["
                            + parameters[0].getName() + "]", e);
                    }
                }
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.