Package com.microsoft.graph.httpcore
Class ChaosHttpHandler
java.lang.Object
com.microsoft.graph.httpcore.ChaosHttpHandler
- All Implemented Interfaces:
okhttp3.Interceptor
DO NOT USE IN PRODUCTION
interceptor that randomly fails the responses for unit testing purposes
-
Nested Class Summary
Nested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MiddlewareTypeThe current middleware typestatic final intToo many requests status codeFields inherited from interface okhttp3.Interceptor
Companion -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MIDDLEWARE_TYPE
The current middleware type -
MSClientErrorCodeTooManyRequests
public static final int MSClientErrorCodeTooManyRequestsToo many requests status code- See Also:
-
-
Constructor Details
-
ChaosHttpHandler
public ChaosHttpHandler()
-
-
Method Details
-
intercept
@Nonnull public okhttp3.Response intercept(@Nonnull okhttp3.Interceptor.Chain chain) throws IOException - Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-