Package org.commonjava.indy.content
Class IndyLocationExpander
- java.lang.Object
-
- org.commonjava.indy.content.IndyLocationExpander
-
- All Implemented Interfaces:
org.commonjava.maven.galley.spi.transport.LocationExpander
public class IndyLocationExpander extends Object implements org.commonjava.maven.galley.spi.transport.LocationExpander
LocationExpanderimplementation geared to work withArtifactStoreinstances. This is responsible for resolving group references into collections of concrete store references, for the purposes of resolving content. Via its use ofLocationUtils, it also is responsible for creatingLocationinstances for remote repositories that contain relevant authentication and SSL attributes.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIndyLocationExpander()IndyLocationExpander(StoreDataManager data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends org.commonjava.maven.galley.model.Location>
List<org.commonjava.maven.galley.model.Location>expand(Collection<T> locations)For group references, expand into a list of concrete repository locations (hosted or remote).List<org.commonjava.maven.galley.model.Location>expand(org.commonjava.maven.galley.model.Location... locations)org.commonjava.maven.galley.model.VirtualResourceexpand(org.commonjava.maven.galley.model.Resource resource)Using the same basic logic asexpand(Collection), convert the specifiedResourceinto aVirtualResourcethat contains references to the expandedLocationlist.
-
-
-
Constructor Detail
-
IndyLocationExpander
protected IndyLocationExpander()
-
IndyLocationExpander
public IndyLocationExpander(StoreDataManager data)
-
-
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:
expandin interfaceorg.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 correspondingRemoteRepositoryand use it to create aRepositoryLocationthat contains any relevant SSL, authentication, proxy, etc. attbributes.- Specified by:
expandin interfaceorg.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.TransferExceptionUsing the same basic logic asexpand(Collection), convert the specifiedResourceinto aVirtualResourcethat contains references to the expandedLocationlist.- Specified by:
expandin interfaceorg.commonjava.maven.galley.spi.transport.LocationExpander- Throws:
org.commonjava.maven.galley.TransferException- See Also:
expand(Collection)
-
-