public class UserAgentHeaderProvider extends Object implements com.google.api.gax.rpc.HeaderProvider
Constructor and Description |
---|
UserAgentHeaderProvider(Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getHeaders()
Returns the "user-agent" header whose value should be added to the google-cloud-java REST API calls.
|
String |
getUserAgent()
Returns the "user-agent" header value which should be added to the google-cloud-java REST API calls.
|
public UserAgentHeaderProvider(Class<?> clazz)
public Map<String,String> getHeaders()
user-agent: Spring/1.0.0.RELEASE spring-cloud-gcp-pubsub/1.0.0.RELEASE
.getHeaders
in interface com.google.api.gax.rpc.HeaderProvider
public String getUserAgent()
Spring/1.0.0.RELEASE spring-cloud-gcp-pubsub/1.0.0.RELEASE
.Copyright © 2021. All rights reserved.