Class HttpProfile
- java.lang.Object
-
- com.tencentcloudapi.common.profile.HttpProfile
-
public class HttpProfile extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpProfile()
-
Method Summary
-
-
-
Field Detail
-
REQ_HTTPS
public static final String REQ_HTTPS
- See Also:
- Constant Field Values
-
REQ_HTTP
public static final String REQ_HTTP
- See Also:
- Constant Field Values
-
REQ_POST
public static final String REQ_POST
- See Also:
- Constant Field Values
-
REQ_GET
public static final String REQ_GET
- See Also:
- Constant Field Values
-
TM_MINUTE
public static final int TM_MINUTE
Time unit, 1 minute, equals 60 seconds.- See Also:
- Constant Field Values
-
-
Method Detail
-
getReqMethod
public String getReqMethod()
-
setReqMethod
public void setReqMethod(String reqMethod)
Set request method, GET or POST.- Parameters:
reqMethod
-
-
getEndpoint
public String getEndpoint()
-
setEndpoint
public void setEndpoint(String endpoint)
Set the 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.
- Parameters:
endpoint
-
-
getReadTimeout
public int getReadTimeout()
-
setReadTimeout
public void setReadTimeout(int readTimeout)
Set read timeout value.- Parameters:
readTimeout
- A integer represents time in seconds.
-
getWriteTimeout
public int getWriteTimeout()
-
setWriteTimeout
public void setWriteTimeout(int writeTimeout)
Set write timeout value.- Parameters:
writeTimeout
- A integer represents time in seconds.
-
getConnTimeout
public int getConnTimeout()
-
setConnTimeout
public void setConnTimeout(int connTimeout)
Set connect timeout value.- Parameters:
connTimeout
- A integer represents time in seconds.
-
getProtocol
public String getProtocol()
-
setProtocol
public void setProtocol(String protocol)
Set request protocol.- Parameters:
protocol
- https:// or http://
-
getProxyHost
public String getProxyHost()
-
setProxyHost
public void setProxyHost(String proxyHost)
-
getProxyPort
public int getProxyPort()
-
setProxyPort
public void setProxyPort(int proxyPort)
-
getProxyUsername
public String getProxyUsername()
-
setProxyUsername
public void setProxyUsername(String proxyUsername)
-
getProxyPassword
public String getProxyPassword()
-
setProxyPassword
public void setProxyPassword(String proxyPassword)
-
getRootDomain
public String getRootDomain()
-
setRootDomain
public void setRootDomain(String rootDomain)
-
getSslSocketFactory
public SSLSocketFactory getSslSocketFactory()
-
setSslSocketFactory
public void setSslSocketFactory(SSLSocketFactory sslSocketFactory)
-
getX509TrustManager
public X509TrustManager getX509TrustManager()
-
setX509TrustManager
public void setX509TrustManager(X509TrustManager trustManager)
-
-