spring-framework / org.springframework.http / MediaTypeEditor

MediaTypeEditor

open class MediaTypeEditor : PropertyEditorSupport

java.beans.PropertyEditor for MediaType descriptors, to automatically convert String specifications (e.g. "text/html") to MediaType properties.

Author
Juergen Hoeller

Since
3.0

See Also
MediaType

Constructors

<init>

MediaTypeEditor()

java.beans.PropertyEditor for MediaType descriptors, to automatically convert String specifications (e.g. "text/html") to MediaType properties.

Functions

getAsText

open fun getAsText(): String

setAsText

open fun setAsText(text: String): Unit