Class TychoRepositoryTransport

java.lang.Object
org.eclipse.equinox.internal.p2.repository.Transport
org.eclipse.tycho.p2maven.transport.TychoRepositoryTransport
All Implemented Interfaces:
org.eclipse.equinox.p2.core.spi.IAgentServiceFactory

@Component(role=org.eclipse.equinox.internal.p2.repository.Transport.class, hint="tycho") public class TychoRepositoryTransport extends org.eclipse.equinox.internal.p2.repository.Transport implements org.eclipse.equinox.p2.core.spi.IAgentServiceFactory
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.equinox.internal.p2.repository.Transport

    org.eclipse.equinox.internal.p2.repository.Transport.ProtocolRule
  • Field Summary

    Fields inherited from class org.eclipse.equinox.internal.p2.repository.Transport

    SERVICE_NAME

    Fields inherited from interface org.eclipse.equinox.p2.core.spi.IAgentServiceFactory

    PROP_CREATED_SERVICE_NAME, SERVICE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createService(org.eclipse.equinox.p2.core.IProvisioningAgent agent)
     
    org.eclipse.core.runtime.IStatus
    download(URI toDownload, OutputStream target, long startPos, org.eclipse.core.runtime.IProgressMonitor monitor)
     
    org.eclipse.core.runtime.IStatus
    download(URI toDownload, OutputStream target, org.eclipse.core.runtime.IProgressMonitor monitor)
     
    org.eclipse.core.runtime.IStatus
    downloadArtifact(URI source, OutputStream target, org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, org.eclipse.core.runtime.IProgressMonitor monitor)
     
     
    static Executor
     
    long
    getLastModified(URI toDownload, org.eclipse.core.runtime.IProgressMonitor monitor)
     
    stream(URI toDownload, org.eclipse.core.runtime.IProgressMonitor monitor)
     

    Methods inherited from class org.eclipse.equinox.internal.p2.repository.Transport

    getDefaultProtocolRules, getProtocolRule, getProtocolRules, getSecureLocation, setProtocolRules

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TychoRepositoryTransport

      public TychoRepositoryTransport()
  • Method Details

    • downloadArtifact

      public org.eclipse.core.runtime.IStatus downloadArtifact(URI source, OutputStream target, org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, org.eclipse.core.runtime.IProgressMonitor monitor)
      Overrides:
      downloadArtifact in class org.eclipse.equinox.internal.p2.repository.Transport
    • stream

      public InputStream stream(URI toDownload, org.eclipse.core.runtime.IProgressMonitor monitor) throws FileNotFoundException, org.eclipse.core.runtime.CoreException, org.eclipse.equinox.internal.p2.repository.AuthenticationFailedException
      Specified by:
      stream in class org.eclipse.equinox.internal.p2.repository.Transport
      Throws:
      FileNotFoundException
      org.eclipse.core.runtime.CoreException
      org.eclipse.equinox.internal.p2.repository.AuthenticationFailedException
    • download

      public org.eclipse.core.runtime.IStatus download(URI toDownload, OutputStream target, org.eclipse.core.runtime.IProgressMonitor monitor)
      Specified by:
      download in class org.eclipse.equinox.internal.p2.repository.Transport
    • download

      public org.eclipse.core.runtime.IStatus download(URI toDownload, OutputStream target, long startPos, org.eclipse.core.runtime.IProgressMonitor monitor)
      Overrides:
      download in class org.eclipse.equinox.internal.p2.repository.Transport
    • getLastModified

      public long getLastModified(URI toDownload, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException, FileNotFoundException, org.eclipse.equinox.internal.p2.repository.AuthenticationFailedException
      Specified by:
      getLastModified in class org.eclipse.equinox.internal.p2.repository.Transport
      Throws:
      org.eclipse.core.runtime.CoreException
      FileNotFoundException
      org.eclipse.equinox.internal.p2.repository.AuthenticationFailedException
    • createService

      public Object createService(org.eclipse.equinox.p2.core.IProvisioningAgent agent)
      Specified by:
      createService in interface org.eclipse.equinox.p2.core.spi.IAgentServiceFactory
    • getDownloadExecutor

      public static Executor getDownloadExecutor()
    • downloadToFile

      public File downloadToFile(URI uri) throws IOException
      Throws:
      IOException