| | |
| | | import com.qianwen.core.tool.utils.Exceptions; |
| | | import org.springframework.cglib.proxy.Enhancer; |
| | | |
| | | /* loaded from: blade-starter-http-9.3.0.0-SNAPSHOT.jar:org/springblade/core/http/DomMapper.class */ |
| | | public class DomMapper { |
| | | public static Document asDocument(ResponseSpec response) { |
| | | return readDocument(response.asString()); |
| | |
| | | } |
| | | String cssQueryValue = annotation.value(); |
| | | Elements elements = doc.select(cssQueryValue); |
| | | ArrayList arrayList = new ArrayList(); |
| | | Iterator it = elements.iterator(); |
| | | ArrayList<T> arrayList = new ArrayList<>(); |
| | | Iterator<Element> it = elements.iterator(); |
| | | while (it.hasNext()) { |
| | | Element element = (Element) it.next(); |
| | | Element element = it.next(); |
| | | arrayList.add(readValue(element, clazz)); |
| | | } |
| | | return arrayList; |