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>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParseFirstJsonValueNamed
(GsonWrapper json, com.google.inject.TypeLiteral<T> type, String... nameChoices) -
Method Summary
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 Details
-
logger
-
-
Constructor Details
-
ParseFirstJsonValueNamed
public ParseFirstJsonValueNamed(GsonWrapper json, com.google.inject.TypeLiteral<T> type, String... nameChoices) - Parameters:
nameChoices
- tried in order, first match wins
-
-
Method Details
-
apply
- Specified by:
apply
in interfacecom.google.common.base.Function<HttpResponse,
T> - Specified by:
apply
in interfaceFunction<HttpResponse,
T>
-