org.apache.shindig.gadgets.preload
Class HttpPreloader
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpPreloader
@Inject
public HttpPreloader(RequestPipeline requestPipeline)
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.