public final class ArtifactDescriptorPolicyRequest
extends java.lang.Object
ArtifactDescriptorPolicy| Modifier and Type | Field and Description |
|---|---|
private Artifact |
artifact |
private java.lang.String |
context |
| Constructor and Description |
|---|
ArtifactDescriptorPolicyRequest()
Creates an uninitialized request.
|
ArtifactDescriptorPolicyRequest(Artifact artifact,
java.lang.String context)
Creates a request for the specified artifact.
|
| Modifier and Type | Method and Description |
|---|---|
Artifact |
getArtifact()
Gets the artifact for whose descriptor to determine the error policy.
|
java.lang.String |
getRequestContext()
Gets the context in which this request is made.
|
ArtifactDescriptorPolicyRequest |
setArtifact(Artifact artifact)
Sets the artifact for whose descriptor to determine the error policy.
|
ArtifactDescriptorPolicyRequest |
setRequestContext(java.lang.String context)
Sets the context in which this request is made.
|
java.lang.String |
toString() |
private Artifact artifact
private java.lang.String context
public ArtifactDescriptorPolicyRequest()
public ArtifactDescriptorPolicyRequest(Artifact artifact, java.lang.String context)
artifact - The artifact for whose descriptor to determine the error policy, may be null.context - The context in which this request is made, may be null.public Artifact getArtifact()
null if not set.public ArtifactDescriptorPolicyRequest setArtifact(Artifact artifact)
artifact - The artifact for whose descriptor to determine the error policy, may be null.null.public java.lang.String getRequestContext()
null.public ArtifactDescriptorPolicyRequest setRequestContext(java.lang.String context)
context - The context, may be null.null.public java.lang.String toString()
toString in class java.lang.Object