Class UploadResponseHandler

java.lang.Object
com.microsoft.graph.core.requests.upload.UploadResponseHandler

public class UploadResponseHandler extends Object
The request handler for upload requests.
  • Constructor Details

    • UploadResponseHandler

      public UploadResponseHandler()
      UploadResponseHandler constructor.
    • UploadResponseHandler

      public UploadResponseHandler(@Nullable com.microsoft.kiota.serialization.ParseNodeFactory parseNodeFactory)
      UploadResponseHandler constructor.
      Parameters:
      parseNodeFactory - The ParseNodeFactory to use for response parsing.
  • Method Details

    • handleResponse

      @Nonnull public <T extends com.microsoft.kiota.serialization.Parsable> UploadResult<T> handleResponse(@Nonnull okhttp3.Response response, @Nonnull com.microsoft.kiota.serialization.ParsableFactory<T> factory)
      Process the raw HTTP response from an upload request.
      Type Parameters:
      T - The type of the object being uploaded.
      Parameters:
      response - The HTTP response returned from the upload request.
      factory - The ParsableFactory defining the instantiation of the object being uploaded.
      Returns:
      An UploadResult model containing the information from the server resulting from the upload request.