Class TwitchClientIdInterceptor

java.lang.Object
com.github.twitch4j.common.feign.interceptor.TwitchClientIdInterceptor
All Implemented Interfaces:
feign.RequestInterceptor

public class TwitchClientIdInterceptor extends Object implements feign.RequestInterceptor
Injects ClientId Header, the User Agent and other common headers into each API Request
  • Constructor Details

    • TwitchClientIdInterceptor

      public TwitchClientIdInterceptor(String clientId, String userAgent)
      Constructor
      Parameters:
      clientId - Client Id
      userAgent - User Agent
  • Method Details

    • apply

      public void apply(feign.RequestTemplate template)
      Interceptor
      Specified by:
      apply in interface feign.RequestInterceptor
      Parameters:
      template - Feign RequestTemplate