public class AutoRefreshLineApiClientProxy
extends java.lang.Object
LineApiClient with token auto refresh feature.
Token auto refreshing is available when the following conditions are satisfied.
- The instance of LineApiClient is created by newProxy(LineApiClient).
- The method is annotated with TokenAutoRefresh.
- The method returns authentication error that is HTTP response code of 401(UNAUTHORIZED).| Modifier and Type | Method and Description |
|---|---|
static LineApiClient |
newProxy(LineApiClient target) |
@NonNull public static LineApiClient newProxy(@NonNull LineApiClient target)