public class RequestObject extends TestObject implements HttpMessage
Modifiers | Name | Description |
---|---|---|
static long |
DEFAULT_MAX_RESPONSE_SIZE |
The default maximum response size. |
static int |
DEFAULT_TIMEOUT |
The default connection/socket timeout. |
static long |
MAX_RESPONSE_SIZE_UNLIMITED |
Set response size limit to this value mean to this request has no response size limit. |
static long |
MAX_RESPONSE_SIZE_UNSET |
Set max response size to this value mean to unset its current max response size. |
static int |
TIMEOUT_UNLIMITED |
Set connection/socket timeout to this value mean to this request has no connection/socket timeout limit. |
static int |
TIMEOUT_UNSET |
Set connection/socket timeout to this value mean to unset its current timeout. |
Constructor and description |
---|
RequestObject
(String objectId) |
Type Params | Return Type | Name and description |
---|---|---|
|
public HttpBodyContent |
getBodyContent() Gets the body content of request. |
|
public int |
getConnectionTimeout() Get the connection timeout of this request in milliseconds. |
|
public String |
getHttpBody() Get the http body for this request object |
|
public List<TestObjectProperty> |
getHttpHeaderProperties() Get the http headers of this request object |
|
public String |
getHttpMethod() |
|
public long |
getMaxResponseSize() Get the maximum response size of this request in bytes. |
|
public String |
getName() Get the name of this request object |
|
public String |
getObjectId() Get the id of this request object |
|
public ProxyInformation |
getProxy() Get the proxy of this request. |
|
public int |
getRedirectTimes() |
|
public RequestAuthorization |
getRequestAuthorization() Get the authorization for this request |
|
public List<TestObjectProperty> |
getRestParameters() Get the rest parameters of this request object if it is a "RESTful" request object |
|
public String |
getRestRequestMethod() Get the rest request method of this request object if it is a "RESTful" request object |
|
public String |
getRestUrl() Get the rest url of this request object if it is a "RESTful" request object |
|
public String |
getServiceType() Return the request type for this request object |
|
public String |
getSoapBody() Get the soap body of this request object if it is a "SOAP" request object |
|
public String |
getSoapRequestMethod() Get the soap request method of this request object if it is a "SOAP" request object |
|
public String |
getSoapServiceEndpoint() Get SOAP service endpoint |
|
public String |
getSoapServiceFunction() Get the soap service function of this request object if it is a "SOAP" request object |
|
public int |
getSocketTimeout() Get the socket timeout of this request in milliseconds. |
|
public String |
getUrl() |
|
public List<ValidationStep> |
getValidationSteps() |
|
public Map<String, Object> |
getVariables() |
|
public String |
getVerificationScript() |
|
public String |
getWsdlAddress() Get the wsdl address of this request object if it is a "SOAP" request object |
|
public boolean |
isFollowRedirects() |
|
public void |
setBodyContent(HttpBodyContent bodyContent) Sets the body content for this request. |
|
public void |
setConnectionTimeout(int connectionTimeout) Set the connection timeout for this request. |
|
public void |
setFollowRedirects(boolean followRedirects) |
|
public void |
setHttpBody(String httpBody) Set the http body for this request object |
|
public void |
setHttpHeaderProperties(List<TestObjectProperty> httpHeaderProperties) Set the http headers of this request object |
|
public void |
setMaxResponseSize(long maxResponseSize) Set the maximum response size for this request. |
|
public void |
setName(String name) Set the name for this request object |
|
public void |
setObjectId(String objectId) Set the id for this request object |
|
public void |
setProxy(ProxyInformation proxy) Set the proxy for this request. |
|
public void |
setRedirectTimes(int redirectTimes) |
|
public void |
setRequestAuthorization(RequestAuthorization requestAuthorization) Set the Authorization for the request object |
|
public void |
setRestParameters(List<TestObjectProperty> restParameters) Set the rest parameters for this request object |
|
public void |
setRestRequestMethod(String restRequestMethod) Set the rest request method for this request object |
|
public void |
setRestUrl(String restUrl) Set the rest url for this request object |
|
public void |
setServiceType(String serviceType) Set the service type for this request object |
|
public void |
setSoapBody(String soapBody) Set the soap body for this request object |
|
public void |
setSoapRequestMethod(String soapRequestMethod) Set the soap request method for this request object |
|
public void |
setSoapServiceEndpoint(String soapServiceEndpoint) Set SOAP service endpoint |
|
public void |
setSoapServiceFunction(String soapServiceFunction) Set the soap service function for this request object |
|
public void |
setSocketTimeout(int socketTimeout) Set the socket timeout for this request. |
|
public void |
setUseServiceInfoFromWsdl(boolean useServiceInfoFromWsdl) Set a flag that determines whether to use the service info (service endpoint, SOAP action,...) parsed from WSDL when sending a SOAP request. |
|
public void |
setValidationSteps(List<ValidationStep> validationSteps) |
|
public void |
setVariables(Map<String, Object> variables) |
|
public void |
setVerificationScript(String verificationScript) |
|
public void |
setWsdlAddress(String wsdlAddress) Set the wsdl address of this request object |
|
public boolean |
useServiceInfoFromWsdl() Get a flag that determines whether to use the service info (service endpoint, SOAP action,...) parsed from WSDL when sending a SOAP request. |
The default maximum response size. Default value is same to unlimited.
The default connection/socket timeout. The default value is set to unlimited.
Set response size limit to this value mean to this request has no response size limit.
Set max response size to this value mean to unset its current max response size. The project's max response size will be used.
Set connection/socket timeout to this value mean to this request has no connection/socket timeout limit.
Set connection/socket timeout to this value mean to unset its current timeout. The project's socket timeout will be used.
Gets the body content of request.
Get the connection timeout of this request in milliseconds.
Get the http body for this request object
Get the http headers of this request object
Get the maximum response size of this request in bytes.
Get the name of this request object
Get the id of this request object
Get the proxy of this request. This proxy will take precedence over proxy settings in Preferences.
Get the authorization for this request
Get the rest parameters of this request object if it is a "RESTful" request object
Get the rest request method of this request object if it is a "RESTful" request object
Get the rest url of this request object if it is a "RESTful" request object
Return the request type for this request object
Possible values: SOAP, RESTful
Get the soap body of this request object if it is a "SOAP" request object
Get the soap request method of this request object if it is a "SOAP" request object
Possible values: SOAP, SOAP12, GET, POST
Get SOAP service endpoint
Get the soap service function of this request object if it is a "SOAP" request object
Get the socket timeout of this request in milliseconds.
Get the wsdl address of this request object if it is a "SOAP" request object
Sets the body content for this request.
bodyContent
- an implementation of HttpBodyContentSet the connection timeout for this request.
connectionTimeout
- The connection timeout in milliseconds.Set the http body for this request object
httpBody
- the new http body for this request object as a StringSet the http headers of this request object
httpHeaderProperties
- the new list contains the http headers for this request objectSet the maximum response size for this request.
maxResponseSize
- The response size limit in bytes.Set the name for this request object
name
- the new name of this request objectSet the id for this request object
objectId
- the new id of this request objectSet the proxy for this request. This proxy will take precedence over proxy settings in Preferences.
Set the Authorization for the request object
requestAuthorization
- the requestAuthorization is used for authentication when sending a request objectSet the rest parameters for this request object
restParameters
- the new rest parameters of this request objectSet the rest request method for this request object
restRequestMethod
- the new request method for this request objectSet the rest url for this request object
restUrl
- the new rest url for this request objectSet the service type for this request object
serviceType
- the new request type for this request objectSet the soap body for this request object
soapBody
- the new soap body for this request objectSet the soap request method for this request object
soapRequestMethod
- the new soap request method for this request objectSet SOAP service endpoint
Set the soap service function for this request object
soapServiceFunction
- the new soap service function for this request objectSet the socket timeout for this request.
socketTimeout
- The socket timeout in milliseconds.Set a flag that determines whether to use the service info (service endpoint, SOAP action,...) parsed from WSDL when sending a SOAP request.
Set the wsdl address of this request object
wsdlAddress
- the new wsdl address of this request objectGet a flag that determines whether to use the service info (service endpoint, SOAP action,...) parsed from WSDL when sending a SOAP request.