Package com.microsoft.kiota
Class ResponseHandlerOption
java.lang.Object
com.microsoft.kiota.ResponseHandlerOption
- All Implemented Interfaces:
RequestOption
Request option that can be used to provide a callback and handle the raw response
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the response handler callback<T extends RequestOption>
Class<T> getType()Gets the type of the option to use for middleware retrieval.voidSets the response handler callback
-
Constructor Details
-
ResponseHandlerOption
public ResponseHandlerOption()Creates a new instance of the option
-
-
Method Details
-
getResponseHandler
Gets the response handler callback- Returns:
- the response handler callback
-
setResponseHandler
Sets the response handler callback- Parameters:
value- the response handler callback
-
getType
Gets the type of the option to use for middleware retrieval.- Specified by:
getTypein interfaceRequestOption- Type Parameters:
T- Type of the option.- Returns:
- Class of the option type.
-