public final class HttpFactory extends Object
Modifier and Type | Method and Description |
---|---|
static void |
closeAllClients()
彻底释放多线程共享的Client全部实例
|
static void |
closeClient(String templateId)
彻底释放指定模板的多线程共享的Client实例
|
static HeadRequestClientBuilder |
delete(String url)
构造DELETE操作
|
static HeadRequestClientBuilder |
delete(String url,
String templateId)
构造指定模板的DELETE操作
|
static HeadRequestClientBuilder |
get(String url)
构造GET操作
|
static HeadRequestClientBuilder |
get(String url,
String templateId)
构造指定模板的GET操作
|
static HeadRequestClientBuilder |
head(String url)
构造HEAD操作
|
static HeadRequestClientBuilder |
head(String url,
String templateId)
构造指定模板的HEAD操作
|
static HeadRequestClientBuilder |
options(String url)
构造OPTIONS操作
|
static HeadRequestClientBuilder |
options(String url,
String templateId)
构造指定模板的OPTIONS操作
|
static BodyRequestClientBuilder |
patch(String url)
构造PATCH操作
|
static BodyRequestClientBuilder |
patch(String url,
String templateId)
构造指定模板的PATCH操作
|
static PostRequestClientBuilder |
post(String url)
构造POST操作
|
static PostRequestClientBuilder |
post(String url,
String templateId)
构造指定模板的POST操作
|
static BodyRequestClientBuilder |
put(String url)
构造PUT操作
|
static BodyRequestClientBuilder |
put(String url,
String templateId)
构造指定模板的PUT操作
|
static HeadRequestClientBuilder |
trace(String url)
构造TRACE操作
|
static HeadRequestClientBuilder |
trace(String url,
String templateId)
构造指定模板的TRACE操作
|
public static HeadRequestClientBuilder get(String url)
url
- public static HeadRequestClientBuilder get(String url, String templateId)
url
- templateId
- public static HeadRequestClientBuilder options(String url)
url
- public static HeadRequestClientBuilder options(String url, String templateId)
url
- templateId
- public static HeadRequestClientBuilder trace(String url)
url
- public static HeadRequestClientBuilder trace(String url, String templateId)
url
- templateId
- public static HeadRequestClientBuilder delete(String url)
url
- public static HeadRequestClientBuilder delete(String url, String templateId)
url
- templateId
- public static HeadRequestClientBuilder head(String url)
url
- public static HeadRequestClientBuilder head(String url, String templateId)
url
- templateId
- public static BodyRequestClientBuilder put(String url)
url
- public static BodyRequestClientBuilder put(String url, String templateId)
url
- templateId
- public static BodyRequestClientBuilder patch(String url)
url
- public static BodyRequestClientBuilder patch(String url, String templateId)
url
- templateId
- public static PostRequestClientBuilder post(String url)
url
- public static PostRequestClientBuilder post(String url, String templateId)
url
- templateId
- public static void closeClient(String templateId) throws Exception
templateId
- Exception
Copyright © 2006–2018 TinyGroup. All rights reserved.