Package org.jclouds.chef.functions
Class ParseSearchDatabagFromJson
- java.lang.Object
-
- org.jclouds.chef.functions.ParseSearchDatabagFromJson
-
- All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,SearchResult<DatabagItem>>
,Function<HttpResponse,SearchResult<DatabagItem>>
@Singleton public class ParseSearchDatabagFromJson extends Object implements com.google.common.base.Function<HttpResponse,SearchResult<DatabagItem>>
Parses the search result into aDatabagItem
object.When searching databags, the items are contained inside the
raw_data
list.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResult<DatabagItem>
apply(HttpResponse response)
-
-
-
Method Detail
-
apply
public SearchResult<DatabagItem> apply(HttpResponse response)
- Specified by:
apply
in interfacecom.google.common.base.Function<HttpResponse,SearchResult<DatabagItem>>
- Specified by:
apply
in interfaceFunction<HttpResponse,SearchResult<DatabagItem>>
-
-