Package org.oxerr.commons.ws.rs.provider
Class InstantProvider
java.lang.Object
org.oxerr.commons.ws.rs.provider.InstantProvider
- All Implemented Interfaces:
javax.ws.rs.ext.ParamConverterProvider
@Provider
@Singleton
public class InstantProvider
extends Object
implements javax.ws.rs.ext.ParamConverterProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Instant
fromString
(String value) <T> javax.ws.rs.ext.ParamConverter<T>
getConverter
(Class<T> rawType, Type genericType, Annotation[] annotations) static <T> String
toString
(T value)
-
Constructor Details
-
InstantProvider
public InstantProvider()
-
-
Method Details
-
getConverter
public <T> javax.ws.rs.ext.ParamConverter<T> getConverter(Class<T> rawType, Type genericType, Annotation[] annotations) - Specified by:
getConverter
in interfacejavax.ws.rs.ext.ParamConverterProvider
-
fromString
-
toString
- Throws:
IllegalArgumentException
-