Class HvlAsyncTokenRequestInterceptor
java.lang.Object
tr.com.havelsan.javarch.oauth.async.token.provider.interceptor.HvlAsyncTokenRequestInterceptor
- All Implemented Interfaces:
feign.RequestInterceptor
The class that adds the token and session information to the context.
-
Constructor Summary
ConstructorDescriptionHvlAsyncTokenRequestInterceptor
(HvlAsyncTokenContext asyncTokenContext, HvlAsyncTokenHeaderProperties asyncTokenHeaderProperties) Instantiates a new HvlAsyncTokenRequestInterceptor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(feign.RequestTemplate requestTemplate) protected boolean
isAvailable
(feign.RequestTemplate requestTemplate) Is available.
-
Constructor Details
-
HvlAsyncTokenRequestInterceptor
public HvlAsyncTokenRequestInterceptor(HvlAsyncTokenContext asyncTokenContext, HvlAsyncTokenHeaderProperties asyncTokenHeaderProperties) Instantiates a new HvlAsyncTokenRequestInterceptor.- Parameters:
asyncTokenContext
- the async token contextasyncTokenHeaderProperties
- the async token header properties
-
-
Method Details
-
apply
public void apply(feign.RequestTemplate requestTemplate) - Specified by:
apply
in interfacefeign.RequestInterceptor
-
isAvailable
protected boolean isAvailable(feign.RequestTemplate requestTemplate) Is available.- Parameters:
requestTemplate
- the request template- Returns:
- the boolean
-