Class OfflineTransport


  • class OfflineTransport
    extends org.eclipse.equinox.internal.p2.repository.Transport
    workaround for https://bugs.eclipse.org/357357
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.eclipse.core.runtime.Status OFFLINE_STATUS  
      • Fields inherited from class org.eclipse.equinox.internal.p2.repository.Transport

        SERVICE_NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.core.runtime.IStatus download​(java.net.URI toDownload, java.io.OutputStream target, long startPos, org.eclipse.core.runtime.IProgressMonitor monitor)  
      org.eclipse.core.runtime.IStatus download​(java.net.URI toDownload, java.io.OutputStream target, org.eclipse.core.runtime.IProgressMonitor monitor)  
      long getLastModified​(java.net.URI toDownload, org.eclipse.core.runtime.IProgressMonitor monitor)  
      java.io.InputStream stream​(java.net.URI toDownload, org.eclipse.core.runtime.IProgressMonitor monitor)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • OFFLINE_STATUS

        private static final org.eclipse.core.runtime.Status OFFLINE_STATUS
    • Constructor Detail

      • OfflineTransport

        OfflineTransport()
    • Method Detail

      • download

        public org.eclipse.core.runtime.IStatus download​(java.net.URI toDownload,
                                                         java.io.OutputStream target,
                                                         long startPos,
                                                         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​(java.net.URI toDownload,
                                                         java.io.OutputStream target,
                                                         org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        download in class org.eclipse.equinox.internal.p2.repository.Transport
      • stream

        public java.io.InputStream stream​(java.net.URI toDownload,
                                          org.eclipse.core.runtime.IProgressMonitor monitor)
                                   throws java.io.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:
        java.io.FileNotFoundException
        org.eclipse.core.runtime.CoreException
        org.eclipse.equinox.internal.p2.repository.AuthenticationFailedException
      • getLastModified

        public long getLastModified​(java.net.URI toDownload,
                                    org.eclipse.core.runtime.IProgressMonitor monitor)
                             throws org.eclipse.core.runtime.CoreException,
                                    java.io.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
        java.io.FileNotFoundException
        org.eclipse.equinox.internal.p2.repository.AuthenticationFailedException