类 ContentType
java.lang.Object
com.dtflys.forest.backend.ContentType
- 从以下版本开始:
- 2020-08-05 23:42
- 作者:
- gongjun[dt_flys@hotmail.com]
-
字段概要
字段 -
构造器概要
构造器构造器说明ContentType(String type) ContentType(String type, String subType) ContentType(String contentType, Charset defaultCharset) -
方法概要
修饰符和类型方法说明bodyType()获取ContentType对应的请求体类型booleanbooleandefinedCharsetName(String charsetName) getType()booleanbooleanisAudio()booleanisBinary()booleanisEmpty()booleanbooleanbooleanisImage()booleanbooleanisJson()booleanbooleanbooleanisOgg()booleanisPdf()booleanbooleanisStream()booleanisText()booleanbooleanisVideo()booleanisXml()booleanisZip()toString()
-
字段详细资料
-
构造器详细资料
-
ContentType
-
ContentType
-
ContentType
-
-
方法详细资料
-
getType
-
getSubType
-
getCharset
-
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
获取ContentType对应的请求体类型- 返回:
- 请求体类型,
ForestDataType枚举对象
-
toString
-
toStringWithoutParameters
-
isHasDefinedCharset
public boolean isHasDefinedCharset() -
definedCharsetName
-