Class MediaTypeHeaderDelegate
- java.lang.Object
-
- org.jboss.resteasy.plugins.delegates.MediaTypeHeaderDelegate
-
- All Implemented Interfaces:
javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<javax.ws.rs.core.MediaType>
public class MediaTypeHeaderDelegate extends Object implements javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<javax.ws.rs.core.MediaType>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description static MediaTypeHeaderDelegateINSTANCE
-
Constructor Summary
Constructors Constructor Description MediaTypeHeaderDelegate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclearCache()javax.ws.rs.core.MediaTypefromString(String type)protected static booleanisValid(String str)static javax.ws.rs.core.MediaTypeparse(String type)static booleanquoted(String str)StringtoString(javax.ws.rs.core.MediaType type)
-
-
-
Field Detail
-
INSTANCE
public static final MediaTypeHeaderDelegate INSTANCE
-
-
Method Detail
-
fromString
public javax.ws.rs.core.MediaType fromString(String type) throws IllegalArgumentException
- Specified by:
fromStringin interfacejavax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<javax.ws.rs.core.MediaType>- Throws:
IllegalArgumentException
-
isValid
protected static boolean isValid(String str)
-
parse
public static javax.ws.rs.core.MediaType parse(String type)
-
quoted
public static boolean quoted(String str)
-
toString
public String toString(javax.ws.rs.core.MediaType type)
- Specified by:
toStringin interfacejavax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<javax.ws.rs.core.MediaType>
-
clearCache
public static void clearCache()
-
-