Class CookieProvider
- java.lang.Object
-
- org.glassfish.jersey.message.internal.CookieProvider
-
- All Implemented Interfaces:
RuntimeDelegate.HeaderDelegate<Cookie>
,HeaderDelegateProvider<Cookie>
@Singleton public class CookieProvider extends Object implements HeaderDelegateProvider<Cookie>
RequestCookie
header delegate provider
.- Author:
- Paul Sandoz, Marek Potociar
-
-
Constructor Summary
Constructors Constructor Description CookieProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cookie
fromString(String header)
boolean
supports(Class<?> type)
Ascertain if the Provider supports a particular type.String
toString(Cookie cookie)
-
-
-
Method Detail
-
supports
public boolean supports(Class<?> type)
Description copied from interface:HeaderDelegateProvider
Ascertain if the Provider supports a particular type.- Specified by:
supports
in interfaceHeaderDelegateProvider<Cookie>
- Parameters:
type
- the type that is to be supported.- Returns:
- true if the type is supported, otherwise false.
-
toString
public String toString(Cookie cookie)
- Specified by:
toString
in interfaceRuntimeDelegate.HeaderDelegate<Cookie>
-
fromString
public Cookie fromString(String header)
- Specified by:
fromString
in interfaceRuntimeDelegate.HeaderDelegate<Cookie>
-
-