RequestIdHeaderInterceptor Class

  • java.lang.Object
    • com.microsoft.bot.restclient.interceptors.RequestIdHeaderInterceptor

Implements

okhttp3.Interceptor

public final class RequestIdHeaderInterceptor
implements okhttp3.Interceptor

An instance of this class puts an UUID in the request header. Azure uses the request id as the unique identifier for

Constructor Summary

Constructor Description
RequestIdHeaderInterceptor()

Method Summary

Modifier and Type Method and Description
okhttp3.Response intercept(Interceptor.Chain chain)

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

RequestIdHeaderInterceptor

public RequestIdHeaderInterceptor()

Method Details

intercept

public Response intercept(Interceptor.Chain chain)

Parameters:

chain

Throws:

java.io.IOException

Applies to