org.apache.maven.index.updater
Class WagonHelper
java.lang.Object
org.apache.maven.index.updater.WagonHelper
public class WagonHelper
- extends Object
This is a helper for obtaining Wagon based ResourceFetchers. Some Indexer integrations does have access to Wagon
already, so this is here just to help them. Since Wagon (et al) is just optional dependency, looking up this
component in integrations where Wagon is not present, should be avoided. This helper is rather limited, as it offers
only "HTTP" wagons! This is not made a Plexus component since SISU would crack in CLI, while trying to load up this
class, because of lacking Wagon classes from classpath!
- Author:
- cstamas
Constructor Summary |
WagonHelper(org.codehaus.plexus.PlexusContainer plexusContainer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WagonHelper
public WagonHelper(org.codehaus.plexus.PlexusContainer plexusContainer)
getWagonResourceFetcher
public WagonHelper.WagonFetcher getWagonResourceFetcher(org.apache.maven.wagon.events.TransferListener listener)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
getWagonResourceFetcher
public WagonHelper.WagonFetcher getWagonResourceFetcher(org.apache.maven.wagon.events.TransferListener listener,
org.apache.maven.wagon.authentication.AuthenticationInfo authenticationInfo,
org.apache.maven.wagon.proxy.ProxyInfo proxyInfo)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
- Deprecated. use getWagonResourceFetcher with protocol argument
- Parameters:
listener
- authenticationInfo
- proxyInfo
-
- Returns:
-
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
getWagonResourceFetcher
public WagonHelper.WagonFetcher getWagonResourceFetcher(org.apache.maven.wagon.events.TransferListener listener,
org.apache.maven.wagon.authentication.AuthenticationInfo authenticationInfo,
org.apache.maven.wagon.proxy.ProxyInfo proxyInfo,
String protocol)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
- Parameters:
listener
- authenticationInfo
- proxyInfo
- protocol
- protocol supported by wagon http/https
- Returns:
-
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- Since:
- 4.1.3
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.