Class MediaTypeHeaderDelegate
- java.lang.Object
-
- org.jboss.resteasy.reactive.common.headers.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>
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description static MediaTypeHeaderDelegate
INSTANCE
-
Constructor Summary
Constructors Constructor Description MediaTypeHeaderDelegate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.MediaType
fromString(String type)
protected static boolean
isValid(String str)
static javax.ws.rs.core.MediaType
parse(String type)
static boolean
quoted(String str)
String
toString(javax.ws.rs.core.MediaType o)
-
-
-
Field Detail
-
INSTANCE
public static final MediaTypeHeaderDelegate INSTANCE
-
-
Method Detail
-
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)
-
fromString
public javax.ws.rs.core.MediaType fromString(String type) throws IllegalArgumentException
- Specified by:
fromString
in interfacejavax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<javax.ws.rs.core.MediaType>
- Throws:
IllegalArgumentException
-
toString
public String toString(javax.ws.rs.core.MediaType o)
- Specified by:
toString
in interfacejavax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<javax.ws.rs.core.MediaType>
-
-