public class MediaTypeHeaderDelegate extends Object implements RuntimeDelegate.HeaderDelegate
| Constructor and Description |
|---|
MediaTypeHeaderDelegate() |
| Modifier and Type | Method and Description |
|---|---|
Object |
fromString(String type)
Parse the supplied value and create an instance of
T. |
protected static boolean |
isValid(String str) |
static MediaType |
parse(String type) |
static boolean |
quoted(String str) |
String |
toString(Object o)
Convert the supplied value to a String.
|
public Object fromString(String type) throws IllegalArgumentException
RuntimeDelegate.HeaderDelegateT.fromString in interface RuntimeDelegate.HeaderDelegatetype - the string value.T.IllegalArgumentException - if the supplied string cannot be
parsed or is null.protected static boolean isValid(String str)
public static boolean quoted(String str)
public String toString(Object o)
RuntimeDelegate.HeaderDelegatetoString in interface RuntimeDelegate.HeaderDelegateo - the value of type T.Copyright © 2018 JBoss by Red Hat. All rights reserved.