Class ProgressRequestBody

java.lang.Object
okhttp3.RequestBody
org.openapitools.client.ProgressRequestBody

public class ProgressRequestBody extends okhttp3.RequestBody
  • Nested Class Summary

    Nested classes/interfaces inherited from class okhttp3.RequestBody

    okhttp3.RequestBody.Companion
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final ApiCallback
     
    private final okhttp3.RequestBody
     

    Fields inherited from class okhttp3.RequestBody

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProgressRequestBody(okhttp3.RequestBody requestBody, ApiCallback callback)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    okhttp3.MediaType
     
    private okio.Sink
    sink(okio.Sink sink)
     
    void
    writeTo(okio.BufferedSink sink)
     

    Methods inherited from class okhttp3.RequestBody

    create, create, create, create, create, create, create, create, create, create, create, create, create, isDuplex, isOneShot

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • requestBody

      private final okhttp3.RequestBody requestBody
    • callback

      private final ApiCallback callback
  • Constructor Details

    • ProgressRequestBody

      public ProgressRequestBody(okhttp3.RequestBody requestBody, ApiCallback callback)
  • Method Details

    • contentType

      public okhttp3.MediaType contentType()
      Specified by:
      contentType in class okhttp3.RequestBody
    • contentLength

      public long contentLength() throws IOException
      Overrides:
      contentLength in class okhttp3.RequestBody
      Throws:
      IOException
    • writeTo

      public void writeTo(okio.BufferedSink sink) throws IOException
      Specified by:
      writeTo in class okhttp3.RequestBody
      Throws:
      IOException
    • sink

      private okio.Sink sink(okio.Sink sink)