Class TwitchClientIdInterceptor

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

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

    Constructors
    Constructor Description
    TwitchClientIdInterceptor​(java.lang.String clientId, java.lang.String userAgent)
    Constructor
  • Method Summary

    Modifier and Type Method Description
    void apply​(feign.RequestTemplate template)
    Interceptor

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TwitchClientIdInterceptor

      public TwitchClientIdInterceptor​(java.lang.String clientId, java.lang.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