Class AppHeadersInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    
    public final class AppHeadersInterceptor
     implements Interceptor
                        

    This interceptor is responsible for setting required headers for communication with mobile services.

    • Constructor Detail

      • AppHeadersInterceptor

        AppHeadersInterceptor(String applicationId, String deviceId, String applicationVersion, String sdkVersion, String clientAppId)
      • AppHeadersInterceptor

        AppHeadersInterceptor(String applicationId, String deviceId, String applicationVersion, String sdkVersion)
      • AppHeadersInterceptor

        AppHeadersInterceptor(String applicationId, String deviceId, String applicationVersion)
      • AppHeadersInterceptor

        AppHeadersInterceptor(String applicationId, String deviceId)
      • AppHeadersInterceptor

        AppHeadersInterceptor(String applicationId)
      • AppHeadersInterceptor

        AppHeadersInterceptor()
    • Method Detail

      • intercept

         Response intercept(Interceptor.Chain chain)
      • addHeader

         final Boolean addHeader(String name, String value, Boolean replace)

        Adds custom header.

        Parameters:
        name - the header name
        value - the header value
        replace - if 'true', the existing header will be replaced value, otherwise, value will be appended at the end of the existing header value, separated by comma.