类 ContentType

java.lang.Object
com.dtflys.forest.backend.ContentType

public class ContentType extends Object
从以下版本开始:
2020-08-05 23:42
作者:
gongjun[dt_flys@hotmail.com]
  • 字段详细资料

  • 构造器详细资料

    • ContentType

      public ContentType(String type)
    • ContentType

      public ContentType(String type, String subType)
    • ContentType

      public ContentType(String contentType, Charset defaultCharset)
  • 方法详细资料

    • getType

      public String getType()
    • getSubType

      public String getSubType()
    • getCharset

      public Charset getCharset()
    • getCharsetName

      public String getCharsetName()
    • isEmpty

      public boolean isEmpty()
    • isApplication

      public boolean isApplication()
    • isFormUrlEncoded

      public boolean isFormUrlEncoded()
    • isJson

      public boolean isJson()
    • isXml

      public boolean isXml()
    • isZip

      public boolean isZip()
    • isJavaScript

      public boolean isJavaScript()
    • isOctetStream

      public boolean isOctetStream()
    • isOgg

      public boolean isOgg()
    • isStream

      public boolean isStream()
    • isProtobuf

      public boolean isProtobuf()
    • isBinary

      public boolean isBinary()
    • isTorrent

      public boolean isTorrent()
    • isPdf

      public boolean isPdf()
    • isText

      public boolean isText()
    • isAudio

      public boolean isAudio()
    • isImage

      public boolean isImage()
    • isMultipart

      public boolean isMultipart()
    • isVideo

      public boolean isVideo()
    • canReadAsString

      public boolean canReadAsString()
    • canReadAsBinaryStream

      public boolean canReadAsBinaryStream()
    • bodyType

      public ForestDataType bodyType()
      获取ContentType对应的请求体类型
      返回:
      请求体类型, ForestDataType枚举对象
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • toStringWithoutParameters

      public String toStringWithoutParameters()
    • isHasDefinedCharset

      public boolean isHasDefinedCharset()
    • definedCharsetName

      public ContentType definedCharsetName(String charsetName)