Class ProvidenceRequestBody<M extends net.morimekta.providence.PMessage<M>>


  • public class ProvidenceRequestBody<M extends net.morimekta.providence.PMessage<M>>
    extends okhttp3.RequestBody
    • Nested Class Summary

      • Nested classes/interfaces inherited from class okhttp3.RequestBody

        okhttp3.RequestBody.Companion
    • Field Summary

      • Fields inherited from class okhttp3.RequestBody

        Companion
    • Constructor Summary

      Constructors 
      Constructor Description
      ProvidenceRequestBody​(M message, net.morimekta.providence.serializer.Serializer serializer)  
      ProvidenceRequestBody​(net.morimekta.providence.PServiceCall<M> serviceCall, net.morimekta.providence.serializer.Serializer serializer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      okhttp3.MediaType contentType()  
      void writeTo​(okio.BufferedSink bufferedSink)  
      • Methods inherited from class okhttp3.RequestBody

        contentLength, 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
    • Constructor Detail

      • ProvidenceRequestBody

        public ProvidenceRequestBody​(M message,
                                     net.morimekta.providence.serializer.Serializer serializer)
      • ProvidenceRequestBody

        public ProvidenceRequestBody​(net.morimekta.providence.PServiceCall<M> serviceCall,
                                     net.morimekta.providence.serializer.Serializer serializer)
    • Method Detail

      • contentType

        @Nullable
        public okhttp3.MediaType contentType()
        Specified by:
        contentType in class okhttp3.RequestBody
      • writeTo

        public void writeTo​(@Nonnull
                            okio.BufferedSink bufferedSink)
                     throws java.io.IOException
        Specified by:
        writeTo in class okhttp3.RequestBody
        Throws:
        java.io.IOException