@Singleton public class MediaTypeProvider extends Object implements HeaderDelegateProvider<MediaType>
| Constructor and Description |
|---|
MediaTypeProvider() |
public boolean supports(Class<?> type)
HeaderDelegateProvidersupports in interface HeaderDelegateProvider<MediaType>type - the type that is to be supported.public String toString(MediaType header)
toString in interface RuntimeDelegate.HeaderDelegate<MediaType>public MediaType fromString(String header)
fromString in interface RuntimeDelegate.HeaderDelegate<MediaType>public static MediaType valueOf(HttpHeaderReader reader) throws ParseException
ParseExceptionCopyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.