org.jclouds.rimuhosting.miro.config
Class RimuHostingRestClientModule.RimuIso8601DateAdapter

java.lang.Object
  extended by org.jclouds.rimuhosting.miro.config.RimuHostingRestClientModule.RimuIso8601DateAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Date>, com.google.gson.JsonSerializer<Date>, GsonModule.DateAdapter
Enclosing class:
RimuHostingRestClientModule

@Singleton
public static class RimuHostingRestClientModule.RimuIso8601DateAdapter
extends Object
implements GsonModule.DateAdapter


Method Summary
 Date deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
           
 com.google.gson.JsonElement serialize(Date src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

serialize

public com.google.gson.JsonElement serialize(Date src,
                                             Type typeOfSrc,
                                             com.google.gson.JsonSerializationContext context)
Specified by:
serialize in interface com.google.gson.JsonSerializer<Date>

deserialize

public Date deserialize(com.google.gson.JsonElement json,
                        Type typeOfT,
                        com.google.gson.JsonDeserializationContext context)
                 throws com.google.gson.JsonParseException
Specified by:
deserialize in interface com.google.gson.JsonDeserializer<Date>
Throws:
com.google.gson.JsonParseException


Copyright © 2009-2011 jclouds. All Rights Reserved.