Package com.cloudtestapi.common.profile
Class HttpProfile
- java.lang.Object
-
- com.cloudtestapi.common.profile.HttpProfile
-
public class HttpProfile extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConnTimeout()StringgetProtocol()StringgetProxyHost()StringgetProxyPasswd()intgetProxyPort()StringgetProxyUser()intgetReadTimeout()StringgetReqMethod()StringgetRootDomain()StringgetToolPath()intgetWriteTimeout()HttpProfilesetConnTimeout(int connTimeout)Set connect timeout value.HttpProfilesetProtocol(String protocol)Set request protocol.HttpProfilesetProxyHost(String proxyHost)HttpProfilesetProxyPasswd(String proxyPasswd)HttpProfilesetProxyPort(int proxyPort)HttpProfilesetProxyUser(String proxyUser)HttpProfilesetReadTimeout(int readTimeout)Set read timeout value.HttpProfilesetReqMethod(String reqMethod)Set request method, GET or POST or PUT or DELETEHttpProfilesetRootDomain(String rootDomain)HttpProfilesetToolPath(String toolPath)HttpProfilesetWriteTimeout(int writeTimeout)Set write timeout value.
-
-
-
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
-
REQ_PUT
public static final String REQ_PUT
- See Also:
- Constant Field Values
-
REQ_DELETE
public static final String REQ_DELETE
- 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 HttpProfile setReqMethod(String reqMethod)
Set request method, GET or POST or PUT or DELETE- Parameters:
reqMethod- GET or POST or PUT or DELETE
-
getReadTimeout
public int getReadTimeout()
-
setReadTimeout
public HttpProfile setReadTimeout(int readTimeout)
Set read timeout value.- Parameters:
readTimeout- A integer represents time in seconds.
-
getWriteTimeout
public int getWriteTimeout()
-
setWriteTimeout
public HttpProfile setWriteTimeout(int writeTimeout)
Set write timeout value.- Parameters:
writeTimeout- A integer represents time in seconds.
-
getConnTimeout
public int getConnTimeout()
-
setConnTimeout
public HttpProfile setConnTimeout(int connTimeout)
Set connect timeout value.- Parameters:
connTimeout- A integer represents time in seconds.
-
getProtocol
public String getProtocol()
-
setProtocol
public HttpProfile setProtocol(String protocol)
Set request protocol.- Parameters:
protocol- https:// or http://
-
getProxyPort
public int getProxyPort()
-
setProxyPort
public HttpProfile setProxyPort(int proxyPort)
-
getProxyUser
public String getProxyUser()
-
setProxyUser
public HttpProfile setProxyUser(String proxyUser)
-
getProxyPasswd
public String getProxyPasswd()
-
setProxyPasswd
public HttpProfile setProxyPasswd(String proxyPasswd)
-
getProxyHost
public String getProxyHost()
-
setProxyHost
public HttpProfile setProxyHost(String proxyHost)
-
getRootDomain
public String getRootDomain()
-
setRootDomain
public HttpProfile setRootDomain(String rootDomain)
-
getToolPath
public String getToolPath()
-
setToolPath
public HttpProfile setToolPath(String toolPath)
-
-