T - the type than implements RequestBuilder.public interface RequestBuilder<T extends RequestBuilder>
| Modifier and Type | Method and Description |
|---|---|
T |
accept(MediaType... types)
Add acceptable media types.
|
T |
accept(java.lang.String... types)
Add acceptable media types.
|
T |
acceptLanguage(java.util.Locale... locales)
Add acceptable languages
|
T |
acceptLanguage(java.lang.String... locales)
Add acceptable languages
|
T |
cookie(Cookie cookie)
Add a cookie to be set.
|
T |
entity(java.lang.Object entity)
Set the request entity.
|
T |
entity(java.lang.Object entity,
MediaType type)
Set the request entity with its media type.
|
T |
entity(java.lang.Object entity,
java.lang.String type)
Set the request entity with its media type.
|
T |
header(java.lang.String name,
java.lang.Object value)
Add an HTTP header and value.
|
T |
type(MediaType type)
Set the media type.
|
T |
type(java.lang.String type)
Set the media type.
|
T entity(java.lang.Object entity)
Any Java type instance for a request entity, that is supported by the client
configuration of the client, can be passed. If generic information is
required then an instance of GenericEntity may
be used.
entity - the request entityT entity(java.lang.Object entity, MediaType type)
Any Java type instance for a request entity, that is supported by the client
configuration of the client, can be passed. If generic information is
required then an instance of GenericEntity may
be used.
entity - the request entitytype - the media typeT entity(java.lang.Object entity, java.lang.String type)
Any Java type instance for a request entity, that is supported by the client
configuration of the client, can be passed. If generic information is
required then an instance of GenericEntity may
be used.
entity - the request entitytype - the media typeT type(MediaType type)
type - the media typeT type(java.lang.String type)
type - the media typeT accept(MediaType... types)
types - an array of the acceptable media typesT accept(java.lang.String... types)
types - an array of the acceptable media typesT acceptLanguage(java.util.Locale... locales)
locales - an array of the acceptable languagesT acceptLanguage(java.lang.String... locales)
locales - an array of the acceptable languagesT cookie(Cookie cookie)
cookie - to be set.T header(java.lang.String name, java.lang.Object value)
name - the HTTP header name.value - the HTTP header value.Copyright © 2016 Oracle Corporation. All Rights Reserved.