Package org.jclouds.cloudstack.config
Class CloudStackParserModule.CloudStackDateAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<Date>
-
- org.jclouds.json.config.GsonModule.DateAdapter
-
- org.jclouds.json.config.GsonModule.Iso8601DateAdapter
-
- org.jclouds.cloudstack.config.CloudStackParserModule.CloudStackDateAdapter
-
- Enclosing class:
- CloudStackParserModule
public static class CloudStackParserModule.CloudStackDateAdapter extends GsonModule.Iso8601DateAdapter
Data adapter for the date formats used by CloudStack. Essentially this is a workaround for the CloudStack getUsage() API call returning a corrupted form of ISO-8601 dates, which have an unexpected pair of apostrophes, like 2011-12-12'T'00:00:00+00:00
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
read(com.google.gson.stream.JsonReader reader)
-
Methods inherited from class org.jclouds.json.config.GsonModule.Iso8601DateAdapter
parseDate, write
-
-
-
-
Method Detail
-
read
public Date read(com.google.gson.stream.JsonReader reader) throws IOException
- Overrides:
read
in classGsonModule.Iso8601DateAdapter
- Throws:
IOException
-
-