RedirectHandler Class

  • java.lang.Object
    • com.microsoft.graph.httpcore.RedirectHandler

Implements

okhttp3.Interceptor

public class RedirectHandler
implements okhttp3.Interceptor

Middleware that determines whether a redirect information should be followed or not, and follows it if necessary.

Field Summary

Modifier and Type Field and Description
final MiddlewareType MIDDLEWARE_TYPE

The current middleware type

Constructor Summary

Constructor Description
RedirectHandler()

Initialize using default redirect options, default IShouldRedirect and max redirect value

RedirectHandler(RedirectOptions redirectOptions)

Initialize using custom redirect options.

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

Field Details

MIDDLEWARE_TYPE

public final MiddlewareType MIDDLEWARE_TYPE

The current middleware type

Constructor Details

RedirectHandler

public RedirectHandler()

Initialize using default redirect options, default IShouldRedirect and max redirect value

RedirectHandler

public RedirectHandler(RedirectOptions redirectOptions)

Initialize using custom redirect options.

Parameters:

redirectOptions - pass instance of redirect options to be used

Method Details

intercept

public Response intercept(Interceptor.Chain chain)

Parameters:

chain

Throws:

java.io.IOException

Applies to