org.jclouds.openstack.swift.functions
Class ParseObjectInfoListFromJsonResponse

java.lang.Object
  extended by org.jclouds.http.functions.ParseJson<PageSet<ObjectInfo>>
      extended by org.jclouds.openstack.swift.functions.ParseObjectInfoListFromJsonResponse
All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,PageSet<ObjectInfo>>, InvocationContext<ParseObjectInfoListFromJsonResponse>

public class ParseObjectInfoListFromJsonResponse
extends ParseJson<PageSet<ObjectInfo>>
implements InvocationContext<ParseObjectInfoListFromJsonResponse>

This parses ObjectInfo from a gson string.

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.http.functions.ParseJson
json, logger, type
 
Constructor Summary
ParseObjectInfoListFromJsonResponse(Json json, javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilders)
           
 
Method Summary
 PageSet<ObjectInfo> apply(InputStream stream)
           
 ParseObjectInfoListFromJsonResponse setContext(HttpRequest request)
           
 
Methods inherited from class org.jclouds.http.functions.ParseJson
apply, apply
 
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
 

Constructor Detail

ParseObjectInfoListFromJsonResponse

@Inject
public ParseObjectInfoListFromJsonResponse(Json json,
                                                  javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilders)
Method Detail

apply

public PageSet<ObjectInfo> apply(InputStream stream)
Overrides:
apply in class ParseJson<PageSet<ObjectInfo>>

setContext

public ParseObjectInfoListFromJsonResponse setContext(HttpRequest request)
Specified by:
setContext in interface InvocationContext<ParseObjectInfoListFromJsonResponse>


Copyright © 2009-2012 jclouds. All Rights Reserved.