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