public class ClientRequestHeaders extends Object
Modifier and Type | Field and Description |
---|---|
protected ClientConfiguration |
configuration |
protected CaseInsensitiveMap<Object> |
headers |
Constructor and Description |
---|
ClientRequestHeaders(ClientConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
accept(MediaType... types) |
void |
accept(String... types) |
void |
acceptEncoding(String... encodings) |
void |
acceptLanguage(Locale... locales) |
void |
acceptLanguage(String... locales) |
void |
allow(Set<String> methods) |
void |
allow(String... methods) |
MultivaluedMap<String,String> |
asMap() |
void |
cacheControl(CacheControl cacheControl) |
void |
cookie(Cookie cookie) |
List<Locale> |
getAcceptableLanguages() |
List<MediaType> |
getAcceptableMediaTypes() |
Map<String,Cookie> |
getCookies() |
Date |
getDate() |
String |
getHeader(String name) |
CaseInsensitiveMap<Object> |
getHeaders() |
Locale |
getLanguage() |
int |
getLength() |
MediaType |
getMediaType() |
void |
header(String name,
Object value) |
void |
setHeaders(MultivaluedMap<String,Object> newHeaders) |
void |
setLanguage(Locale language) |
void |
setLanguage(String language) |
void |
setMediaType(MediaType mediaType) |
protected CaseInsensitiveMap<Object> headers
protected ClientConfiguration configuration
public ClientRequestHeaders(ClientConfiguration configuration)
public CaseInsensitiveMap<Object> getHeaders()
public void setHeaders(MultivaluedMap<String,Object> newHeaders)
public void setLanguage(Locale language)
public void setLanguage(String language)
public void setMediaType(MediaType mediaType)
public void acceptLanguage(Locale... locales)
public void acceptLanguage(String... locales)
public void acceptEncoding(String... encodings)
public void accept(String... types)
public void accept(MediaType... types)
public void cookie(Cookie cookie)
public void allow(String... methods)
public void cacheControl(CacheControl cacheControl)
public Date getDate()
public MultivaluedMap<String,String> asMap()
public Locale getLanguage()
public int getLength()
public MediaType getMediaType()
Copyright © 2019 JBoss by Red Hat. All rights reserved.