T
- the type than implements RequestBuilder
.public interface RequestBuilder<T extends RequestBuilder>
Modifier and Type | Method and Description |
---|---|
T |
accept(javax.ws.rs.core.MediaType... types)
Add acceptable media types.
|
T |
accept(String... types)
Add acceptable media types.
|
T |
acceptLanguage(Locale... locales)
Add acceptable languages
|
T |
acceptLanguage(String... locales)
Add acceptable languages
|
T |
cookie(javax.ws.rs.core.Cookie cookie)
Add a cookie to be set.
|
T |
entity(Object entity)
Set the request entity.
|
T |
entity(Object entity,
javax.ws.rs.core.MediaType type)
Set the request entity with its media type.
|
T |
entity(Object entity,
String type)
Set the request entity with its media type.
|
T |
header(String name,
Object value)
Add an HTTP header and value.
|
T |
type(javax.ws.rs.core.MediaType type)
Set the media type.
|
T |
type(String type)
Set the media type.
|
T entity(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(Object entity, javax.ws.rs.core.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(Object entity, 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(javax.ws.rs.core.MediaType type)
type
- the media typeT accept(javax.ws.rs.core.MediaType... types)
types
- an array of the acceptable media typesT accept(String... types)
types
- an array of the acceptable media typesT acceptLanguage(Locale... locales)
locales
- an array of the acceptable languagesT acceptLanguage(String... locales)
locales
- an array of the acceptable languagesT cookie(javax.ws.rs.core.Cookie cookie)
cookie
- to be set.Copyright © 2013 Oracle Corporation. All rights reserved.