org.apache.cxf.jaxrs.client.WebClient.preProcessResult()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(142)

本文整理了Java中org.apache.cxf.jaxrs.client.WebClient.preProcessResult()方法的一些代码示例,展示了WebClient.preProcessResult()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebClient.preProcessResult()方法的具体详情如下:
包路径:org.apache.cxf.jaxrs.client.WebClient
类名称:WebClient
方法名:preProcessResult

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];

相关文章

WebClient类方法