Class CacheControlProvider
- java.lang.Object
-
- org.glassfish.jersey.message.internal.CacheControlProvider
-
- All Implemented Interfaces:
RuntimeDelegate.HeaderDelegate<CacheControl>,HeaderDelegateProvider<CacheControl>
@Singleton public final class CacheControlProvider extends Object implements HeaderDelegateProvider<CacheControl>
Cache-Controlheader delegate provider.- Author:
- Paul Sandoz, Marek Potociar, hubick@java.net
-
-
Constructor Summary
Constructors Constructor Description CacheControlProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheControlfromString(String header)Parse the supplied value and create an instance ofT.booleansupports(Class<?> type)Ascertain if the Provider supports a particular type.StringtoString(CacheControl header)Convert the supplied value to a String.
-
-
-
Method Detail
-
supports
public boolean supports(Class<?> type)
Description copied from interface:HeaderDelegateProviderAscertain if the Provider supports a particular type.- Specified by:
supportsin interfaceHeaderDelegateProvider<CacheControl>- Parameters:
type- the type that is to be supported.- Returns:
- true if the type is supported, otherwise false.
-
toString
public String toString(CacheControl header)
Description copied from interface:RuntimeDelegate.HeaderDelegateConvert the supplied value to a String.- Specified by:
toStringin interfaceRuntimeDelegate.HeaderDelegate<CacheControl>- Parameters:
header- the value of typeT.- Returns:
- a String representation of the value.
-
fromString
public CacheControl fromString(String header)
Description copied from interface:RuntimeDelegate.HeaderDelegateParse the supplied value and create an instance ofT.- Specified by:
fromStringin interfaceRuntimeDelegate.HeaderDelegate<CacheControl>- Parameters:
header- the string value.- Returns:
- the newly created instance of
T.
-
-