Class CacheControlDelegate
- java.lang.Object
-
- org.jboss.resteasy.plugins.delegates.CacheControlDelegate
-
- All Implemented Interfaces:
RuntimeDelegate.HeaderDelegate<CacheControl>
public class CacheControlDelegate extends Object implements RuntimeDelegate.HeaderDelegate<CacheControl>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description static CacheControlDelegateINSTANCE
-
Constructor Summary
Constructors Constructor Description CacheControlDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheControlfromString(String value)Parse the supplied value and create an instance ofT.StringtoString(CacheControl value)Convert the supplied value to a String.
-
-
-
Field Detail
-
INSTANCE
public static final CacheControlDelegate INSTANCE
-
-
Method Detail
-
fromString
public CacheControl fromString(String value) throws IllegalArgumentException
Description copied from interface:RuntimeDelegate.HeaderDelegateParse the supplied value and create an instance ofT.- Specified by:
fromStringin interfaceRuntimeDelegate.HeaderDelegate<CacheControl>- Parameters:
value- the string value.- Returns:
- the newly created instance of
T. - Throws:
IllegalArgumentException- if the supplied string cannot be parsed or isnull.
-
toString
public String toString(CacheControl value)
Description copied from interface:RuntimeDelegate.HeaderDelegateConvert the supplied value to a String.- Specified by:
toStringin interfaceRuntimeDelegate.HeaderDelegate<CacheControl>- Parameters:
value- the value of typeT.- Returns:
- a String representation of the value.
-
-