@Singleton public class DateProvider extends Object implements HeaderDelegateProvider<Date>
Date
header delegate provider
.Constructor and Description |
---|
DateProvider() |
Modifier and Type | Method and Description |
---|---|
Date |
fromString(String header) |
boolean |
supports(Class<?> type)
Ascertain if the Provider supports a particular type.
|
String |
toString(Date header) |
public boolean supports(Class<?> type)
HeaderDelegateProvider
supports
in interface HeaderDelegateProvider<Date>
type
- the type that is to be supported.public String toString(Date header)
toString
in interface javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<Date>
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.