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_MINUTETime unit constant: 1 minute equals 60 seconds. | 
| Constructor and Description | 
|---|
| HttpProfile()Default constructor for HttpProfile. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getApigwEndpoint()Get the API Gateway endpoint. | 
| int | getConnTimeout()Get the connect timeout value in seconds. | 
| String | getEndpoint()Get the endpoint to which the request is sent. | 
| HostnameVerifier | getHostnameVerifier()Get the HostnameVerifier used for hostname verification. | 
| Object | getHttpClient()Get the custom HTTP client for advanced configuration. | 
| String | getProtocol()Get the protocol used for the request (HTTP or HTTPS). | 
| String | getProxyHost()Get the proxy host if a proxy is being used. | 
| String | getProxyPassword()Get the proxy password for authentication. | 
| int | getProxyPort()Get the proxy port if a proxy is being used. | 
| String | getProxyUsername()Get the proxy username for authentication. | 
| int | getReadTimeout()Get the read timeout value in seconds. | 
| String | getReqMethod()Get the HTTP request method (e.g., POST or GET). | 
| String | getRootDomain()Get the root domain (e.g., "tencentcloudapi.com"). | 
| SSLSocketFactory | getSslSocketFactory()Get the SSLSocketFactory for SSL connections. | 
| int | getWriteTimeout()Get the write timeout value in seconds. | 
| X509TrustManager | getX509TrustManager()Get the trust manager for SSL connections. | 
| void | setApigwEndpoint(String apigwEndpoint)Set the API Gateway endpoint. | 
| void | setConnTimeout(int connTimeout)Set the connect timeout value in seconds. | 
| void | setEndpoint(String endpoint)Set the endpoint for the API request. | 
| void | setHostnameVerifier(HostnameVerifier hostnameVerifier)Set the HostnameVerifier used for hostname verification. | 
| void | setHttpClient(Object client)Set a custom HTTP client for advanced configuration. | 
| void | setProtocol(String protocol)Set the protocol for the request. | 
| void | setProxyHost(String proxyHost)Set the proxy host for HTTP requests. | 
| void | setProxyPassword(String proxyPassword)Set the proxy password for authentication. | 
| void | setProxyPort(int proxyPort)Set the proxy port for HTTP requests. | 
| void | setProxyUsername(String proxyUsername)Set the proxy username for authentication. | 
| void | setReadTimeout(int readTimeout)Set the read timeout value in seconds. | 
| void | setReqMethod(String reqMethod)Set the HTTP request method (e.g., POST or GET). | 
| void | setRootDomain(String rootDomain)Set the root domain of the API (e.g., "tencentcloudapi.com"). | 
| void | setSslSocketFactory(SSLSocketFactory sslSocketFactory)Set the SSLSocketFactory for SSL connections. | 
| void | setWriteTimeout(int writeTimeout)Set the write timeout value in seconds. | 
| void | setX509TrustManager(X509TrustManager trustManager)Set the trust manager for SSL connections. | 
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 HttpProfile()
public String getReqMethod()
public void setReqMethod(String reqMethod)
reqMethod - The HTTP method to set.public String getEndpoint()
public void setEndpoint(String endpoint)
Endpoint is the domain where the request is sent, e.g., [productName].tencentcloudapi.com. If you need to request a specific region (e.g., Guangzhou), set it to [productName].ap-guangzhou .tencentcloudapi.com.
endpoint - The endpoint URL.public int getReadTimeout()
public void setReadTimeout(int readTimeout)
readTimeout - The read timeout in seconds.public int getWriteTimeout()
public void setWriteTimeout(int writeTimeout)
writeTimeout - The write timeout in seconds.public int getConnTimeout()
public void setConnTimeout(int connTimeout)
connTimeout - The connect timeout in seconds.public String getProtocol()
public void setProtocol(String protocol)
protocol - The protocol to use (e.g., "https://").public String getProxyHost()
public void setProxyHost(String proxyHost)
proxyHost - The proxy host to set.public int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort - The proxy port to set.public String getProxyUsername()
public void setProxyUsername(String proxyUsername)
proxyUsername - The proxy username to set.public String getProxyPassword()
public void setProxyPassword(String proxyPassword)
proxyPassword - The proxy password to set.public String getRootDomain()
public void setRootDomain(String rootDomain)
rootDomain - The root domain to set.public SSLSocketFactory getSslSocketFactory()
public void setSslSocketFactory(SSLSocketFactory sslSocketFactory)
sslSocketFactory - The SSL socket factory to set.public X509TrustManager getX509TrustManager()
public void setX509TrustManager(X509TrustManager trustManager)
trustManager - The X509 trust manager to set.public String getApigwEndpoint()
public void setApigwEndpoint(String apigwEndpoint)
apigwEndpoint - The API Gateway endpoint to set.public HostnameVerifier getHostnameVerifier()
public void setHostnameVerifier(HostnameVerifier hostnameVerifier)
hostnameVerifier - The hostname verifier to set.public Object getHttpClient()
public void setHttpClient(Object client)
client - The custom HTTP client to set.Copyright © 2025. All rights reserved.