本文整理了Java中org.apache.cxf.jaxrs.client.WebClient.preProcessResult()
方法的一些代码示例,展示了WebClient.preProcessResult()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebClient.preProcessResult()
方法的具体详情如下:
包路径:org.apache.cxf.jaxrs.client.WebClient
类名称:WebClient
方法名:preProcessResult
暂无
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
protected Response doResponse(Message m,
Class<?> responseClass,
Type outGenericType) {
try {
Object[] results = preProcessResult(m);
if (results != null && results.length == 1) {
return (Response)results[0];
}
} 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 {
response = handleResponse(m, responseClass, outGenericType);
entity = response.getEntity();
return response;
} catch (RuntimeException ex) {
entity = ex;
throw ex;
} finally {
completeExchange(entity, m.getExchange(), false);
}
}
代码示例来源:origin: apache/cxf
protected Response doResponse(Message m,
Class<?> responseClass,
Type outGenericType) {
try {
Object[] results = preProcessResult(m);
if (results != null && results.length == 1) {
return (Response)results[0];
}
} catch (Exception ex) {
throw ex instanceof WebApplicationException
? (WebApplicationException)ex
: ex instanceof ProcessingException
? (ProcessingException)ex : new ProcessingException(ex);
}
try {
return handleResponse(m, responseClass, outGenericType);
} finally {
completeExchange(m.getExchange(), false);
}
}
代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client
protected Response doResponse(Message m,
Class<?> responseClass,
Type outGenericType) {
try {
Object[] results = preProcessResult(m);
if (results != null && results.length == 1) {
return (Response)results[0];
}
} catch (Exception ex) {
throw ex instanceof WebApplicationException
? (WebApplicationException)ex
: ex instanceof ProcessingException
? (ProcessingException)ex : new ProcessingException(ex);
}
try {
return handleResponse(m, responseClass, outGenericType);
} finally {
completeExchange(m.getExchange(), false);
}
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
Response r = null;
try {
Object[] results = preProcessResult(message);
if (results != null && results.length == 1) {
r = (Response)results[0];
内容来源于网络,如有侵权,请联系作者删除!