hudson.model
Class DownloadService

java.lang.Object
  extended by hudson.model.Descriptor<PageDecorator>
      extended by hudson.model.PageDecorator
          extended by hudson.model.DownloadService
All Implemented Interfaces:
ExtensionPoint, Describable<PageDecorator>, Saveable

@Extension
public class DownloadService
extends PageDecorator

Service for plugins to periodically retrieve update data files (like the one in the update center) through browsers.

Because the retrieval of the file goes through XmlHttpRequest, we cannot reliably pass around binary.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class DownloadService.Downloadable
          Represents a periodically updated JSON data file obtained from a remote URL.
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static boolean neverUpdate
           
static boolean signatureCheck
          Off by default until we know this is reasonably working.
 
Fields inherited from class hudson.model.PageDecorator
ALL
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
DownloadService()
           
 
Method Summary
 String generateFragment()
          Builds up an HTML fragment that starts all the download jobs.
 DownloadService.Downloadable getById(String id)
          Gets DownloadService.Downloadable by its ID.
 
Methods inherited from class hudson.model.PageDecorator
all, getDescriptor, getDisplayName, getUrl
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

neverUpdate

public static boolean neverUpdate

signatureCheck

public static boolean signatureCheck
Off by default until we know this is reasonably working.

Constructor Detail

DownloadService

public DownloadService()
Method Detail

generateFragment

public String generateFragment()
Builds up an HTML fragment that starts all the download jobs.


getById

public DownloadService.Downloadable getById(String id)
Gets DownloadService.Downloadable by its ID. Used to bind them to URL.



Copyright © 2004-2013. All Rights Reserved.