Package org.eclipse.aether.resolution
Class ArtifactDescriptorPolicyRequest
java.lang.Object
org.eclipse.aether.resolution.ArtifactDescriptorPolicyRequest
A query for the error policy for a given artifact's descriptor.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates an uninitialized request.ArtifactDescriptorPolicyRequest
(Artifact artifact, String context) Creates a request for the specified artifact. -
Method Summary
Modifier and TypeMethodDescriptionGets the artifact for whose descriptor to determine the error policy.Gets the context in which this request is made.setArtifact
(Artifact artifact) Sets the artifact for whose descriptor to determine the error policy.setRequestContext
(String context) Sets the context in which this request is made.toString()
-
Constructor Details
-
ArtifactDescriptorPolicyRequest
public ArtifactDescriptorPolicyRequest()Creates an uninitialized request. -
ArtifactDescriptorPolicyRequest
Creates a request for the specified artifact.- Parameters:
artifact
- The artifact for whose descriptor to determine the error policy, may benull
.context
- The context in which this request is made, may benull
.
-
-
Method Details
-
getArtifact
Gets the artifact for whose descriptor to determine the error policy.- Returns:
- The artifact for whose descriptor to determine the error policy or
null
if not set.
-
setArtifact
Sets the artifact for whose descriptor to determine the error policy.- Parameters:
artifact
- The artifact for whose descriptor to determine the error policy, may benull
.- Returns:
- This request for chaining, never
null
.
-
getRequestContext
Gets the context in which this request is made.- Returns:
- The context, never
null
.
-
setRequestContext
Sets the context in which this request is made.- Parameters:
context
- The context, may benull
.- Returns:
- This request for chaining, never
null
.
-
toString
-