public final class ArtifactDescriptorRequest extends java.lang.Object
| Constructor | Description |
|---|---|
ArtifactDescriptorRequest() |
Creates an uninitialized request.
|
ArtifactDescriptorRequest(Artifact artifact,
java.util.List<RemoteRepository> repositories,
java.lang.String context) |
Creates a request with the specified properties.
|
| Modifier and Type | Method | Description |
|---|---|---|
ArtifactDescriptorRequest |
addRepository(RemoteRepository repository) |
Adds the specified repository for the resolution of the artifact descriptor.
|
Artifact |
getArtifact() |
Gets the artifact whose descriptor shall be read.
|
java.util.List<RemoteRepository> |
getRepositories() |
Gets the repositories to resolve the descriptor 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.
|
ArtifactDescriptorRequest |
setArtifact(Artifact artifact) |
Sets the artifact whose descriptor shall be read.
|
ArtifactDescriptorRequest |
setRepositories(java.util.List<RemoteRepository> repositories) |
Sets the repositories to resolve the descriptor from.
|
ArtifactDescriptorRequest |
setRequestContext(java.lang.String context) |
Sets the context in which this request is made.
|
ArtifactDescriptorRequest |
setTrace(RequestTrace trace) |
Sets the trace information that describes the higher level request/operation in which this request is issued.
|
java.lang.String |
toString() |
public ArtifactDescriptorRequest()
public ArtifactDescriptorRequest(Artifact artifact, java.util.List<RemoteRepository> repositories, java.lang.String context)
artifact - The artifact whose descriptor should be read, may be null.repositories - The repositories to resolve the descriptor from, may be null.context - The context in which this request is made, may be null.public Artifact getArtifact()
null if not set.public ArtifactDescriptorRequest setArtifact(Artifact artifact)
artifact - The artifact, may be null.null.public java.util.List<RemoteRepository> getRepositories()
null.public ArtifactDescriptorRequest setRepositories(java.util.List<RemoteRepository> repositories)
repositories - The repositories, may be null.null.public ArtifactDescriptorRequest addRepository(RemoteRepository repository)
repository - The repository to add, may be null.null.public java.lang.String getRequestContext()
null.public ArtifactDescriptorRequest setRequestContext(java.lang.String context)
context - The context, may be null.null.public RequestTrace getTrace()
null if none.public ArtifactDescriptorRequest 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