Package javax.ws.rs.client

Examples of javax.ws.rs.client.ClientException


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


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

            new org.apache.cxf.common.i18n.Message(name,
                                                   BUNDLE,
                                                   m.getDeclaringClass().getName(),
                                                   m.getName());
        LOG.severe(errorMsg.toString());
        throw new ClientException(errorMsg.toString());
    }
View Full Code Here

            }
        } 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

            getState().setResponse(r);
           
            return r;
        } catch (Throwable ex) {
            throw (ex instanceof ClientException) ? (ClientException)ex
                                                  : new ClientException(ex);
        } finally {
            ProviderFactory.getInstance(outMessage).clearThreadLocalProxies();
        }
    }
View Full Code Here

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

                        MessageObserver observer = exchange.get(MessageObserver.class);
                        observer.onMessage(inMessage);
                        return;
                    }
                } catch (IOException ex) {
                    throw new ClientException(ex);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of javax.ws.rs.client.ClientException

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.