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