com.cloudbees.jenkins.plugins.enterpriseplugins
Class CloudBeesUpdateSite

java.lang.Object
  extended by hudson.model.UpdateSite
      extended by com.cloudbees.jenkins.plugins.enterpriseplugins.CloudBeesUpdateSite

public class CloudBeesUpdateSite
extends hudson.model.UpdateSite

An update site that uses the CloudBees certificate for signing.


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.UpdateSite
hudson.model.UpdateSite.Data, hudson.model.UpdateSite.Entry, hudson.model.UpdateSite.Plugin
 
Field Summary
 
Fields inherited from class hudson.model.UpdateSite
neverUpdate
 
Constructor Summary
CloudBeesUpdateSite(String id, String url)
          Constructor.
 
Method Summary
 hudson.util.FormValidation doPostBack(org.kohsuke.stapler.StaplerRequest req)
          This is the endpoint that receives the update center data file from the browser.
 hudson.util.FormValidation doVerifySignature()
           
 long getDataTimestamp()
          returns the data timestamp.
 String getDownloadUrl()
           
 boolean isDue()
          
 
Methods inherited from class hudson.model.UpdateSite
doInvalidateData, getApi, getAvailables, getConnectionCheckUrl, getData, getId, getJSONObject, getPlugin, getUpdates, getUrl, hasUpdates, isLegacyDefault, updateDirectly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloudBeesUpdateSite

public CloudBeesUpdateSite(String id,
                           String url)
Constructor.

Parameters:
id - the ID of the update site.
url - the url of the update site.
Method Detail

getDataTimestamp

public long getDataTimestamp()
returns the data timestamp.

Overrides:
getDataTimestamp in class hudson.model.UpdateSite
Returns:

getDownloadUrl

public String getDownloadUrl()
Overrides:
getDownloadUrl in class hudson.model.UpdateSite

doPostBack

public hudson.util.FormValidation doPostBack(org.kohsuke.stapler.StaplerRequest req)
                                      throws IOException,
                                             GeneralSecurityException
This is the endpoint that receives the update center data file from the browser. Mirrors UpdateSite.doPostBack(org.kohsuke.stapler.StaplerRequest) as there is no other way to override the verification of the signature.

Overrides:
doPostBack in class hudson.model.UpdateSite
Throws:
IOException
GeneralSecurityException

doVerifySignature

public hudson.util.FormValidation doVerifySignature()
                                             throws IOException
Overrides:
doVerifySignature in class hudson.model.UpdateSite
Throws:
IOException

isDue

public boolean isDue()

Overrides:
isDue in class hudson.model.UpdateSite


Copyright © 2004-2013. All Rights Reserved.