@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) |
boolean |
supports(Class<?> type)
Ascertain if the Provider supports a particular type.
|
String |
toString(Cookie cookie) |
public boolean supports(Class<?> type)
HeaderDelegateProvider
supports
in interface HeaderDelegateProvider<Cookie>
type
- the type that is to be supported.public String toString(Cookie cookie)
toString
in interface RuntimeDelegate.HeaderDelegate<Cookie>
public Cookie fromString(String header)
fromString
in interface RuntimeDelegate.HeaderDelegate<Cookie>
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.