public class TestRequest extends Object
| Modifier and Type | Method and Description |
|---|---|
TestResponse |
call(io.helidon.common.http.Http.RequestMethod method)
Calls using specified HTTP method with body.
|
TestResponse |
call(io.helidon.common.http.Http.RequestMethod method,
MediaPublisher mediaPublisher)
Calls using specified HTTP method with body.
|
TestResponse |
delete()
Calls HTTP DELETE method with body.
|
TestResponse |
delete(MediaPublisher mediaPublisher)
Calls HTTP DELETE method with body.
|
TestResponse |
get()
Calls HTTP GET method with body.
|
TestResponse |
get(MediaPublisher mediaPublisher)
Calls HTTP GET method with body.
|
TestResponse |
head()
Calls HTTP HEAD method with body.
|
TestResponse |
head(MediaPublisher mediaPublisher)
Calls HTTP HEAD method with body.
|
TestRequest |
header(String name,
String value)
Add a header.
|
TestResponse |
options()
Calls HTTP OPTIONS method with body.
|
TestResponse |
options(MediaPublisher mediaPublisher)
Calls HTTP OPTIONS method with body.
|
TestResponse |
post()
Calls HTTP POST method with body.
|
TestResponse |
post(MediaPublisher mediaPublisher)
Calls HTTP POST method with body.
|
TestResponse |
put()
Calls HTTP PUT method with body.
|
TestResponse |
put(MediaPublisher mediaPublisher)
Calls HTTP PUT method with body.
|
TestRequest |
queryParameter(String name,
String value)
Add a query parameter.
|
TestResponse |
trace()
Calls HTTP TRACE method with body.
|
TestResponse |
trace(MediaPublisher mediaPublisher)
Calls HTTP TRACE method with body.
|
TestRequest |
version(io.helidon.common.http.Http.Version version)
Define an HTTP version.
|
public TestRequest queryParameter(String name, String value)
name - a name.value - a value.NullPointerException - If name or value parameter is null.public TestRequest header(String name, String value)
name - a name.value - a value.NullPointerException - If name or value parameter is null.public TestRequest version(io.helidon.common.http.Http.Version version)
HTTP/1.1.version - a version to set.NullPointerException - If name or value parameter is null.public TestResponse get(MediaPublisher mediaPublisher) throws InterruptedException, TimeoutException
mediaPublisher - a request body publisher.InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse get() throws InterruptedException, TimeoutException
InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse post(MediaPublisher mediaPublisher) throws InterruptedException, TimeoutException
mediaPublisher - a request body publisher.InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse post() throws InterruptedException, TimeoutException
InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse put(MediaPublisher mediaPublisher) throws InterruptedException, TimeoutException
mediaPublisher - a request body publisher.InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse put() throws InterruptedException, TimeoutException
InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse delete(MediaPublisher mediaPublisher) throws InterruptedException, TimeoutException
mediaPublisher - a request body publisher.InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse delete() throws InterruptedException, TimeoutException
InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse options(MediaPublisher mediaPublisher) throws InterruptedException, TimeoutException
mediaPublisher - a request body publisher.InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse options() throws InterruptedException, TimeoutException
InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse head(MediaPublisher mediaPublisher) throws InterruptedException, TimeoutException
mediaPublisher - a request body publisher.InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse head() throws InterruptedException, TimeoutException
InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse trace(MediaPublisher mediaPublisher) throws InterruptedException, TimeoutException
mediaPublisher - a request body publisher.InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse trace() throws InterruptedException, TimeoutException
InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse call(io.helidon.common.http.Http.RequestMethod method, MediaPublisher mediaPublisher) throws InterruptedException, TimeoutException
method - an HTTP method.mediaPublisher - a request body publisher.InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.public TestResponse call(io.helidon.common.http.Http.RequestMethod method) throws InterruptedException, TimeoutException
method - an HTTP method.InterruptedException - if thread is interrupted.TimeoutException - if request timeout is reached.Copyright © 2018–2019 Oracle Corporation. All rights reserved.