Class ApiClientHeaderProvider (2.20.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 Methods

appendToken(StringBuilder sb, String token)

protected static void appendToken(StringBuilder sb, String token)
Parameters
NameDescription
sbStringBuilder
tokenString

getDefaultApiClientHeaderKey()

public static String getDefaultApiClientHeaderKey()
Returns
TypeDescription
String

getDefaultResourceHeaderKey()

public static String getDefaultResourceHeaderKey()
Returns
TypeDescription
String

newBuilder()

public static ApiClientHeaderProvider.Builder newBuilder()
Returns
TypeDescription
ApiClientHeaderProvider.Builder

Constructors

ApiClientHeaderProvider(ApiClientHeaderProvider.Builder builder)

protected ApiClientHeaderProvider(ApiClientHeaderProvider.Builder builder)
Parameter
NameDescription
builderApiClientHeaderProvider.Builder

Methods

getHeaders()

public Map<String,String> getHeaders()

Get the headers to put on http requests.

Returns
TypeDescription
Map<String,String>