Class TwitchClientIdInterceptor
java.lang.Object
com.github.twitch4j.common.feign.interceptor.TwitchClientIdInterceptor
- All Implemented Interfaces:
feign.RequestInterceptor
Injects ClientId Header, the User Agent and other common headers into each API Request
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TwitchClientIdInterceptor
Constructor- Parameters:
clientId
- Client IduserAgent
- User Agent
-
-
Method Details
-
apply
public void apply(feign.RequestTemplate template) Interceptor- Specified by:
apply
in interfacefeign.RequestInterceptor
- Parameters:
template
- Feign RequestTemplate
-