Class ApiClientHeaderProvider (2.57.0)

public class ApiClientHeaderProvider implements HeaderProvider, Serializable

Implementation of HeaderProvider that provides headers describing the API client library making API calls.

Inheritance

java.lang.Object > ApiClientHeaderProvider

Static Fields

API_VERSION_HEADER_KEY

public static final String API_VERSION_HEADER_KEY
Field Value
Type Description
String

Static Methods

appendToken(StringBuilder sb, String token)

protected static void appendToken(StringBuilder sb, String token)
Parameters
Name Description
sb StringBuilder
token String

getDefaultApiClientHeaderKey()

public static String getDefaultApiClientHeaderKey()
Returns
Type Description
String

getDefaultResourceHeaderKey()

public static String getDefaultResourceHeaderKey()
Returns
Type Description
String

newBuilder()

public static ApiClientHeaderProvider.Builder newBuilder()
Returns
Type Description
ApiClientHeaderProvider.Builder

Constructors

ApiClientHeaderProvider(ApiClientHeaderProvider.Builder builder)

protected ApiClientHeaderProvider(ApiClientHeaderProvider.Builder builder)
Parameter
Name Description
builder ApiClientHeaderProvider.Builder

Methods

getHeaders()

public Map<String,String> getHeaders()

Get the headers to put on http requests.

Returns
Type Description
Map<String,String>