org.jclouds.http.functions
Class ParseFirstJsonValueNamed<T>

java.lang.Object
  extended by org.jclouds.http.functions.ParseFirstJsonValueNamed<T>
All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,T>

public class ParseFirstJsonValueNamed<T>
extends Object
implements com.google.common.base.Function<HttpResponse,T>

Author:
Adrian Cole

Constructor Summary
ParseFirstJsonValueNamed(GsonWrapper json, com.google.inject.TypeLiteral<T> type, String name)
           
 
Method Summary
 T apply(HttpResponse arg0)
           
protected  boolean nnn(String toFind, com.google.gson.stream.JsonReader reader, com.google.gson.stream.JsonToken token, AtomicReference<String> name)
           
protected  T nothing()
           
 com.google.gson.stream.JsonToken skipAndPeek(com.google.gson.stream.JsonToken token, com.google.gson.stream.JsonReader reader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

ParseFirstJsonValueNamed

public ParseFirstJsonValueNamed(GsonWrapper json,
                                com.google.inject.TypeLiteral<T> type,
                                String name)
Method Detail

apply

public T apply(HttpResponse arg0)
Specified by:
apply in interface com.google.common.base.Function<HttpResponse,T>

nothing

protected T nothing()

nnn

protected boolean nnn(String toFind,
                      com.google.gson.stream.JsonReader reader,
                      com.google.gson.stream.JsonToken token,
                      AtomicReference<String> name)
               throws IOException
Throws:
IOException

skipAndPeek

public com.google.gson.stream.JsonToken skipAndPeek(com.google.gson.stream.JsonToken token,
                                                    com.google.gson.stream.JsonReader reader)
                                             throws IOException
Throws:
IOException


Copyright © 2009-2011 jclouds. All Rights Reserved.