Package org.eclipse.tycho.p2.remote
Class TychoRepositoryTransport
java.lang.Object
org.eclipse.equinox.internal.p2.repository.Transport
org.eclipse.tycho.p2.remote.TychoRepositoryTransport
- All Implemented Interfaces:
org.eclipse.equinox.p2.core.spi.IAgentServiceFactory
public class TychoRepositoryTransport
extends org.eclipse.equinox.internal.p2.repository.Transport
implements org.eclipse.equinox.p2.core.spi.IAgentServiceFactory
-
Field Summary
Fields inherited from class org.eclipse.equinox.internal.p2.repository.Transport
SERVICE_NAMEFields inherited from interface org.eclipse.equinox.p2.core.spi.IAgentServiceFactory
PROP_CREATED_SERVICE_NAME, SERVICE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionTychoRepositoryTransport(MavenContext mavenContext, org.eclipse.core.net.proxy.IProxyService proxyService, Function<URI, MavenRepositorySettings.Credentials> credentialsProvider) -
Method Summary
Modifier and TypeMethodDescriptioncreateService(org.eclipse.equinox.p2.core.IProvisioningAgent agent) org.eclipse.core.runtime.IStatusdownload(URI toDownload, OutputStream target, long startPos, org.eclipse.core.runtime.IProgressMonitor monitor) org.eclipse.core.runtime.IStatusdownload(URI toDownload, OutputStream target, org.eclipse.core.runtime.IProgressMonitor monitor) getCachedFile(URI remoteFile) longgetLastModified(URI toDownload, org.eclipse.core.runtime.IProgressMonitor monitor) static boolean
-
Constructor Details
-
Method Details
-
download
public org.eclipse.core.runtime.IStatus download(URI toDownload, OutputStream target, long startPos, org.eclipse.core.runtime.IProgressMonitor monitor) - Overrides:
downloadin classorg.eclipse.equinox.internal.p2.repository.Transport
-
download
public org.eclipse.core.runtime.IStatus download(URI toDownload, OutputStream target, org.eclipse.core.runtime.IProgressMonitor monitor) - Specified by:
downloadin classorg.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:
streamin classorg.eclipse.equinox.internal.p2.repository.Transport- Throws:
FileNotFoundExceptionorg.eclipse.core.runtime.CoreExceptionorg.eclipse.equinox.internal.p2.repository.AuthenticationFailedException
-
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:
getLastModifiedin classorg.eclipse.equinox.internal.p2.repository.Transport- Throws:
org.eclipse.core.runtime.CoreExceptionFileNotFoundExceptionorg.eclipse.equinox.internal.p2.repository.AuthenticationFailedException
-
createService
- Specified by:
createServicein interfaceorg.eclipse.equinox.p2.core.spi.IAgentServiceFactory
-
getHttpCache
-
getCachedFile
- Throws:
IOException
-
isHttp
-