public abstract class AbstractAuthorizationInterceptor extends Object implements okhttp3.Interceptor
| Modifier and Type | Field and Description |
|---|---|
private static String |
APPLICATION_JSON_UTF_8 |
private AppMerchant |
appMerchant |
private static String |
DOWNLOAD_FILE_PATH |
| Constructor and Description |
|---|
AbstractAuthorizationInterceptor(AppMerchant appMerchant)
Instantiates a new Abstract authorization interceptor.
|
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
protected abstract void |
verifyResponse(okhttp3.Response response)
Consume.
|
private static final String APPLICATION_JSON_UTF_8
private static final String DOWNLOAD_FILE_PATH
private final AppMerchant appMerchant
public AbstractAuthorizationInterceptor(AppMerchant appMerchant)
appMerchant - the app merchant@NotNull
public okhttp3.Response intercept(@NotNull
okhttp3.Interceptor.Chain chain)
throws IOException
intercept in interface okhttp3.InterceptorIOExceptionprotected abstract void verifyResponse(okhttp3.Response response)
throws PayException
response - the responsePayException - the pay exceptionCopyright © 2023. All rights reserved.