Class DefaultMetadataResolutionRequest

java.lang.Object
org.apache.maven.repository.legacy.metadata.DefaultMetadataResolutionRequest
All Implemented Interfaces:
org.apache.maven.artifact.repository.RepositoryRequest, MetadataResolutionRequest

@Deprecated public class DefaultMetadataResolutionRequest extends Object implements MetadataResolutionRequest
Deprecated.
Forms a request to retrieve artifact metadata.
  • Constructor Details

    • DefaultMetadataResolutionRequest

      public DefaultMetadataResolutionRequest()
      Deprecated.
    • DefaultMetadataResolutionRequest

      public DefaultMetadataResolutionRequest(org.apache.maven.artifact.repository.RepositoryRequest repositoryRequest)
      Deprecated.
    • DefaultMetadataResolutionRequest

      public DefaultMetadataResolutionRequest(ArtifactResolutionRequest resolutionRequest)
      Deprecated.
  • Method Details

    • getArtifact

      public org.apache.maven.artifact.Artifact getArtifact()
      Deprecated.
      Description copied from interface: MetadataResolutionRequest
      Gets the artifact to resolve metadata for.
      Specified by:
      getArtifact in interface MetadataResolutionRequest
      Returns:
      The artifact to resolve metadata for or null if not set.
    • setArtifact

      public DefaultMetadataResolutionRequest setArtifact(org.apache.maven.artifact.Artifact artifact)
      Deprecated.
      Description copied from interface: MetadataResolutionRequest
      Sets the artifact for which to resolve metadata.
      Specified by:
      setArtifact in interface MetadataResolutionRequest
      Parameters:
      artifact - The artifact for which to resolve metadata.
      Returns:
      This request, never null.
    • getLocalRepository

      public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
      Deprecated.
      Description copied from interface: MetadataResolutionRequest
      Gets the local repository to use for the resolution.
      Specified by:
      getLocalRepository in interface MetadataResolutionRequest
      Specified by:
      getLocalRepository in interface org.apache.maven.artifact.repository.RepositoryRequest
      Returns:
      The local repository to use for the resolution or null if not set.
    • setLocalRepository

      public DefaultMetadataResolutionRequest setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)
      Deprecated.
      Description copied from interface: MetadataResolutionRequest
      Sets the local repository to use for the resolution.
      Specified by:
      setLocalRepository in interface MetadataResolutionRequest
      Specified by:
      setLocalRepository in interface org.apache.maven.artifact.repository.RepositoryRequest
      Parameters:
      localRepository - The local repository to use for the resolution.
      Returns:
      This request, never null.
    • getRemoteRepositories

      public List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepositories()
      Deprecated.
      Description copied from interface: MetadataResolutionRequest
      Gets the remote repositories to use for the resolution.
      Specified by:
      getRemoteRepositories in interface MetadataResolutionRequest
      Specified by:
      getRemoteRepositories in interface org.apache.maven.artifact.repository.RepositoryRequest
      Returns:
      The remote repositories to use for the resolution, never null.
    • setRemoteRepositories

      public DefaultMetadataResolutionRequest setRemoteRepositories(List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
      Deprecated.
      Description copied from interface: MetadataResolutionRequest
      Sets the remote repositories to use for the resolution.
      Specified by:
      setRemoteRepositories in interface MetadataResolutionRequest
      Specified by:
      setRemoteRepositories in interface org.apache.maven.artifact.repository.RepositoryRequest
      Parameters:
      remoteRepositories - The remote repositories to use for the resolution.
      Returns:
      This request, never null.
    • isResolveManagedVersions

      public boolean isResolveManagedVersions()
      Deprecated.
      Description copied from interface: MetadataResolutionRequest
      Determines whether the managed version information should be retrieved.
      Specified by:
      isResolveManagedVersions in interface MetadataResolutionRequest
      Returns:
      true if the dependency management information should be retrieved, false otherwise.
    • setResolveManagedVersions

      public DefaultMetadataResolutionRequest setResolveManagedVersions(boolean resolveManagedVersions)
      Deprecated.
      Description copied from interface: MetadataResolutionRequest
      Enables/disables resolution of the dependency management information.
      Specified by:
      setResolveManagedVersions in interface MetadataResolutionRequest
      Parameters:
      resolveManagedVersions - true if the dependency management information should be retrieved, false otherwise.
      Returns:
      This request, never null.
    • isOffline

      public boolean isOffline()
      Deprecated.
      Description copied from interface: MetadataResolutionRequest
      Indicates whether network access to remote repositories has been disabled.
      Specified by:
      isOffline in interface MetadataResolutionRequest
      Specified by:
      isOffline in interface org.apache.maven.artifact.repository.RepositoryRequest
      Returns:
      true if remote access has been disabled, false otherwise.
    • setOffline

      public DefaultMetadataResolutionRequest setOffline(boolean offline)
      Deprecated.
      Description copied from interface: MetadataResolutionRequest
      Enables/disables network access to remote repositories.
      Specified by:
      setOffline in interface MetadataResolutionRequest
      Specified by:
      setOffline in interface org.apache.maven.artifact.repository.RepositoryRequest
      Parameters:
      offline - true to disable remote access, false to allow network access.
      Returns:
      This request, never null.
    • isForceUpdate

      public boolean isForceUpdate()
      Deprecated.
      Specified by:
      isForceUpdate in interface org.apache.maven.artifact.repository.RepositoryRequest
    • setForceUpdate

      public DefaultMetadataResolutionRequest setForceUpdate(boolean forceUpdate)
      Deprecated.
      Specified by:
      setForceUpdate in interface org.apache.maven.artifact.repository.RepositoryRequest