Class MediaTypeConverter
java.lang.Object
com.github.joschi.jadconfig.guava.converters.MediaTypeConverter
- All Implemented Interfaces:
Converter<com.google.common.net.MediaType>
public class MediaTypeConverter
extends Object
implements Converter<com.google.common.net.MediaType>
Converter for type
MediaType.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MediaTypeConverter
public MediaTypeConverter()
-
-
Method Details
-
convertFrom
Returns aMediaTypeinstance representing the specifiedStringvalue.- Specified by:
convertFromin interfaceConverter<com.google.common.net.MediaType>- Parameters:
value- The configuration parameter'sStringvalue- Returns:
- An
MediaTypeinstance representing the configuration parameter's value
-
convertTo
Returns aStringinstance representing the configuration parameter's value.
-