|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- a JAX-RS type that corresponds to the value of a HTTP headerpublic static interface RuntimeDelegate.HeaderDelegate<T>
Defines the contract for a delegate that is responsible for
converting between the String form of a HTTP header and
the corresponding JAX-RS type T
.
Method Summary | |
---|---|
T |
fromString(String value)
Parse the supplied value and create an instance of T . |
String |
toString(T value)
Convert the supplied value to a String. |
Method Detail |
---|
T fromString(String value) throws IllegalArgumentException
T
.
value
- the string value
T
IllegalArgumentException
- if the supplied string cannot be
parsed or is nullString toString(T value) throws IllegalArgumentException
value
- the value of type T
IllegalArgumentException
- if the supplied object cannot be
serialized or is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |