|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.resolution.VersionRangeRequest
public class VersionRangeRequest
A request to resolve a version range.
RepositorySystem.resolveVersionRange(RepositorySystemSession, VersionRangeRequest)
Constructor Summary | |
---|---|
VersionRangeRequest()
Creates an uninitialized request. |
|
VersionRangeRequest(Artifact artifact,
java.util.List<RemoteRepository> repositories,
java.lang.String context)
Creates a request with the specified properties. |
Method Summary | |
---|---|
VersionRangeRequest |
addRepository(RemoteRepository repository)
Adds the specified repository for the resolution. |
Artifact |
getArtifact()
Gets the artifact whose version range shall be resolved. |
java.util.List<RemoteRepository> |
getRepositories()
Gets the repositories to resolve the version range from. |
java.lang.String |
getRequestContext()
Gets the context in which this request is made. |
RequestTrace |
getTrace()
Gets the trace information that describes the higher level request/operation in which this request is issued. |
VersionRangeRequest |
setArtifact(Artifact artifact)
Sets the artifact whose version range shall be resolved. |
VersionRangeRequest |
setRepositories(java.util.List<RemoteRepository> repositories)
Sets the repositories to resolve the version range from. |
VersionRangeRequest |
setRequestContext(java.lang.String context)
Sets the context in which this request is made. |
VersionRangeRequest |
setTrace(RequestTrace trace)
Sets the trace information that describes the higher level request/operation in which this request is issued. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VersionRangeRequest()
public VersionRangeRequest(Artifact artifact, java.util.List<RemoteRepository> repositories, java.lang.String context)
artifact
- The artifact whose version range should be resolved, may be null
.repositories
- The repositories to resolve the version from, may be null
.context
- The context in which this request is made, may be null
.Method Detail |
---|
public Artifact getArtifact()
null
if not set.public VersionRangeRequest setArtifact(Artifact artifact)
artifact
- The artifact, may be null
.
null
.public java.util.List<RemoteRepository> getRepositories()
null
.public VersionRangeRequest setRepositories(java.util.List<RemoteRepository> repositories)
repositories
- The repositories, may be null
.
null
.public VersionRangeRequest addRepository(RemoteRepository repository)
repository
- The repository to add, may be null
.
null
.public java.lang.String getRequestContext()
null
.public VersionRangeRequest setRequestContext(java.lang.String context)
context
- The context, may be null
.
null
.public RequestTrace getTrace()
null
if none.public VersionRangeRequest setTrace(RequestTrace trace)
trace
- The trace information about the higher level operation, may be null
.
null
.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |