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.HeaderDelegate
T
.fromString
in interface RuntimeDelegate.HeaderDelegate
type
- 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.HeaderDelegate
toString
in interface RuntimeDelegate.HeaderDelegate
o
- the value of type T
.Copyright © 2019 JBoss by Red Hat. All rights reserved.