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