Class FixedHeaderProvider (2.66.0)

publicabstractclass FixedHeaderProviderimplementsHeaderProvider,Serializable

An instance of HeaderProvider that always provides the same headers.

Inheritance

java.lang.Object > FixedHeaderProvider

Static Methods

create(String[] keyValuePairs)

publicstaticFixedHeaderProvidercreate(String[]keyValuePairs)
Parameter
Name Description
keyValuePairs String[]
Returns
Type Description
FixedHeaderProvider

create(Map<String,String> headers)

publicstaticFixedHeaderProvidercreate(Map<String,String>headers)

Creates a FixedHeaderProvider.

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

Constructors

FixedHeaderProvider()

publicFixedHeaderProvider()

Methods

getHeaders()

publicabstractMap<String,String>getHeaders()

Get the headers to put on http requests.

Returns
Type Description
Map<String,String>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.