Package org.springframework.http
Class MediaTypeEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.http.MediaTypeEditor
- All Implemented Interfaces:
PropertyEditor
Editor
for MediaType
descriptors, to automatically convert String
specifications
(e.g. "text/html"
) to MediaType
properties.- Since:
- 3.0
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
MediaTypeEditor
public MediaTypeEditor()
-
-
Method Details
-
setAsText
- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
-
getAsText
- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport
-