Class MediaTypeHeaderDelegate
java.lang.Object
org.jboss.resteasy.plugins.delegates.MediaTypeHeaderDelegate
- All Implemented Interfaces:
RuntimeDelegate.HeaderDelegate<MediaType>
public class MediaTypeHeaderDelegate
extends Object
implements RuntimeDelegate.HeaderDelegate<MediaType>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfromString(String type) Parse the supplied value and create an instance ofT.protected static booleanstatic MediaTypestatic booleanConvert the supplied value to a String.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
MediaTypeHeaderDelegate
public MediaTypeHeaderDelegate()
-
-
Method Details
-
fromString
Description copied from interface:RuntimeDelegate.HeaderDelegateParse the supplied value and create an instance ofT.- Specified by:
fromStringin interfaceRuntimeDelegate.HeaderDelegate<MediaType>- Parameters:
type- the string value.- Returns:
- the newly created instance of
T. - Throws:
IllegalArgumentException- if the supplied string cannot be parsed or isnull.
-
isValid
-
parse
-
quoted
-
toString
Description copied from interface:RuntimeDelegate.HeaderDelegateConvert the supplied value to a String.- Specified by:
toStringin interfaceRuntimeDelegate.HeaderDelegate<MediaType>- Parameters:
type- the value of typeT.- Returns:
- a String representation of the value.
-
clearCache
public static void clearCache()
-