public class Request
Class for creating request. You can extend it using your own endpoint class.
| Modifier and Type | Class and Description |
|---|---|
static class |
Request.Companion
Initiate your default settings.
|
| Modifier and Type | Field and Description |
|---|---|
static Request.Companion |
Companion
Initiate your default settings.
|
io.restassured.http.Method |
method |
| Constructor and Description |
|---|
Request()
Class for creating request. You can extend it using your own endpoint class.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBaseUri() |
java.util.HashMap<java.lang.String,java.lang.Object> |
getBody() |
java.lang.String |
getContentType() |
java.util.HashMap<java.lang.String,com.github.aivancioglo.resttest.http.Parser> |
getContentTypeParsers() |
Parser |
getDefaultParser() |
java.lang.String |
getHost() |
io.restassured.http.Method |
getMethod() |
OAuth1 |
getOAuth1() |
OAuth2 |
getOAuth2() |
java.lang.String |
getProtocol() |
io.restassured.specification.RequestSpecification |
getRequestSpecification() |
java.util.ArrayList<com.github.aivancioglo.resttest.setters.Setter> |
getSetters() |
java.util.HashMap<java.lang.Object,java.lang.Object> |
getStorage() |
Response |
send(io.restassured.http.Method method,
com.github.aivancioglo.resttest.setters.Setter setters)
Sending your request.
|
Response |
send(io.restassured.http.Method method,
java.lang.String path,
com.github.aivancioglo.resttest.setters.Setter setters)
Sending your request.
|
void |
set(com.github.aivancioglo.resttest.setters.Setter setters)
Set your own setters.
|
void |
setBaseUri(java.lang.String p) |
void |
setContentType(java.lang.String p) |
void |
setDefaultParser(Parser p) |
void |
setHost(java.lang.String p) |
void |
setMethod(io.restassured.http.Method p) |
void |
setProtocol(java.lang.String p) |
public io.restassured.http.Method method
public static Request.Companion Companion
Initiate your default settings.
public Request()
Class for creating request. You can extend it using your own endpoint class.
public java.util.HashMap<java.lang.Object,java.lang.Object> getStorage()
public Parser getDefaultParser()
public void setDefaultParser(Parser p)
public java.util.HashMap<java.lang.String,com.github.aivancioglo.resttest.http.Parser> getContentTypeParsers()
public io.restassured.specification.RequestSpecification getRequestSpecification()
public OAuth1 getOAuth1()
public OAuth2 getOAuth2()
public java.lang.String getContentType()
public void setContentType(java.lang.String p)
public java.util.HashMap<java.lang.String,java.lang.Object> getBody()
public java.util.ArrayList<com.github.aivancioglo.resttest.setters.Setter> getSetters()
public io.restassured.http.Method getMethod()
public void setMethod(io.restassured.http.Method p)
public java.lang.String getProtocol()
public void setProtocol(java.lang.String p)
public java.lang.String getHost()
public void setHost(java.lang.String p)
public java.lang.String getBaseUri()
public void setBaseUri(java.lang.String p)
public void set(com.github.aivancioglo.resttest.setters.Setter setters)
Set your own setters.
setters - for your request.public Response send(io.restassured.http.Method method, com.github.aivancioglo.resttest.setters.Setter setters)
Sending your request.
method - of your request.setters - Setters are setting up request specification.public Response send(io.restassured.http.Method method, java.lang.String path, com.github.aivancioglo.resttest.setters.Setter setters)
Sending your request.
method - of your request.path - is a path param.setters - Setters are setting up request specification.