public class HttpProfile extends Object
Modifier and Type | Field and Description |
---|---|
static String |
REQ_GET |
static String |
REQ_HTTP |
static String |
REQ_HTTPS |
static String |
REQ_POST |
static int |
TM_MINUTE
Time unit, 1 minute, equals 60 seconds.
|
Constructor and Description |
---|
HttpProfile() |
Modifier and Type | Method and Description |
---|---|
int |
getConnTimeout() |
String |
getEndpoint() |
String |
getProtocol() |
String |
getProxyHost() |
String |
getProxyPassword() |
int |
getProxyPort() |
String |
getProxyUsername() |
int |
getReadTimeout() |
String |
getReqMethod() |
int |
getWriteTimeout() |
void |
setConnTimeout(int connTimeout)
Set connect timeout value.
|
void |
setEndpoint(String endpoint)
Set the endpoint.
|
void |
setProtocol(String protocol)
Set request protocol.
|
void |
setProxyHost(String proxyHost) |
void |
setProxyPassword(String proxyPassword) |
void |
setProxyPort(int proxyPort) |
void |
setProxyUsername(String proxyUsername) |
void |
setReadTimeout(int readTimeout)
Set read timeout value.
|
void |
setReqMethod(String reqMethod)
Set request method, GET or POST.
|
void |
setWriteTimeout(int writeTimeout)
Set write timeout value.
|
public static final String REQ_HTTPS
public static final String REQ_HTTP
public static final String REQ_POST
public static final String REQ_GET
public static final int TM_MINUTE
public String getReqMethod()
public void setReqMethod(String reqMethod)
reqMethod
- public String getEndpoint()
public void setEndpoint(String endpoint)
Endpoint means the domain which this request is sent to, such as [productName].tencentcloudapi.com.
If you want to request to a specified region, such as Guangzhou, set it to [productName].ap-guangzhou.tencentcloudapi.com.
endpoint
- public int getReadTimeout()
public void setReadTimeout(int readTimeout)
readTimeout
- A integer represents time in seconds.public int getWriteTimeout()
public void setWriteTimeout(int writeTimeout)
writeTimeout
- A integer represents time in seconds.public int getConnTimeout()
public void setConnTimeout(int connTimeout)
connTimeout
- A integer represents time in seconds.public String getProtocol()
public void setProtocol(String protocol)
protocol
- https:// or http://public String getProxyHost()
public void setProxyHost(String proxyHost)
public int getProxyPort()
public void setProxyPort(int proxyPort)
public String getProxyUsername()
public void setProxyUsername(String proxyUsername)
public String getProxyPassword()
public void setProxyPassword(String proxyPassword)
Copyright © 2023. All rights reserved.