org.apache.cxf.jaxrs.utils.ResourceUtils.getActualJaxbType()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(88)

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

ResourceUtils.getActualJaxbType介绍

暂无

代码示例

代码示例来源:origin: com.tomitribe.tribestream/tribestream-container

theActualType = InjectionUtils.getActualType(opMethod.getGenericReturnType());
} else {
  theActualType = ResourceUtils.getActualJaxbType(type, opMethod, false);

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

.getGenericParameterTypes()[getRequestBodyParam(ori).getIndex()]);
} else {
  theActualType = ResourceUtils.getActualJaxbType(type, opMethod, inbound);

代码示例来源:origin: apache/cxf

theActualType = InjectionUtils.getActualType(genericType);
} else {
  theActualType = ResourceUtils.getActualJaxbType(type, opMethod, inbound);

代码示例来源:origin: org.apache.cxf/cxf-rt-rs-service-description

theActualType = InjectionUtils.getActualType(genericType);
} else {
  theActualType = ResourceUtils.getActualJaxbType(type, opMethod, inbound);

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

Class<?> cls = realReturnType;
if (cls == Response.class) {
  cls = getActualJaxbType(cls, method, false);

代码示例来源:origin: com.tomitribe.tribestream/tribestream-container

@Override
public Representation handleResponseRepresentation(final ClassResourceInfo cri, final OperationResourceInfo ori, final Class<?> type, final MediaType mediaType) {
  final Representation representation = getNext().handleResponseRepresentation(cri, ori, type, mediaType);
  if (representation == null || definition == null) {
    return null;
  }
  final boolean isCollection = InjectionUtils.isSupportedCollectionOrArray(type);
  Class<?> theActualType = type;
  java.lang.reflect.Method opMethod = getMethod(ori);
  if (isCollection) {
    theActualType = InjectionUtils.getActualType(opMethod.getGenericReturnType());
  } else {
    theActualType = ResourceUtils.getActualJaxbType(type, opMethod, false);
  }
  final QName name = definition.resolve(theActualType);
  if (name != null) {
    representation.setElement(name);
  }
  return representation;
}

代码示例来源:origin: com.tomitribe.tribestream/tribestream-container

returnType = InjectionUtils.getActualType(reflectMethod.getGenericReturnType());
} else {
  returnType = ResourceUtils.getActualJaxbType(returnType, reflectMethod, false);

代码示例来源:origin: apache/cxf

Class<?> cls = realReturnType;
if (cls == Response.class || ori.isAsync()) {
  cls = getActualJaxbType(cls, method, false);

相关文章

微信公众号

最新文章

更多