Class DateHeaderDelegate
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.spi.DateHeaderDelegate
-
- All Implemented Interfaces:
javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<java.util.Date>
@Deprecated public class DateHeaderDelegate extends java.lang.Object implements javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<java.util.Date>Deprecated.Will be removed in next minor release.RuntimeDelegate.HeaderDelegateforMediaType.
-
-
Constructor Summary
Constructors Constructor Description DateHeaderDelegate()Deprecated.Obtain an instance of a HeaderDelegate for the MediTape class.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.DatefromString(java.lang.String date)Deprecated.Parse the supplied value and create an instance ofT.java.lang.StringtoString(java.util.Date date)Deprecated.Convert the supplied value to a String.
-
-
-
Method Detail
-
fromString
public java.util.Date fromString(java.lang.String date) throws java.lang.IllegalArgumentExceptionDeprecated.Parse the supplied value and create an instance ofT.- Specified by:
fromStringin interfacejavax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<java.util.Date>- Parameters:
contentType- the contentType- Returns:
- the newly created instance of
T - Throws:
java.lang.IllegalArgumentException- if the supplied string cannot be parsed- See Also:
RuntimeDelegate.HeaderDelegate.fromString(java.lang.String)
-
toString
public java.lang.String toString(java.util.Date date)
Deprecated.Convert the supplied value to a String.- Specified by:
toStringin interfacejavax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<java.util.Date>- Parameters:
value- the value of typeT- Returns:
- a String representation of the value
- Throws:
java.lang.IllegalArgumentException- if the supplied object cannot be serialized- See Also:
RuntimeDelegate.HeaderDelegate.toString(java.lang.Object)
-
-