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

Field Summary
protected  Logger logger
           
 
Constructor Summary
ParseFirstJsonValueNamed(GsonWrapper json, com.google.inject.TypeLiteral<T> type, String... nameChoices)
           
 
Method Summary
 T apply(HttpResponse arg0)
           
 
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
 

Field Detail

logger

protected Logger logger
Constructor Detail

ParseFirstJsonValueNamed

public ParseFirstJsonValueNamed(GsonWrapper json,
                                com.google.inject.TypeLiteral<T> type,
                                String... nameChoices)
Parameters:
nameChoices - tried in order, first match wins
Method Detail

apply

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


Copyright © 2009-2013 jclouds. All Rights Reserved.