RedirectHandler Class
- java.
lang. Object - com.
microsoft. graph. httpcore. RedirectHandler
- com.
Implements
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
Middleware |
MIDDLEWARE_TYPE
The current middleware type |
Constructor Summary
Constructor | Description |
---|---|
RedirectHandler() |
Initialize using default redirect options, default IShould |
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
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:
Method Details
intercept
public Response intercept(Interceptor.Chain chain)
Parameters:
Throws: