| Package | Description |
|---|---|
| com.gitee.cliveyuan.tools.exception | |
| com.gitee.cliveyuan.tools.http |
| Modifier and Type | Method and Description |
|---|---|
static NetException |
NetException.connectionRefused(String url) |
static NetException |
NetException.httpStatusError(int statusCode) |
static NetException |
NetException.illegalInvokeError(String msg) |
static NetException |
NetException.timeout(int timeout) |
static NetException |
NetException.unKnowError() |
static NetException |
NetException.unknownHost() |
| Modifier and Type | Method and Description |
|---|---|
HttpResp |
HttpClientTools.executeGet() |
HttpResp |
JsoupTools.executeGet() |
abstract HttpResp |
AbstractHttpRequest.executeGet()
执行get请求
|
HttpResp |
HttpClientTools.executePost() |
HttpResp |
JsoupTools.executePost() |
abstract HttpResp |
AbstractHttpRequest.executePost()
执行post请求
|
String |
HttpClientTools.get() |
String |
JsoupTools.get() |
abstract String |
AbstractHttpRequest.get()
发送get请求
|
org.jsoup.nodes.Document |
AbstractHttpRequest.getByDocument()
发送get请求,并将结果转为Jsoup的Document
|
String |
HttpClientTools.post() |
String |
JsoupTools.post() |
abstract String |
AbstractHttpRequest.post()
发送post请求
|
org.jsoup.nodes.Document |
AbstractHttpRequest.postByDocument()
发送post请求,并将结果转为Jsoup的Document
|
Copyright © 2021. All rights reserved.