org.jclouds.oauth.v2.json
Class HeaderTypeAdapter

java.lang.Object
  extended by com.google.gson.TypeAdapter<Header>
      extended by org.jclouds.oauth.v2.json.HeaderTypeAdapter

public class HeaderTypeAdapter
extends com.google.gson.TypeAdapter<Header>

JSON TypeAdapter for the Header type. Simply transforms the field names.


Constructor Summary
HeaderTypeAdapter()
           
 
Method Summary
 Header read(com.google.gson.stream.JsonReader in)
           
 void write(com.google.gson.stream.JsonWriter out, Header value)
           
 
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderTypeAdapter

public HeaderTypeAdapter()
Method Detail

write

public void write(com.google.gson.stream.JsonWriter out,
                  Header value)
           throws IOException
Specified by:
write in class com.google.gson.TypeAdapter<Header>
Throws:
IOException

read

public Header read(com.google.gson.stream.JsonReader in)
            throws IOException
Specified by:
read in class com.google.gson.TypeAdapter<Header>
Throws:
IOException


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.