org.apache.shindig.gadgets.preload
Class HttpPreloader

java.lang.Object
  extended by org.apache.shindig.gadgets.preload.HttpPreloader
All Implemented Interfaces:
Preloader

public class HttpPreloader
extends Object
implements Preloader

Handles HTTP Preloading (/ModulePrefs/Preload elements).

See Also:
Preload

Constructor Summary
HttpPreloader(RequestPipeline requestPipeline)
           
 
Method Summary
 Collection<Callable<PreloadedData>> createPreloadTasks(Gadget gadget)
          Create new preload tasks for the provided gadget.
static HttpRequest newHttpRequest(GadgetContext context, RequestAuthenticationInfo authenticationInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpPreloader

@Inject
public HttpPreloader(RequestPipeline requestPipeline)
Method Detail

createPreloadTasks

public Collection<Callable<PreloadedData>> createPreloadTasks(Gadget gadget)
Description copied from interface: Preloader
Create new preload tasks for the provided gadget.

Specified by:
createPreloadTasks in interface Preloader
Parameters:
gadget - The gadget that the operations will be performed for.
Returns:
Preloading tasks that will be executed by PreloaderService#.

newHttpRequest

public static HttpRequest newHttpRequest(GadgetContext context,
                                         RequestAuthenticationInfo authenticationInfo)
                                  throws GadgetException
Throws:
GadgetException


Copyright © 2007-2012. All Rights Reserved.