org.jvnet.hudson.update_center
Class HPI

java.lang.Object
  extended by org.jvnet.hudson.update_center.MavenArtifact
      extended by org.jvnet.hudson.update_center.HPI

public class HPI
extends MavenArtifact

A particular version of a plugin and its metadata.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class HPI.Dependency
           
static class HPI.Developer
           
 
Field Summary
 PluginHistory history
          Which of the lineage did this come from?
 
Fields inherited from class org.jvnet.hudson.update_center.MavenArtifact
artifact, repository, version
 
Constructor Summary
HPI(MavenRepository repository, PluginHistory history, org.sonatype.nexus.index.ArtifactInfo artifact)
           
 
Method Summary
 String getBuiltBy()
          Who built this release?
 String getCompatibleSinceVersion()
           
 List<HPI.Dependency> getDependencies()
           
 List<HPI.Developer> getDevelopers()
           
 String getDisplayName()
           
 String getRequiredHudsonVersion()
          Deprecated. Most probably you should be using getRequiredJenkinsVersion()
 String getRequiredJenkinsVersion()
           
 String getSandboxStatus()
           
 URL getURL()
          Download a plugin via more intuitive URL.
 
Methods inherited from class org.jvnet.hudson.update_center.MavenArtifact
getDateFormat, getManifestAttributes, getTimestamp, getTimestampAsDate, getTimestampAsString, getVersion, resolve, resolvePOM, toJSON, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

history

public final PluginHistory history
Which of the lineage did this come from?

Constructor Detail

HPI

public HPI(MavenRepository repository,
           PluginHistory history,
           org.sonatype.nexus.index.ArtifactInfo artifact)
    throws org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
Throws:
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
Method Detail

getURL

public URL getURL()
           throws MalformedURLException
Download a plugin via more intuitive URL. This also helps us track download counts.

Overrides:
getURL in class MavenArtifact
Throws:
MalformedURLException

getBuiltBy

public String getBuiltBy()
                  throws IOException
Who built this release?

Throws:
IOException

getRequiredHudsonVersion

public String getRequiredHudsonVersion()
                                throws IOException
Deprecated. Most probably you should be using getRequiredJenkinsVersion()

Throws:
IOException

getRequiredJenkinsVersion

public String getRequiredJenkinsVersion()
                                 throws IOException
Throws:
IOException

getCompatibleSinceVersion

public String getCompatibleSinceVersion()
                                 throws IOException
Throws:
IOException

getDisplayName

public String getDisplayName()
                      throws IOException
Throws:
IOException

getSandboxStatus

public String getSandboxStatus()
                        throws IOException
Throws:
IOException

getDependencies

public List<HPI.Dependency> getDependencies()
                                     throws IOException
Throws:
IOException

getDevelopers

public List<HPI.Developer> getDevelopers()
                                  throws IOException
Throws:
IOException


Copyright © 2004-2011. All Rights Reserved.