This project has retired. For details please refer to its Attic page.
RemoteLegacyRepositoryContent

org.apache.maven.archiva.repository.content
Class RemoteLegacyRepositoryContent

Package class diagram package RemoteLegacyRepositoryContent
java.lang.Object
  extended by org.apache.maven.archiva.repository.content.AbstractLegacyRepositoryContent
      extended by org.apache.maven.archiva.repository.content.RemoteLegacyRepositoryContent
All Implemented Interfaces:
RemoteRepositoryContent

public class RemoteLegacyRepositoryContent
extends AbstractLegacyRepositoryContent
implements RemoteRepositoryContent

RemoteLegacyRepositoryContent


Constructor Summary
RemoteLegacyRepositoryContent()
           
 
Method Summary
 java.lang.String getId()
           Convenience method to get the repository id.
 org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration getRepository()
          Get the repository configuration associated with this repository content.
 RepositoryURL getURL()
           Convenience method to get the repository url.
 void setRepository(org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration repository)
          Set the repository configuration to associate with this repository content.
 org.apache.maven.archiva.model.ArtifactReference toArtifactReference(java.lang.String path)
          Convert a path to an artifact reference.
 RepositoryURL toURL(org.apache.maven.archiva.model.ArtifactReference reference)
          Given an ArtifactReference, return the url to the artifact.
 
Methods inherited from class org.apache.maven.archiva.repository.content.AbstractLegacyRepositoryContent
setLegacyPathParser, toPath, toPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.archiva.repository.RemoteRepositoryContent
toPath
 

Constructor Detail

RemoteLegacyRepositoryContent

public RemoteLegacyRepositoryContent()
Method Detail

getId

public java.lang.String getId()
Description copied from interface: RemoteRepositoryContent

Convenience method to get the repository id.

Equivalent to calling .getRepository().getId()

Specified by:
getId in interface RemoteRepositoryContent
Returns:
the repository id.

getRepository

public org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration getRepository()
Description copied from interface: RemoteRepositoryContent
Get the repository configuration associated with this repository content.

Specified by:
getRepository in interface RemoteRepositoryContent
Returns:
the repository that is associated with this repository content.

getURL

public RepositoryURL getURL()
Description copied from interface: RemoteRepositoryContent

Convenience method to get the repository url.

Equivalent to calling new RepositoryURL( this.getRepository().getUrl() )

Specified by:
getURL in interface RemoteRepositoryContent
Returns:
the repository url.

setRepository

public void setRepository(org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration repository)
Description copied from interface: RemoteRepositoryContent
Set the repository configuration to associate with this repository content.

Specified by:
setRepository in interface RemoteRepositoryContent
Parameters:
repository - the repository to associate with this repository content.

toArtifactReference

public org.apache.maven.archiva.model.ArtifactReference toArtifactReference(java.lang.String path)
                                                                     throws LayoutException
Convert a path to an artifact reference.

Specified by:
toArtifactReference in interface RemoteRepositoryContent
Overrides:
toArtifactReference in class AbstractLegacyRepositoryContent
Parameters:
path - the path to convert. (relative or full url path)
Returns:
the ArtifactReference representing the path. (or null if path cannot be converted to a ArtifactReference)
Throws:
LayoutException - if the path cannot be converted to an artifact reference.

toURL

public RepositoryURL toURL(org.apache.maven.archiva.model.ArtifactReference reference)
Description copied from interface: RemoteRepositoryContent
Given an ArtifactReference, return the url to the artifact.

Specified by:
toURL in interface RemoteRepositoryContent
Parameters:
reference - the artifact reference to use.
Returns:
the relative path to the artifact.