Class JsonRequestBody

java.lang.Object
com.wechat.pay.java.core.http.JsonRequestBody
All Implemented Interfaces:
RequestBody

public final class JsonRequestBody extends Object implements RequestBody
HTTP JSON类型请求体
  • Method Details

    • getBody

      public String getBody()
      获取请求体
      Returns:
      请求体
    • getContentType

      public String getContentType()
      Description copied from interface: RequestBody
      获取请求体的数据类型
      Specified by:
      getContentType in interface RequestBody
      Returns:
      请求体的数据类型
    • toString

      public String toString()
      Overrides:
      toString in class Object