public class RestTest
| Modifier and Type | Class and Description |
|---|---|
static class |
RestTest.Companion |
| Modifier and Type | Field and Description |
|---|---|
static RestTest.Companion |
Companion |
| Constructor and Description |
|---|
RestTest() |
| Modifier and Type | Method and Description |
|---|---|
static Response |
delete(com.github.aivancioglo.resttest.setters.Setter setters)
Making DELETE request.
|
static Response |
delete(java.lang.String url,
com.github.aivancioglo.resttest.setters.Setter setters)
Making DELETE request.
|
static Response |
get(com.github.aivancioglo.resttest.setters.Setter setters)
Making GET request.
|
static Response |
get(java.lang.String url,
com.github.aivancioglo.resttest.setters.Setter setters)
Making GET request.
|
static Response |
head(com.github.aivancioglo.resttest.setters.Setter setters)
Making HEAD request.
|
static Response |
head(java.lang.String url,
com.github.aivancioglo.resttest.setters.Setter setters)
Making HEAD request.
|
static Response |
options(com.github.aivancioglo.resttest.setters.Setter setters)
Making OPTIONS request.
|
static Response |
options(java.lang.String url,
com.github.aivancioglo.resttest.setters.Setter setters)
Making OPTIONS request.
|
static Response |
patch(com.github.aivancioglo.resttest.setters.Setter setters)
Making PATCH request.
|
static Response |
patch(java.lang.String url,
com.github.aivancioglo.resttest.setters.Setter setters)
Making PATCH request.
|
static Repeater |
perform(int timeout,
int every,
int tries)
Deprecated.
|
static Repeater |
perform(int timeout,
int every)
Deprecated.
|
static Repeater |
perform(int timeout)
Deprecated.
|
static Repeater |
perform()
Deprecated.
|
static void |
perform(int timeout,
int every,
int tries,
java.lang.Runnable request)
Deprecated.
|
static Repeater |
perform(int timeout,
double every)
Deprecated.
|
static void |
perform(int timeout,
java.lang.Runnable request)
Deprecated.
|
static void |
perform(int timeout,
int every,
java.lang.Runnable request)
Deprecated.
|
static void |
perform(int timeout,
double every,
java.lang.Runnable request)
Deprecated.
|
static Repeater |
perform(int timeout,
double every,
int tries)
Deprecated.
|
static void |
perform(int timeout,
double every,
int tries,
java.lang.Runnable request)
Deprecated.
|
static Repeater |
perform(double timeout)
Deprecated.
|
static void |
perform(double timeout,
java.lang.Runnable request)
Deprecated.
|
static Repeater |
perform(double timeout,
int every)
Deprecated.
|
static void |
perform(double timeout,
int every,
java.lang.Runnable request)
Deprecated.
|
static Repeater |
perform(double timeout,
double every)
Deprecated.
|
static void |
perform(double timeout,
double every,
java.lang.Runnable request)
Deprecated.
|
static Repeater |
perform(double timeout,
double every,
int tries)
Deprecated.
|
static void |
perform(double timeout,
double every,
int tries,
java.lang.Runnable request)
Deprecated.
|
static Response |
post(com.github.aivancioglo.resttest.setters.Setter setters)
Making POST request.
|
static Response |
post(java.lang.String url,
com.github.aivancioglo.resttest.setters.Setter setters)
Making POST request.
|
static Response |
put(com.github.aivancioglo.resttest.setters.Setter setters)
Making PUT request.
|
static Response |
put(java.lang.String url,
com.github.aivancioglo.resttest.setters.Setter setters)
Making PUT request.
|
static void |
registerParser(java.lang.String contentType,
Parser parser)
Register a custom content-type to be parsed using a predefined parser.
|
static void |
registerParser(ContentType contentType,
Parser parser)
Register a custom content-type to be parsed using a predefined parser.
|
static Repeater |
repeat(int timeout,
int every,
int tries)
Use this function, to create Repeater instance for request repeating.
|
static Repeater |
repeat(int timeout,
int every)
Use this function, to create Repeater instance for request repeating.
|
static Repeater |
repeat(int timeout)
Use this function, to create Repeater instance for request repeating.
|
static Repeater |
repeat()
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(int timeout,
int every,
int tries,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(int timeout,
int every,
int tries,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
|
static Repeater |
repeat(int timeout,
double every)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(int timeout,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(int timeout,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(int timeout,
int every,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(int timeout,
int every,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(int timeout,
double every,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(int timeout,
double every,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
|
static Repeater |
repeat(int timeout,
double every,
int tries)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(int timeout,
double every,
int tries,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(int timeout,
double every,
int tries,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
|
static Repeater |
repeat(double timeout)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(double timeout,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(double timeout,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
|
static Repeater |
repeat(double timeout,
int every)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(double timeout,
int every,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(double timeout,
int every,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
|
static Repeater |
repeat(double timeout,
double every)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(double timeout,
double every,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(double timeout,
double every,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
|
static Repeater |
repeat(double timeout,
double every,
int tries)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(double timeout,
double every,
int tries,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(double timeout,
double every,
int tries,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(java.lang.Runnable runnable)
Use this function, to create Repeater instance for request repeating.
|
static void |
repeat(kotlin.jvm.functions.Function0<kotlin.Unit> runnable)
Use this function, to create Repeater instance for request repeating.
|
static Response |
trace(com.github.aivancioglo.resttest.setters.Setter setters)
Making TRACE request.
|
static Response |
trace(java.lang.String url,
com.github.aivancioglo.resttest.setters.Setter setters)
Making TRACE request.
|
static void |
unregisterParser(java.lang.String contentType)
Unregister the parser associated with the provided content-type.
|
static void |
unregisterParser(ContentType contentType)
Unregister the parser associated with the provided content-type.
|
public static RestTest.Companion Companion
public static Repeater perform(int timeout, int every, int tries)
Use this function, to create Repeater instance for request repeating.
public static Repeater perform(int timeout, int every)
Use this function, to create Repeater instance for request repeating.
public static Repeater perform(int timeout)
Use this function, to create Repeater instance for request repeating.
public static Repeater perform()
Use this function, to create Repeater instance for request repeating.
public static void perform(int timeout,
int every,
int tries,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static Repeater perform(int timeout, double every)
Use this function, to create Repeater instance for request repeating.
public static void perform(int timeout,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static void perform(int timeout,
int every,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static void perform(int timeout,
double every,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static Repeater perform(int timeout, double every, int tries)
Use this function, to create Repeater instance for request repeating.
public static void perform(int timeout,
double every,
int tries,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static Repeater perform(double timeout)
Use this function, to create Repeater instance for request repeating.
public static void perform(double timeout,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static Repeater perform(double timeout, int every)
Use this function, to create Repeater instance for request repeating.
public static void perform(double timeout,
int every,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static Repeater perform(double timeout, double every)
Use this function, to create Repeater instance for request repeating.
public static void perform(double timeout,
double every,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static Repeater perform(double timeout, double every, int tries)
Use this function, to create Repeater instance for request repeating.
public static void perform(double timeout,
double every,
int tries,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static Repeater repeat(int timeout, int every, int tries)
Use this function, to create Repeater instance for request repeating.
public static Repeater repeat(int timeout, int every)
Use this function, to create Repeater instance for request repeating.
public static Repeater repeat(int timeout)
Use this function, to create Repeater instance for request repeating.
public static Repeater repeat()
Use this function, to create Repeater instance for request repeating.
public static void repeat(int timeout,
int every,
int tries,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static void repeat(int timeout,
int every,
int tries,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
public static Repeater repeat(int timeout, double every)
Use this function, to create Repeater instance for request repeating.
public static void repeat(int timeout,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static void repeat(int timeout,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
public static void repeat(int timeout,
int every,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static void repeat(int timeout,
int every,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
public static void repeat(int timeout,
double every,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static void repeat(int timeout,
double every,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
public static Repeater repeat(int timeout, double every, int tries)
Use this function, to create Repeater instance for request repeating.
public static void repeat(int timeout,
double every,
int tries,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static void repeat(int timeout,
double every,
int tries,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
public static Repeater repeat(double timeout)
Use this function, to create Repeater instance for request repeating.
public static void repeat(double timeout,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static void repeat(double timeout,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
public static Repeater repeat(double timeout, int every)
Use this function, to create Repeater instance for request repeating.
public static void repeat(double timeout,
int every,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static void repeat(double timeout,
int every,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
public static Repeater repeat(double timeout, double every)
Use this function, to create Repeater instance for request repeating.
public static void repeat(double timeout,
double every,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static void repeat(double timeout,
double every,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
public static Repeater repeat(double timeout, double every, int tries)
Use this function, to create Repeater instance for request repeating.
public static void repeat(double timeout,
double every,
int tries,
java.lang.Runnable request)
Use this function, to create Repeater instance for request repeating.
public static void repeat(double timeout,
double every,
int tries,
kotlin.jvm.functions.Function0<kotlin.Unit> request)
Use this function, to create Repeater instance for request repeating.
public static void repeat(java.lang.Runnable runnable)
Use this function, to create Repeater instance for request repeating.
public static void repeat(kotlin.jvm.functions.Function0<kotlin.Unit> runnable)
Use this function, to create Repeater instance for request repeating.
public static Response get(com.github.aivancioglo.resttest.setters.Setter setters)
Making GET request.
setters - Setters are setting up request specification.public static Response get(java.lang.String url, com.github.aivancioglo.resttest.setters.Setter setters)
Making GET request.
url - of your request.setters - Setters are setting up request specification.public static Response post(com.github.aivancioglo.resttest.setters.Setter setters)
Making POST request.
setters - Setters are setting up request specification.public static Response post(java.lang.String url, com.github.aivancioglo.resttest.setters.Setter setters)
Making POST request.
url - of your request.setters - Setters are setting up request specification.public static Response put(com.github.aivancioglo.resttest.setters.Setter setters)
Making PUT request.
setters - Setters are setting up request specification.public static Response put(java.lang.String url, com.github.aivancioglo.resttest.setters.Setter setters)
Making PUT request.
url - of your request.setters - Setters are setting up request specification.public static Response patch(com.github.aivancioglo.resttest.setters.Setter setters)
Making PATCH request.
setters - Setters are setting up request specification.public static Response patch(java.lang.String url, com.github.aivancioglo.resttest.setters.Setter setters)
Making PATCH request.
url - of your request.setters - Setters are setting up request specification.public static Response delete(com.github.aivancioglo.resttest.setters.Setter setters)
Making DELETE request.
setters - Setters are setting up request specification.public static Response delete(java.lang.String url, com.github.aivancioglo.resttest.setters.Setter setters)
Making DELETE request.
url - of your request.setters - Setters are setting up request specification.public static Response options(com.github.aivancioglo.resttest.setters.Setter setters)
Making OPTIONS request.
setters - Setters are setting up request specification.public static Response options(java.lang.String url, com.github.aivancioglo.resttest.setters.Setter setters)
Making OPTIONS request.
url - of your request.setters - Setters are setting up request specification.public static Response head(com.github.aivancioglo.resttest.setters.Setter setters)
Making HEAD request.
setters - Setters are setting up request specification.public static Response head(java.lang.String url, com.github.aivancioglo.resttest.setters.Setter setters)
Making HEAD request.
url - of your request.setters - Setters are setting up request specification.public static Response trace(com.github.aivancioglo.resttest.setters.Setter setters)
Making TRACE request.
setters - Setters are setting up request specification.public static Response trace(java.lang.String url, com.github.aivancioglo.resttest.setters.Setter setters)
Making TRACE request.
url - of your request.setters - Setters are setting up request specification.public static void registerParser(java.lang.String contentType,
Parser parser)
Register a custom content-type to be parsed using a predefined parser.
contentType - Content type of your request.parser - The parser to use when verifying the response.public static void registerParser(ContentType contentType, Parser parser)
Register a custom content-type to be parsed using a predefined parser.
contentType - Content type of your request.parser - The parser to use when verifying the response.public static void unregisterParser(java.lang.String contentType)
Unregister the parser associated with the provided content-type.
contentType - Content type of your request.public static void unregisterParser(ContentType contentType)
Unregister the parser associated with the provided content-type.
contentType - Content type of your request.