Class MediaTypeAdapter
java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,MediaType>
org.jboss.resteasy.plugins.providers.atom.MediaTypeAdapter
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MediaTypeAdapter
public MediaTypeAdapter()
-
-
Method Details
-
unmarshal
Description copied from class:XmlAdapterConvert a value type to a bound type.- Specified by:
unmarshalin classXmlAdapter<String,MediaType> - Parameters:
s- The value to be converted. Can be null.- Throws:
Exception- if there's an error during the conversion. The caller is responsible for reporting the error to the user throughValidationEventHandler.
-
marshal
Description copied from class:XmlAdapterConvert a bound type to a value type.- Specified by:
marshalin classXmlAdapter<String,MediaType> - Parameters:
mediaType- The value to be converted. Can be null.- Throws:
Exception- if there's an error during the conversion. The caller is responsible for reporting the error to the user throughValidationEventHandler.
-