Class FixedHeaderProvider (2.48.0)

public abstract class FixedHeaderProvider implements HeaderProvider, Serializable

An instance of HeaderProvider that always provides the same headers.

Inheritance

java.lang.Object > FixedHeaderProvider

Static Methods

create(String[] keyValuePairs)

public static FixedHeaderProvider create(String[] keyValuePairs)
Parameter
Name Description
keyValuePairs String[]
Returns
Type Description
FixedHeaderProvider

create(Map<String,String> headers)

public static FixedHeaderProvider create(Map<String,String> headers)

Creates a FixedHeaderProvider.

Parameter
Name Description
headers Map<String,String>
Returns
Type Description
FixedHeaderProvider

Constructors

FixedHeaderProvider()

public FixedHeaderProvider()

Methods

getHeaders()

public abstract Map<String,String> getHeaders()

Get the headers to put on http requests.

Returns
Type Description
Map<String,String>