Class IndyLocationExpander

  • All Implemented Interfaces:
    org.commonjava.maven.galley.spi.transport.LocationExpander

    public class IndyLocationExpander
    extends Object
    implements org.commonjava.maven.galley.spi.transport.LocationExpander
    LocationExpander implementation geared to work with ArtifactStore instances. This is responsible for resolving group references into collections of concrete store references, for the purposes of resolving content. Via its use of LocationUtils, it also is responsible for creating Location instances for remote repositories that contain relevant authentication and SSL attributes.
    • Constructor Detail

      • IndyLocationExpander

        protected IndyLocationExpander()
    • Method Detail

      • expand

        public List<org.commonjava.maven.galley.model.Location> expand​(org.commonjava.maven.galley.model.Location... locations)
                                                                throws org.commonjava.maven.galley.TransferException
        Specified by:
        expand in interface org.commonjava.maven.galley.spi.transport.LocationExpander
        Throws:
        org.commonjava.maven.galley.TransferException
        See Also:
        expand(Collection)
      • expand

        public <T extends org.commonjava.maven.galley.model.Location> List<org.commonjava.maven.galley.model.Location> expand​(Collection<T> locations)
                                                                                                                       throws org.commonjava.maven.galley.TransferException
        For group references, expand into a list of concrete repository locations (hosted or remote). For remote repository references that are specified as cache-only locations (see: CacheOnlyLocation), lookup the corresponding RemoteRepository and use it to create a RepositoryLocation that contains any relevant SSL, authentication, proxy, etc. attbributes.
        Specified by:
        expand in interface org.commonjava.maven.galley.spi.transport.LocationExpander
        Throws:
        org.commonjava.maven.galley.TransferException
      • expand

        public org.commonjava.maven.galley.model.VirtualResource expand​(org.commonjava.maven.galley.model.Resource resource)
                                                                 throws org.commonjava.maven.galley.TransferException
        Using the same basic logic as expand(Collection), convert the specified Resource into a VirtualResource that contains references to the expanded Location list.
        Specified by:
        expand in interface org.commonjava.maven.galley.spi.transport.LocationExpander
        Throws:
        org.commonjava.maven.galley.TransferException
        See Also:
        expand(Collection)