@Singleton public class CookieProvider extends Object implements HeaderDelegateProvider<Cookie>
Cookie header delegate provider.| Constructor and Description |
|---|
CookieProvider() |
| Modifier and Type | Method and Description |
|---|---|
Cookie |
fromString(String header)
Parse the supplied value and create an instance of
T. |
boolean |
supports(Class<?> type)
Ascertain if the Provider supports a particular type.
|
String |
toString(Cookie cookie)
Convert the supplied value to a String.
|
public boolean supports(Class<?> type)
HeaderDelegateProvidersupports in interface HeaderDelegateProvider<Cookie>type - the type that is to be supported.public String toString(Cookie cookie)
RuntimeDelegate.HeaderDelegatetoString in interface RuntimeDelegate.HeaderDelegate<Cookie>cookie - the value of type T.public Cookie fromString(String header)
RuntimeDelegate.HeaderDelegateT.fromString in interface RuntimeDelegate.HeaderDelegate<Cookie>header - the string value.T.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.