|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Client
Represents common proxy and http-centric client capabilities
Method Summary | |
---|---|
Client |
accept(javax.ws.rs.core.MediaType... types)
sets HTTP Accept header |
Client |
accept(String... types)
sets HTTP Accept header |
Client |
acceptEncoding(String... encodings)
sets HTTP Accept-Encoding header |
Client |
acceptLanguage(String... languages)
sets HTTP Accept-Language header |
Client |
cookie(javax.ws.rs.core.Cookie cookie)
sets HTTP Cookie header |
Client |
encoding(String encoding)
sets HTTP Content-Encoding header |
URI |
getBaseURI()
Gets the base URI this Client has been intialized with |
URI |
getCurrentURI()
Gets the current URI this Client is working with |
javax.ws.rs.core.MultivaluedMap<String,String> |
getHeaders()
Gets the copy of request headers |
javax.ws.rs.core.Response |
getResponse()
Gets the response state if any |
Client |
header(String name,
Object... values)
Sets arbitrary HTTP Header |
Client |
headers(javax.ws.rs.core.MultivaluedMap<String,String> map)
Sets HTTP Headers |
Client |
language(String language)
sets HTTP Content-Language header |
Client |
match(javax.ws.rs.core.EntityTag tag,
boolean ifNot)
sets HTTP If-Match or If-None-Match header |
Client |
modified(Date date,
boolean ifNot)
sets HTTP If-Modified-Since or If-Unmodified-Since header |
Client |
reset()
Resets the headers and response state if any |
Client |
type(javax.ws.rs.core.MediaType ct)
sets HTTP Content-Type header |
Client |
type(String type)
sets HTTP Content-Type header |
Method Detail |
---|
Client type(javax.ws.rs.core.MediaType ct)
ct
- JAXRS MediaType representing Content-Type value
Client type(String type)
type
- Content-Type value
Client accept(javax.ws.rs.core.MediaType... types)
types
- list of JAXRS MediaTypes representing Accept header values
Client accept(String... types)
types
- list of Accept header values
Client language(String language)
language
- Content-Language header value
Client acceptLanguage(String... languages)
languages
- list of Accept-Language header values
Client encoding(String encoding)
encoding
- Content-Encoding header value
Client acceptEncoding(String... encodings)
encodings
- list of Accept-Encoding header value
Client match(javax.ws.rs.core.EntityTag tag, boolean ifNot)
tag
- ETag valueifNot
- if true then If-None-Match is set, If-Match otherwise
Client modified(Date date, boolean ifNot)
date
- Date value, will be formated as "EEE, dd MMM yyyy HH:mm:ss zzz"ifNot
- if true then If-Unmodified-Since is set, If-Modified-Since otherwise
Client cookie(javax.ws.rs.core.Cookie cookie)
cookie
- Cookie value
Client header(String name, Object... values)
name
- header namevalues
- list of header values
Client headers(javax.ws.rs.core.MultivaluedMap<String,String> map)
map
- headers
Client reset()
javax.ws.rs.core.MultivaluedMap<String,String> getHeaders()
URI getBaseURI()
URI getCurrentURI()
javax.ws.rs.core.Response getResponse()
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |