|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type than implements RequestBuilder
.public interface RequestBuilder<T extends RequestBuilder>
An interface for building requests. The build methods for constructing the request from the built information are left undefined and implementations must define such methods.
Method Summary | |
---|---|
T |
accept(javax.ws.rs.core.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(javax.ws.rs.core.Cookie cookie)
Add a cookie to be set. |
T |
entity(java.lang.Object entity)
Set the request entity. |
T |
entity(java.lang.Object entity,
javax.ws.rs.core.MediaType type)
Set the request entity it's media type. |
T |
entity(java.lang.Object entity,
java.lang.String type)
Set the request entity it's media type. |
T |
header(java.lang.String name,
java.lang.Object value)
Add an HTTP header and value. |
T |
type(javax.ws.rs.core.MediaType type)
Set the media type. |
T |
type(java.lang.String type)
Set the media type. |
Method Detail |
---|
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 entity
T entity(java.lang.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 type
T 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 type
T type(javax.ws.rs.core.MediaType type)
type
- the media type
T type(java.lang.String type)
type
- the media type
T accept(javax.ws.rs.core.MediaType... types)
types
- an array of the acceptable media types
T accept(java.lang.String... types)
types
- an array of the acceptable media types
T acceptLanguage(java.util.Locale... locales)
locales
- an array of the acceptable languages
T acceptLanguage(java.lang.String... locales)
locales
- an array of the acceptable languages
T cookie(javax.ws.rs.core.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |