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 Details

    • WagonHelper

      public WagonHelper(com.google.inject.Injector injector)
  • Method Details

    • getWagonResourceFetcher

      public WagonHelper.WagonFetcher getWagonResourceFetcher(org.apache.maven.wagon.events.TransferListener listener)
    • 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)
      Deprecated.
      use getWagonResourceFetcher with protocol argument
      Parameters:
      listener -
      authenticationInfo -
      proxyInfo -
      Returns:
    • 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)
      Parameters:
      listener -
      authenticationInfo -
      proxyInfo -
      protocol - protocol supported by wagon http/https
      Returns:
      Since:
      4.1.3