com.heroku.api.http
Interface UserAgentValueProvider
- All Known Implementing Classes:
- UserAgentValueProvider.DEFAULT
public interface UserAgentValueProvider
Provider for User-Agent header values used by HTTP clients.
To provide a custom User-Agent value, implement this interface
and create a provider-configuration file at
META-INF/services/com.heroku.api.http.UserAgentValueProvider
containing the fully-qualified name of your provider class.
See ServiceLoader
for details.
To conform to RFC 2616 Section 14.43, consider prepending the value
from the UserAgentValueProvider.DEFAULT
provider with your own user agent.
- Author:
- Ryan Brainard
- See Also:
ServiceLoader
,
Http.UserAgent
getHeaderValue
String getHeaderValue()
getHeaderValue
String getHeaderValue(String customPart)
Copyright © 2012. All Rights Reserved.