|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.resteasy.plugins.delegates.MediaTypeHeaderDelegate
public class MediaTypeHeaderDelegate
Constructor Summary | |
---|---|
MediaTypeHeaderDelegate()
|
Method Summary | |
---|---|
Object |
fromString(String type)
Parse the supplied value and create an instance of T . |
static MediaType |
parse(String type)
|
String |
toString(Object o)
Convert the supplied value to a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MediaTypeHeaderDelegate()
Method Detail |
---|
public Object fromString(String type) throws IllegalArgumentException
RuntimeDelegate.HeaderDelegate
T
.
fromString
in interface RuntimeDelegate.HeaderDelegate
type
- the string value
T
IllegalArgumentException
- if the supplied string cannot be
parsed or is nullpublic static MediaType parse(String type)
public String toString(Object o)
RuntimeDelegate.HeaderDelegate
toString
in interface RuntimeDelegate.HeaderDelegate
o
- the value of type T
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |