Class HvlAsyncTokenRequestInterceptor

java.lang.Object
tr.com.havelsan.javarch.oauth.async.token.provider.interceptor.HvlAsyncTokenRequestInterceptor
All Implemented Interfaces:
feign.RequestInterceptor

public class HvlAsyncTokenRequestInterceptor extends Object implements feign.RequestInterceptor
The class that adds the token and session information to the context.
  • Constructor Details

    • HvlAsyncTokenRequestInterceptor

      public HvlAsyncTokenRequestInterceptor(HvlAsyncTokenContext asyncTokenContext, HvlAsyncTokenHeaderProperties asyncTokenHeaderProperties)
      Instantiates a new HvlAsyncTokenRequestInterceptor.
      Parameters:
      asyncTokenContext - the async token context
      asyncTokenHeaderProperties - the async token header properties
  • Method Details

    • apply

      public void apply(feign.RequestTemplate requestTemplate)
      Specified by:
      apply in interface feign.RequestInterceptor
    • isAvailable

      protected boolean isAvailable(feign.RequestTemplate requestTemplate)
      Is available.
      Parameters:
      requestTemplate - the request template
      Returns:
      the boolean