public class RequestBuilder<T extends RequestBuilder> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.ws.rs.core.MultivaluedMap<String,Object> |
headers
Arbitrary request headers.
|
protected javax.ws.rs.core.MultivaluedMap<String,Object> |
queryParams
Arbitrary query parameters.
|
| Modifier and Type | Method and Description |
|---|---|
T |
accept(String... acceptStrings)
Sets the media type(s) that are acceptable as a return from the server.
|
T |
contentType(String contentType)
Sets the media type for any content sent to the server.
|
protected List<String> |
getAccept()
Gets the media type(s) that are acceptable as a return from the server.
|
protected String |
getContentType()
Gets the media type for any content sent to the server.
|
T |
header(String name,
Object... value)
Add an arbitrary HTTP header to the request.
|
T |
queryParam(String name,
Object... value)
Add an arbitrary query parameter to the request.
|
protected javax.ws.rs.client.WebTarget |
target()
Returns the unbuilt WebTarget for the request.
|
protected final javax.ws.rs.core.MultivaluedMap<String,Object> headers
protected final javax.ws.rs.core.MultivaluedMap<String,Object> queryParams
public T header(String name, Object... value)
name - The header name.value - The header value(s).public T contentType(String contentType)
contentType - a string describing the media type of content
sent to the server.public T accept(String... acceptStrings)
acceptStrings - a string (or strings) describing the media type that
will be accepted from the server. This parameter may
not be null.public T queryParam(String name, Object... value)
name - The query parameter name.value - The query parameter value(s).protected javax.ws.rs.client.WebTarget target()
buildTarget() should be used instead.protected String getContentType()
Copyright © 2015–2021 Ping Identity Corporation. All rights reserved.