public class TestRequest
extends java.lang.Object
| Modifier and Type | Method | 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(java.lang.String name,
java.lang.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(java.lang.String name,
java.lang.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(java.lang.String name, java.lang.String value)
name - a name.value - a value.java.lang.NullPointerException - If name or value parameter is null.public TestRequest header(java.lang.String name, java.lang.String value)
name - a name.value - a value.java.lang.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.java.lang.NullPointerException - If name or value parameter is null.public TestResponse get(MediaPublisher mediaPublisher) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
mediaPublisher - a request body publisher.java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse get() throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse post(MediaPublisher mediaPublisher) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
mediaPublisher - a request body publisher.java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse post() throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse put(MediaPublisher mediaPublisher) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
mediaPublisher - a request body publisher.java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse put() throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse delete(MediaPublisher mediaPublisher) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
mediaPublisher - a request body publisher.java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse delete() throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse options(MediaPublisher mediaPublisher) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
mediaPublisher - a request body publisher.java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse options() throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse head(MediaPublisher mediaPublisher) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
mediaPublisher - a request body publisher.java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse head() throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse trace(MediaPublisher mediaPublisher) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
mediaPublisher - a request body publisher.java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse trace() throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse call(io.helidon.common.http.Http.RequestMethod method, MediaPublisher mediaPublisher) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
method - an HTTP method.mediaPublisher - a request body publisher.java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.public TestResponse call(io.helidon.common.http.Http.RequestMethod method) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
method - an HTTP method.java.lang.InterruptedException - if thread is interrupted.java.util.concurrent.TimeoutException - if request timeout is reached.Copyright © 2018 Oracle Corporation. All rights reserved.