Class RequestBody


  • public final class RequestBody
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SerializedBody serialize​(java.lang.Object request, java.lang.String requestField, java.lang.String serializationMethod, boolean nullable)  
      static SerializedBody serializeFormData​(java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • serialize

        public static SerializedBody serialize​(java.lang.Object request,
                                               java.lang.String requestField,
                                               java.lang.String serializationMethod,
                                               boolean nullable)
                                        throws java.lang.NoSuchFieldException,
                                               java.lang.IllegalArgumentException,
                                               java.lang.IllegalAccessException,
                                               java.lang.UnsupportedOperationException,
                                               java.io.IOException
        Throws:
        java.lang.NoSuchFieldException
        java.lang.IllegalArgumentException
        java.lang.IllegalAccessException
        java.lang.UnsupportedOperationException
        java.io.IOException
      • serializeFormData

        public static SerializedBody serializeFormData​(java.lang.Object value)
                                                throws java.io.IOException,
                                                       java.lang.IllegalArgumentException,
                                                       java.lang.IllegalAccessException
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
        java.lang.IllegalAccessException