T
- a JAX-RS type that corresponds to the value of a HTTP header.public static interface RuntimeDelegate.HeaderDelegate<T>
T
.Modifier and Type | Method and Description |
---|---|
T |
fromString(java.lang.String value)
Parse the supplied value and create an instance of
T . |
java.lang.String |
toString(T value)
Convert the supplied value to a String.
|
T fromString(java.lang.String value)
T
.value
- the string value.T
.java.lang.IllegalArgumentException
- if the supplied string cannot be parsed or is null
.java.lang.String toString(T value)
value
- the value of type T
.java.lang.IllegalArgumentException
- if the supplied object cannot be serialized or is null
.