public class CookieHeaderDelegate extends Object implements RuntimeDelegate.HeaderDelegate<Cookie>
Constructor and Description |
---|
CookieHeaderDelegate() |
Modifier and Type | Method and Description |
---|---|
Cookie |
fromString(String value)
Parse the supplied value and create an instance of
T . |
String |
toString(Cookie value)
Convert the supplied value to a String.
|
public Cookie fromString(String value) throws IllegalArgumentException
RuntimeDelegate.HeaderDelegate
T
.fromString
in interface RuntimeDelegate.HeaderDelegate<Cookie>
value
- the string value.T
.IllegalArgumentException
- if the supplied string cannot be
parsed or is null
.public String toString(Cookie value)
RuntimeDelegate.HeaderDelegate
toString
in interface RuntimeDelegate.HeaderDelegate<Cookie>
value
- the value of type T
.Copyright © 2021 JBoss by Red Hat. All rights reserved.