public class Headers extends java.lang.Object implements DfeHeaders
Modifier and Type | Field and Description |
---|---|
static org.apache.hc.core5.http.ContentType |
PROTOBUF |
AD_ID, CLIENT_HAS_VOUCHER, CLIENT_ID, CONTENT_FILTERS, DEVICE_CHECKIN_CONSISTENCY_TOKEN, DEVICE_CONFIG_TOKEN, DEVICE_ID, FAMILY_CONSISTENCY_TOKEN, FILTER_LEVEL, HARD_TTL, HARDWARE_ID, LOGGING_ID, MANAGED_CONTEXT, MCCMNC, NETWORK_TYPE, NO_PREFETCH, PROXY_DEVICE_CHECKING_CONSISTENCY_TOKEN, PUBLIC_ANDROID_ID, REQUEST_PARAMS, SERVER_COOKIES, SIGNATURE_PARAMS, SIGNATURE_REQUEST, SOFT_TTL, SUPPORTED_TARGETS, TOCCOOKIE, USER_CONTEXT, VOUCHERS_BACKEND_DOCIDS_CSV
Constructor and Description |
---|
Headers() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hc.core5.http.Header |
agent(java.lang.String value)
RFC 2616 "User-Agent"
|
static org.apache.hc.core5.http.Header |
auth(java.lang.String token)
RFC 2616 "Authorization", configured for ClientLogin.
|
static org.apache.hc.core5.http.Header |
bearer(java.lang.String token)
RFC 2616 "Authorization", configured for OAuth2.
|
static org.apache.hc.core5.http.Header |
checkinConsistency(java.lang.String token)
|
static org.apache.hc.core5.http.Header |
configToken(java.lang.String value)
|
static org.apache.hc.core5.http.Header |
cookie(java.lang.String val)
RFC 2616 "Cookie"
|
static org.apache.hc.core5.http.Header |
dfeCookie(java.lang.String value)
|
static org.apache.hc.core5.http.Header |
gsfId(long id)
|
static org.apache.hc.core5.http.Header |
gsfId(java.lang.String id)
|
static org.apache.hc.core5.http.Header |
host(java.lang.String h)
RFC2616 "Host".
|
static org.apache.hc.core5.http.Header |
lang()
RFC 2616 "Accept-Language".
|
static org.apache.hc.core5.http.Header |
lang(java.util.Locale l)
RFC 2616 "Accept-Language".
|
static org.apache.hc.core5.http.Header |
mccMnc(java.lang.String mccMnc)
|
static org.apache.hc.core5.http.Header |
noPrefetch(boolean b)
|
static org.apache.hc.core5.http.Header |
protobuf()
RFC 2616 "Content Encoding".
|
static org.apache.hc.core5.http.Header |
urlEnc()
RFC 2616 "Content Encoding".
|
public static org.apache.hc.core5.http.Header agent(java.lang.String value)
value
- public static org.apache.hc.core5.http.Header auth(java.lang.String token)
token
- auth tokenpublic static org.apache.hc.core5.http.Header bearer(java.lang.String token)
token
- auth tokenpublic static org.apache.hc.core5.http.Header dfeCookie(java.lang.String value)
value
- public static org.apache.hc.core5.http.Header configToken(java.lang.String value)
value
- public static org.apache.hc.core5.http.Header gsfId(java.lang.String id)
id
- hex encoded 64 bit numberpublic static org.apache.hc.core5.http.Header gsfId(long id)
id
- public static org.apache.hc.core5.http.Header lang(java.util.Locale l)
l
- public static org.apache.hc.core5.http.Header lang()
public static org.apache.hc.core5.http.Header protobuf()
public static org.apache.hc.core5.http.Header urlEnc()
public static org.apache.hc.core5.http.Header cookie(java.lang.String val)
val
- public static org.apache.hc.core5.http.Header host(java.lang.String h)
h
- public static org.apache.hc.core5.http.Header checkinConsistency(java.lang.String token)
token
- public static org.apache.hc.core5.http.Header mccMnc(java.lang.String mccMnc)
mccMnc
- MCCMNCpublic static org.apache.hc.core5.http.Header noPrefetch(boolean b)
b
- value