org.jclouds.collect.internal
Class ArgsToPagedIterable.FromCaller<T,I extends ArgsToPagedIterable.FromCaller<T,I>>

java.lang.Object
  extended by org.jclouds.collect.internal.ArgsToPagedIterable<T,I>
      extended by org.jclouds.collect.internal.ArgsToPagedIterable.FromCaller<T,I>
All Implemented Interfaces:
com.google.common.base.Function<IterableWithMarker<T>,PagedIterable<T>>, InvocationContext<I>
Enclosing class:
ArgsToPagedIterable<T,I extends ArgsToPagedIterable<T,I>>

public abstract static class ArgsToPagedIterable.FromCaller<T,I extends ArgsToPagedIterable.FromCaller<T,I>>
extends ArgsToPagedIterable<T,I>

Sometimes the arguments in the invoked method do not provide enough information to fetch the next page of the result set. This, for example, is common in APIs dealing with several endpoints.

This class provides a way to propagate the arguments passed to the caller of the method, so they can be used to fetch the next page of the result set. For example, in the call api.getUserApiForZone(zone).list(), the caller arg0 is the value of zone, and the callee is UserApi.list()

See Also:
function in openstack-glance for a usage example.

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jclouds.collect.internal.ArgsToPagedIterable
ArgsToPagedIterable.FromCaller<T,I extends ArgsToPagedIterable.FromCaller<T,I>>
 
Field Summary
 
Fields inherited from class org.jclouds.collect.internal.ArgsToPagedIterable
request
 
Constructor Summary
ArgsToPagedIterable.FromCaller()
           
 
Method Summary
protected  List<Object> getArgs(GeneratedHttpRequest request)
           
 
Methods inherited from class org.jclouds.collect.internal.ArgsToPagedIterable
apply, markerToNextForArgs, setContext
 
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

ArgsToPagedIterable.FromCaller

public ArgsToPagedIterable.FromCaller()
Method Detail

getArgs

protected List<Object> getArgs(GeneratedHttpRequest request)
Overrides:
getArgs in class ArgsToPagedIterable<T,I extends ArgsToPagedIterable.FromCaller<T,I>>


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