public class GoogleRequestHeadersFiller extends Object
HttpHeaders with values.| Constructor and Description |
|---|
GoogleRequestHeadersFiller(com.google.api.client.http.HttpHeaders headers) |
GoogleRequestHeadersFiller(Object remoteRequest) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptLanguage(Locale locale)
Apply optional Accept-Language to this request headers.
|
void |
addHeader(String header,
String value)
Add header to the request.
|
void |
authorization(String token)
Sets the
"Authorization" header to this request. |
void |
contentType(String type)
Apply content type to this request headers.
|
void |
fillInCredential(Map<String,Object> params) |
com.google.api.client.http.HttpHeaders |
getHeaders() |
public GoogleRequestHeadersFiller(Object remoteRequest)
public GoogleRequestHeadersFiller(com.google.api.client.http.HttpHeaders headers)
public void acceptLanguage(@Nullable Locale locale)
locale - the optional locale to be set, null value will be ignoredpublic void contentType(@Nullable String type)
type - the optional content type to be set, null value will be ignoredpublic void authorization(String token)
"Authorization" header to this request.token - the authorization token to be set, null value will be ignoredpublic void addHeader(@Nonnull String header, @Nonnull String value)
header - the name of the headervalue - the header valuepublic com.google.api.client.http.HttpHeaders getHeaders()
Copyright © 2017 Comvai - TurnOnline.biz. All rights reserved.