Package org.jclouds.date.internal
Class DateServiceDateCodecFactory.DateServiceRfc1123Codec
- java.lang.Object
-
- org.jclouds.date.internal.DateServiceDateCodecFactory.DateServiceRfc1123Codec
-
- All Implemented Interfaces:
DateCodec
- Enclosing class:
- DateServiceDateCodecFactory
@Singleton public static class DateServiceDateCodecFactory.DateServiceRfc1123Codec extends Object implements DateCodec
-
-
Field Summary
Fields Modifier and Type Field Description protected DateService
dateService
-
Constructor Summary
Constructors Constructor Description DateServiceRfc1123Codec(DateService dateService)
-
-
-
Field Detail
-
dateService
protected final DateService dateService
-
-
Constructor Detail
-
DateServiceRfc1123Codec
@Inject public DateServiceRfc1123Codec(DateService dateService)
-
-
Method Detail
-
toDate
public Date toDate(String date) throws IllegalArgumentException
- Specified by:
toDate
in interfaceDateCodec
- Returns:
- parsed date
- Throws:
IllegalArgumentException
- if the input is invalid
-
-