Package com.microsoft.rest.interceptors
Class BaseUrlHandler
- java.lang.Object
-
- com.microsoft.rest.interceptors.BaseUrlHandler
-
- All Implemented Interfaces:
okhttp3.Interceptor
public final class BaseUrlHandler extends Object implements okhttp3.Interceptor
Handles dynamic replacements on base URL. The arguments must be in pairs with the string in raw URL to replace as replacements[i] and the dynamic part as replacements[i+1]. E.g. {subdomain}.microsoft.com can be set dynamically by setting header x-ms-parameterized-host: "{subdomain}, azure"
-
-
Constructor Summary
Constructors Constructor Description BaseUrlHandler()
-
-
-
Method Detail
-
intercept
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-
-