public class UserAgentHeaderProvider
extends java.lang.Object
implements com.google.api.gax.rpc.HeaderProvider
Constructor and Description |
---|
UserAgentHeaderProvider(java.lang.String component)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Returns the "User-Agent" header whose value should be added to the google-cloud-java REST API calls.
|
java.lang.String |
getUserAgent()
Returns the "User-Agent" header value which should be added to the google-cloud-java REST API calls.
|
public UserAgentHeaderProvider(java.lang.String component)
component
- The componentpublic java.util.Map<java.lang.String,java.lang.String> getHeaders()
User-Agent: Micronaut/1.0.0.RELEASE micronaut-gcp-trace/1.0.0.RELEASE
.getHeaders
in interface com.google.api.gax.rpc.HeaderProvider
public java.lang.String getUserAgent()
Micronaut/1.0.0.RELEASE micronaut-gcp-trace/1.0.0.RELEASE
.