Package org.jclouds.date.internal
Class DateServiceDateCodecFactory.DateServiceRfc822Codec
- java.lang.Object
-
- org.jclouds.date.internal.DateServiceDateCodecFactory.DateServiceRfc822Codec
-
- All Implemented Interfaces:
DateCodec
- Enclosing class:
- DateServiceDateCodecFactory
@Singleton public static class DateServiceDateCodecFactory.DateServiceRfc822Codec extends Object implements DateCodec
-
-
Field Summary
Fields Modifier and Type Field Description protected DateService
dateService
-
Constructor Summary
Constructors Constructor Description DateServiceRfc822Codec(DateService dateService)
-
-
-
Field Detail
-
dateService
protected final DateService dateService
-
-
Constructor Detail
-
DateServiceRfc822Codec
@Inject public DateServiceRfc822Codec(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
-
-