Package 

Class EmbraceOkHttp3NetworkInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    
    public final class EmbraceOkHttp3NetworkInterceptor
     implements Interceptor
                        

    Custom OkHttp3 Interceptor implementation that will log the results of the network call to Embrace.io.

    This interceptor will only intercept network request and responses from client app. OkHttp3 network interceptors are added almost at the end of stack, they are closer to "Wire" so they are able to see catch "real requests".

    Network Interceptors - Able to operate on intermediate responses like redirects and retries. - Not invoked for cached responses that short-circuit the network. - Observe the data just as it will be transmitted over the network. - Access to the Connection that carries the request.

    • Method Summary

      Modifier and Type Method Description
      Response intercept(Interceptor.Chain chain)
      • Methods inherited from class okhttp3.Interceptor

        intercept
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EmbraceOkHttp3NetworkInterceptor

        EmbraceOkHttp3NetworkInterceptor()
    • Method Detail

      • intercept

         Response intercept(Interceptor.Chain chain)