Package org.jclouds.http.functions
Class ParseFirstJsonValueNamed<T>
- java.lang.Object
-
- org.jclouds.http.functions.ParseFirstJsonValueNamed<T>
-
- All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,T>
,Function<HttpResponse,T>
public class ParseFirstJsonValueNamed<T> extends Object implements com.google.common.base.Function<HttpResponse,T>
-
-
Constructor Summary
Constructors Constructor Description ParseFirstJsonValueNamed(GsonWrapper json, com.google.inject.TypeLiteral<T> type, String... nameChoices)
-
-
-
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 interfacecom.google.common.base.Function<HttpResponse,T>
- Specified by:
apply
in interfaceFunction<HttpResponse,T>
-
-