public static class Setters.Companion
| Modifier and Type | Method and Description |
|---|---|
Setter |
accept(java.lang.String mediaType)
Getting media type setter.
|
Setter |
accept(ContentType contentType)
Getting media type setter.
|
Setter |
basicAuth(java.lang.String userName,
java.lang.String password)
Use http basic authentication.
|
Setter |
body(java.lang.String body)
Getting requestSpecification body setter.
|
Setter |
body(java.io.Serializable body)
Getting requestSpecification body setter.
|
Setter |
contentType(ContentType type)
Getting content type setter.
|
Setter |
contentType(java.lang.String type)
Getting content type setter.
|
Setter |
cookie(java.lang.String name,
java.lang.String value,
java.lang.String additionalValues)
Getting cookie setter.
|
Setter |
cookie(java.lang.String name,
java.lang.String value)
Getting cookie setter.
|
Setter |
cookie(java.lang.String name)
Getting cookie setter.
|
Setter |
formParam(java.lang.String key,
java.lang.Object value)
Getting form param setter.
|
Setter |
header(java.lang.String name,
java.lang.String value)
Getting header setter.
|
Setter |
host(java.lang.String host)
Getting requestSpecification host setter.
|
Setter |
multiPart(java.lang.String controlName,
java.lang.String fileName,
java.io.InputStream stream)
Getting multi part setter.
|
Setter |
multiPart(java.lang.String controlName,
java.lang.String fileName,
java.io.InputStream stream,
java.lang.String mimeType)
Getting multi part setter.
|
Setter |
multiPart(java.io.File file)
Getting multi part setter.
|
Setter |
multiPart(java.lang.String controlName,
java.io.File file)
Getting multi part setter.
|
Setter |
multiPart(io.restassured.specification.MultiPartSpecification multiPartSpecification)
Getting multi part setter.
|
Setter |
noAuth()
Clear all authentication settings.
|
Setter |
oauth1(java.lang.String consumerKey,
java.lang.String consumerSecret,
java.lang.String token,
java.lang.String tokenSecret)
Set all OAuth 1.0 authentication settings.
|
Setter |
oauth2(java.lang.String token)
Set all OAuth 2.0 authentication settings.
|
Setter |
param(java.lang.String key,
java.lang.Object value)
Getting param setter.
|
Setter |
path(java.lang.String path)
Getting requestSpecification path setter.
|
Setter |
pathParam(java.lang.String key,
java.lang.Object value)
Getting path param setter.
|
Setter |
port(int port)
Getting requestSpecification port setter.
|
Setter |
protocol(java.lang.String protocol)
Getting requestSpecification protocol setter.
|
Setter |
queryParam(java.lang.String key,
java.lang.Object value)
Getting query param setter.
|
Setter |
redirects(int max)
Getting redirect setter.
|
Setter |
redirects(boolean follow)
Getting redirect setter.
|
Setter |
urlEncodingEnabled(boolean isEnabled)
Specifies if RestTest should url encode the URL automatically. Usually this is a recommended but in some cases
e.g. the query parameters are already be encoded before you provide them to RestTest then it's useful to disable
URL encoding.
|
public Setter contentType(ContentType type)
Getting content type setter.
type - of content.public Setter contentType(java.lang.String type)
Getting content type setter.
type - of content.public Setter param(java.lang.String key, java.lang.Object value)
Getting param setter.
key - of param.value - of param.public Setter queryParam(java.lang.String key, java.lang.Object value)
Getting query param setter.
key - of query param.value - of query param.public Setter formParam(java.lang.String key, java.lang.Object value)
Getting form param setter.
key - of form param.value - of form param.public Setter cookie(java.lang.String name, java.lang.String value, java.lang.String additionalValues)
Getting cookie setter.
name - of header.value - of header.public Setter cookie(java.lang.String name, java.lang.String value)
Getting cookie setter.
name - of header.value - of header.public Setter cookie(java.lang.String name)
Getting cookie setter.
name - of header.public Setter header(java.lang.String name, java.lang.String value)
Getting header setter.
name - of header.value - of header.public Setter body(java.lang.String body)
Getting requestSpecification body setter.
body - of requestSpecification.public Setter body(java.io.Serializable body)
Getting requestSpecification body setter.
body - of requestSpecification.public Setter protocol(java.lang.String protocol)
Getting requestSpecification protocol setter.
protocol - of requestSpecification.public Setter host(java.lang.String host)
Getting requestSpecification host setter.
host - of requestSpecification.public Setter path(java.lang.String path)
Getting requestSpecification path setter.
path - of requestSpecification.public Setter port(int port)
Getting requestSpecification port setter.
port - of requestSpecification.public Setter pathParam(java.lang.String key, java.lang.Object value)
Getting path param setter.
key - of path param.value - of path param.public Setter multiPart(java.lang.String controlName, java.lang.String fileName, java.io.InputStream stream)
Getting multi part setter.
controlName - of the body part. In HTML this is the attribute name of the input tag.fileName - of the content you're uploading.stream - you want to requestSpecification.public Setter multiPart(java.lang.String controlName, java.lang.String fileName, java.io.InputStream stream, java.lang.String mimeType)
Getting multi part setter.
controlName - of the body part. In HTML this is the attribute name of the input tag.fileName - of the content you're uploading.stream - you want to requestSpecification.mimeType - The mime-typepublic Setter multiPart(java.io.File file)
Getting multi part setter.
file - to uploadpublic Setter multiPart(java.lang.String controlName, java.io.File file)
Getting multi part setter.
file - to uploadcontrolName - Defines the control name of the body part. In HTML this is the attribute name of the input tag.public Setter multiPart(io.restassured.specification.MultiPartSpecification multiPartSpecification)
Getting multi part setter.
multiPartSpecification - of yur request.public Setter redirects(int max)
Getting redirect setter.
max - count of redirects.public Setter redirects(boolean follow)
Getting redirect setter.
follow - redirects.public Setter accept(java.lang.String mediaType)
Getting media type setter.
mediaType - of request.public Setter accept(ContentType contentType)
Getting media type setter.
contentType - of request.public Setter urlEncodingEnabled(boolean isEnabled)
Specifies if RestTest should url encode the URL automatically. Usually this is a recommended but in some cases e.g. the query parameters are already be encoded before you provide them to RestTest then it's useful to disable URL encoding.
isEnabled - URL encoding or disabled.public Setter basicAuth(java.lang.String userName, java.lang.String password)
Use http basic authentication.
userName - of your account.password - of your account.public Setter oauth1(java.lang.String consumerKey, java.lang.String consumerSecret, java.lang.String token, java.lang.String tokenSecret)
Set all OAuth 1.0 authentication settings.
public Setter oauth2(java.lang.String token)
Set all OAuth 2.0 authentication settings.
public Setter noAuth()
Clear all authentication settings.