Java 类org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:HttpMessageConverters.java   
private void reorderXmlConvertersToEnd(List<HttpMessageConverter<?>> converters) {
    List<HttpMessageConverter<?>> xml = new ArrayList<HttpMessageConverter<?>>();
    for (Iterator<HttpMessageConverter<?>> iterator = converters.iterator(); iterator
            .hasNext();) {
        HttpMessageConverter<?> converter = iterator.next();
        if ((converter instanceof AbstractXmlHttpMessageConverter)
                || (converter instanceof MappingJackson2XmlHttpMessageConverter)) {
            xml.add(converter);
            iterator.remove();
        }
    }
    converters.addAll(xml);
}
项目:spring-boot-concourse    文件:HttpMessageConverters.java   
private void reorderXmlConvertersToEnd(List<HttpMessageConverter<?>> converters) {
    List<HttpMessageConverter<?>> xml = new ArrayList<HttpMessageConverter<?>>();
    for (Iterator<HttpMessageConverter<?>> iterator = converters.iterator(); iterator
            .hasNext();) {
        HttpMessageConverter<?> converter = iterator.next();
        if ((converter instanceof AbstractXmlHttpMessageConverter)
                || (converter instanceof MappingJackson2XmlHttpMessageConverter)) {
            xml.add(converter);
            iterator.remove();
        }
    }
    converters.addAll(xml);
}
项目:contestparser    文件:HttpMessageConverters.java   
private void reorderXmlConvertersToEnd(List<HttpMessageConverter<?>> converters) {
    List<HttpMessageConverter<?>> xml = new ArrayList<HttpMessageConverter<?>>();
    for (Iterator<HttpMessageConverter<?>> iterator = converters.iterator(); iterator
            .hasNext();) {
        HttpMessageConverter<?> converter = iterator.next();
        if ((converter instanceof AbstractXmlHttpMessageConverter)
                || (converter instanceof MappingJackson2XmlHttpMessageConverter)) {
            xml.add(converter);
            iterator.remove();
        }
    }
    converters.addAll(xml);
}
项目:FastBootWeixin    文件:WxMessageResponseBodyAdvice.java   
@Override
public boolean supports(MethodParameter returnType,
                        Class<? extends HttpMessageConverter<?>> converterType) {
    return AbstractXmlHttpMessageConverter.class.isAssignableFrom(converterType) &&
            WxMessage.class.isAssignableFrom(returnType.getParameterType());
}