public class RestRequestObjectBuilder
| Constructor and description |
|---|
RestRequestObjectBuilder
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public RequestObject |
build() |
|
public RestRequestObjectBuilder |
withFileBodyContent(String filePath)Specify the binary body content |
|
public RestRequestObjectBuilder |
withGraphQLBodyContent(String text)Specify the GraphQL body content, default charset UTF-8 |
|
public RestRequestObjectBuilder |
withGraphQLBodyContent(String text, String charset)Specify the GraphQL body content |
|
public RestRequestObjectBuilder |
withHttpHeaders(List<TestObjectProperty> httpHeaderProperties)Specify HTTP headers for the request object |
|
public RestRequestObjectBuilder |
withMultipartFormDataBodyContent(List<FormDataBodyParameter> parameters)Specify the body content for multipart/form-data type, default charset UTF-8 |
|
public RestRequestObjectBuilder |
withRequestAuthorization(RequestAuthorization requestAuthorization)Specify the authorization for the request object |
|
public RestRequestObjectBuilder |
withRestParameters(List<TestObjectProperty> restParameters)Specify the REST parameters for the request object |
|
public RestRequestObjectBuilder |
withRestRequestMethod(String requestMethod)Specify method for the request object |
|
public RestRequestObjectBuilder |
withRestUrl(String url) |
|
public RestRequestObjectBuilder |
withTextBodyContent(String text)Specify the text body content, default charset UTF-8 |
|
public RestRequestObjectBuilder |
withTextBodyContent(String text, String charset)Specify the text body content |
|
public RestRequestObjectBuilder |
withUrlEncodedBodyContent(List<UrlEncodedBodyParameter> parameters)Specify the body content that composes of a list of url-encoded pairs, default charset UTF-8 |
|
public RestRequestObjectBuilder |
withUrlEncodedBodyContent(List<UrlEncodedBodyParameter> parameters, String charset)Specify the body content that composes of a list of url-encoded pairs |
Specify the binary body content
Specify the GraphQL body content, default charset UTF-8
text - The raw content as plain textSpecify the GraphQL body content
text - The raw content as plain textcharset - The character set to be usedSpecify HTTP headers for the request object
httpHeaderProperties - list contains the HTTP headers for the request objectSpecify the body content for multipart/form-data type, default charset UTF-8
parameters - List of parameters which define body parts, either in text or binary formSpecify the authorization for the request object
requestAuthorization - the requestAuthorization is used for authentication when sending a request objectSpecify the REST parameters for the request object
restParameters - The new rest parameters of this request objectSpecify method for the request object
Possible values: GET, POST, PUT, DELETE
Specify the text body content, default charset UTF-8
text - The raw content as plain textSpecify the text body content
text - The raw content as plain textcharset - The character set to be usedSpecify the body content that composes of a list of url-encoded pairs, default charset UTF-8
parameters - List of url-encoded pairsSpecify the body content that composes of a list of url-encoded pairs
parameters - List of url-encoded pairscharset - The character set to be used