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
 java.lang.String getBuiltBy()
          Who built this release?
 java.lang.String getCompatibleSinceVersion()
           
 java.util.List<HPI.Dependency> getDependencies()
           
 java.util.List<HPI.Developer> getDevelopers()
           
 java.lang.String getDisplayName()
           
 java.lang.String getRequiredHudsonVersion()
           
 java.lang.String getSandboxStatus()
           
 java.net.URL getURL()
          Download a plugin via more intuitive URL.
 
Methods inherited from class org.jvnet.hudson.update_center.MavenArtifact
getManifestAttributes, getTimestamp, getVersion, resolve, resolvePOM, toJSON
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 java.net.URL getURL()
                    throws java.net.MalformedURLException
Download a plugin via more intuitive URL. This also helps us track download counts.

Overrides:
getURL in class MavenArtifact
Throws:
java.net.MalformedURLException

getBuiltBy

public java.lang.String getBuiltBy()
                            throws java.io.IOException
Who built this release?

Throws:
java.io.IOException

getRequiredHudsonVersion

public java.lang.String getRequiredHudsonVersion()
                                          throws java.io.IOException
Throws:
java.io.IOException

getCompatibleSinceVersion

public java.lang.String getCompatibleSinceVersion()
                                           throws java.io.IOException
Throws:
java.io.IOException

getDisplayName

public java.lang.String getDisplayName()
                                throws java.io.IOException
Throws:
java.io.IOException

getSandboxStatus

public java.lang.String getSandboxStatus()
                                  throws java.io.IOException
Throws:
java.io.IOException

getDependencies

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

getDevelopers

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


Copyright © 2010. All Rights Reserved.