Class ResponseHandlerOption

java.lang.Object
com.microsoft.kiota.ResponseHandlerOption
All Implemented Interfaces:
RequestOption

public class ResponseHandlerOption extends Object implements RequestOption
Request option that can be used to provide a callback and handle the raw response
  • Constructor Details

    • ResponseHandlerOption

      public ResponseHandlerOption()
      Creates a new instance of the option
  • Method Details

    • getResponseHandler

      @Nullable public ResponseHandler getResponseHandler()
      Gets the response handler callback
      Returns:
      the response handler callback
    • setResponseHandler

      public void setResponseHandler(@Nullable ResponseHandler value)
      Sets the response handler callback
      Parameters:
      value - the response handler callback
    • getType

      @Nonnull public <T extends RequestOption> Class<T> getType()
      Gets the type of the option to use for middleware retrieval.
      Specified by:
      getType in interface RequestOption
      Type Parameters:
      T - Type of the option.
      Returns:
      Class of the option type.