org.sonatype.tycho.p2.maven.repository
Class MavenArtifactRepository

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.equinox.p2.repository.spi.AbstractRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
          extended by org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
              extended by org.sonatype.tycho.p2.maven.repository.AbstractMavenArtifactRepository
                  extended by org.sonatype.tycho.p2.maven.repository.MavenArtifactRepository
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository, org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>

public class MavenArtifactRepository
extends AbstractMavenArtifactRepository


Field Summary
 
Fields inherited from class org.sonatype.tycho.p2.maven.repository.AbstractMavenArtifactRepository
descriptors, descriptorsMap, VERSION
 
Fields inherited from interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
CODE_RETRY
 
Fields inherited from interface org.eclipse.equinox.p2.repository.IRepository
ENABLED, NONE, PREFERENCE_NODE, PROP_COMPRESSED, PROP_DESCRIPTION, PROP_MIRRORS_BASE_URL, PROP_MIRRORS_URL, PROP_NAME, PROP_NICKNAME, PROP_PASSWORD, PROP_SYSTEM, PROP_TIMESTAMP, PROP_USERNAME, TYPE_ARTIFACT, TYPE_METADATA
 
Constructor Summary
MavenArtifactRepository(java.net.URI location, TychoRepositoryIndex projectIndex, RepositoryReader contentLocator)
           
 
Method Summary
 org.eclipse.core.runtime.IStatus getArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, java.io.OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 org.eclipse.core.runtime.IStatus getArtifacts(org.eclipse.equinox.p2.repository.artifact.IArtifactRequest[] requests, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 java.net.URI getLocation(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
           
 java.io.OutputStream getOutputStream(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
           
 org.eclipse.core.runtime.IStatus getRawArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, java.io.OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 java.lang.String getRelativePath(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
           
 org.eclipse.core.runtime.IStatus resolve(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
           
 
Methods inherited from class org.sonatype.tycho.p2.maven.repository.AbstractMavenArtifactRepository
addDescriptor, contains, contains, descriptorQueryable, getArtifactDescriptors, getContentLocator, getGAV, getP2GAV, loadMaven, query
 
Methods inherited from class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
addDescriptors, createArtifactDescriptor, createArtifactKey, equals, executeBatch, hashCode, removeAll, removeDescriptor, removeDescriptor
 
Methods inherited from class org.eclipse.equinox.p2.repository.spi.AbstractRepository
assertModifiable, getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setDescription, setLocation, setName, setProperties, setProperty, setProvider, setType, setVersion
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.equinox.p2.repository.IRepository
getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setProperty
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

MavenArtifactRepository

public MavenArtifactRepository(java.net.URI location,
                               TychoRepositoryIndex projectIndex,
                               RepositoryReader contentLocator)
Method Detail

getArtifact

public org.eclipse.core.runtime.IStatus getArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor,
                                                    java.io.OutputStream destination,
                                                    org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
getArtifact in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
Specified by:
getArtifact in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository

getRawArtifact

public org.eclipse.core.runtime.IStatus getRawArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor,
                                                       java.io.OutputStream destination,
                                                       org.eclipse.core.runtime.IProgressMonitor monitor)

getArtifacts

public org.eclipse.core.runtime.IStatus getArtifacts(org.eclipse.equinox.p2.repository.artifact.IArtifactRequest[] requests,
                                                     org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
getArtifacts in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
Specified by:
getArtifacts in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository

getOutputStream

public java.io.OutputStream getOutputStream(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
                                     throws org.eclipse.equinox.p2.core.ProvisionException
Specified by:
getOutputStream in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
Specified by:
getOutputStream in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
Throws:
org.eclipse.equinox.p2.core.ProvisionException

resolve

public org.eclipse.core.runtime.IStatus resolve(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Specified by:
resolve in class AbstractMavenArtifactRepository

getRelativePath

public java.lang.String getRelativePath(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)

getLocation

public java.net.URI getLocation(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)


Copyright © 2008-2011. All Rights Reserved.