Class FixedHeaderProvider (2.34.1)

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
NameDescription
keyValuePairsString[]
Returns
TypeDescription
FixedHeaderProvider

create(Map<String,String> headers)

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

Creates a FixedHeaderProvider.

Parameter
NameDescription
headersMap<String,String>
Returns
TypeDescription
FixedHeaderProvider

Constructors

FixedHeaderProvider()

public FixedHeaderProvider()

Methods

getHeaders()

public abstract Map<String,String> getHeaders()

Get the headers to put on http requests.

Returns
TypeDescription
Map<String,String>