类 OkHttpDataType

java.lang.Object
tech.mhuang.pacebox.springboot.core.okhttp.OkHttpDataType

public class OkHttpDataType extends Object
okhttpclient数据类型
从以下版本开始:
1.1.0
作者:
mhuang
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final okhttp3.MediaType
    Atom XML聚合格式
    static final okhttp3.MediaType
    form表单数据被编码为key/value格式发送到服务器
    static final okhttp3.MediaType
    另外一种常见的媒体格式是上传文件之时使用的 需要在表单中进行文件上传时,就需要使用该格式
    static final okhttp3.MediaType
    gif图片格式
    static final okhttp3.MediaType
    HTML格式
    static final okhttp3.MediaType
    jpg图片格式
    static final okhttp3.MediaType
    JSON数据格式
    static final okhttp3.MediaType
    pdf格式
    static final okhttp3.MediaType
    纯文本格式
    static okhttp3.MediaType
    png图片格式
    static final okhttp3.MediaType
    二进制流数据(如常见的文件下载)
    static final okhttp3.MediaType
    Word文档格式
    static final okhttp3.MediaType
    XHTML格式
    static final okhttp3.MediaType
    XML数据格式
    static final okhttp3.MediaType
    XML格式
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • HTML_TYPE

      public static final okhttp3.MediaType HTML_TYPE
      HTML格式
    • PLAIN_TYPE

      public static final okhttp3.MediaType PLAIN_TYPE
      纯文本格式
    • XML_TYPE

      public static final okhttp3.MediaType XML_TYPE
      XML格式
    • GIF_TYPE

      public static final okhttp3.MediaType GIF_TYPE
      gif图片格式
    • JPG_TYPE

      public static final okhttp3.MediaType JPG_TYPE
      jpg图片格式
    • PNG_TYPE

      public static okhttp3.MediaType PNG_TYPE
      png图片格式
    • XHTML_TYPE

      public static final okhttp3.MediaType XHTML_TYPE
      XHTML格式
    • XML_DATA_TYPE

      public static final okhttp3.MediaType XML_DATA_TYPE
      XML数据格式
    • ATOM_XML_TYPE

      public static final okhttp3.MediaType ATOM_XML_TYPE
      Atom XML聚合格式
    • JSON_TYPE

      public static final okhttp3.MediaType JSON_TYPE
      JSON数据格式
    • PDF_TYPE

      public static final okhttp3.MediaType PDF_TYPE
      pdf格式
    • WORD_TYPE

      public static final okhttp3.MediaType WORD_TYPE
      Word文档格式
    • STREAM_TYPE

      public static final okhttp3.MediaType STREAM_TYPE
      二进制流数据(如常见的文件下载)
    • ENC_TYPE

      public static final okhttp3.MediaType ENC_TYPE
      form表单数据被编码为key/value格式发送到服务器
    • FORM_DATA_TYPE

      public static final okhttp3.MediaType FORM_DATA_TYPE
      另外一种常见的媒体格式是上传文件之时使用的 需要在表单中进行文件上传时,就需要使用该格式
  • 构造器详细资料

    • OkHttpDataType

      public OkHttpDataType()