public final class VersionRequest extends Object
| Constructor and Description |
|---|
VersionRequest()
Creates an uninitialized request.
|
VersionRequest(Artifact artifact,
List<RemoteRepository> repositories,
String context)
Creates a request with the specified properties.
|
| Modifier and Type | Method and Description |
|---|---|
VersionRequest |
addRepository(RemoteRepository repository)
Adds the specified repository for the resolution.
|
Artifact |
getArtifact()
Gets the artifact whose (meta-)version shall be resolved.
|
List<RemoteRepository> |
getRepositories()
Gets the repositories to resolve the version from.
|
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.
|
VersionRequest |
setArtifact(Artifact artifact)
Sets the artifact whose (meta-)version shall be resolved.
|
VersionRequest |
setRepositories(List<RemoteRepository> repositories)
Sets the repositories to resolve the version from.
|
VersionRequest |
setRequestContext(String context)
Sets the context in which this request is made.
|
VersionRequest |
setTrace(RequestTrace trace)
Sets the trace information that describes the higher level request/operation in which this request is issued.
|
String |
toString() |
public VersionRequest()
public VersionRequest(Artifact artifact, List<RemoteRepository> repositories, String context)
artifact - The artifact whose (meta-)version 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.public Artifact getArtifact()
null if not set.public VersionRequest setArtifact(Artifact artifact)
artifact - The artifact, may be null.null.public List<RemoteRepository> getRepositories()
null.public VersionRequest setRepositories(List<RemoteRepository> repositories)
repositories - The repositories, may be null.null.public VersionRequest addRepository(RemoteRepository repository)
repository - The repository to add, may be null.null.public String getRequestContext()
null.public VersionRequest setRequestContext(String context)
context - The context, may be null.null.public RequestTrace getTrace()
null if none.public VersionRequest setTrace(RequestTrace trace)
trace - The trace information about the higher level operation, may be null.null.Copyright © 2010-2015 The Eclipse Foundation. All Rights Reserved.