org.jclouds.chef.functions
Class ParseSearchDatabagFromJson

java.lang.Object
  extended by org.jclouds.chef.functions.ParseSearchDatabagFromJson
All Implemented Interfaces:
com.google.common.base.Function<org.jclouds.http.HttpResponse,SearchResult<DatabagItem>>

@Singleton
public class ParseSearchDatabagFromJson
extends Object
implements com.google.common.base.Function<org.jclouds.http.HttpResponse,SearchResult<DatabagItem>>

Parses the search result into a DatabagItem object.

When searching databags, the items are contained inside the raw_data list.


Method Summary
 SearchResult<DatabagItem> apply(org.jclouds.http.HttpResponse response)
           
 
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
 

Method Detail

apply

public SearchResult<DatabagItem> apply(org.jclouds.http.HttpResponse response)
Specified by:
apply in interface com.google.common.base.Function<org.jclouds.http.HttpResponse,SearchResult<DatabagItem>>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.