Class ArtifactDescriptorPolicyRequest

java.lang.Object
org.eclipse.aether.resolution.ArtifactDescriptorPolicyRequest

public final class ArtifactDescriptorPolicyRequest extends Object
A query for the error policy for a given artifact's descriptor.
See Also:
  • Constructor Details Link icon

    • ArtifactDescriptorPolicyRequest Link icon

      Creates an uninitialized request.
    • ArtifactDescriptorPolicyRequest Link icon

      public ArtifactDescriptorPolicyRequest(Artifact artifact, String context)
      Creates a request for the specified artifact.
      Parameters:
      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.
  • Method Details Link icon

    • getArtifact Link icon

      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 Link icon

      Sets the artifact for whose descriptor to determine the error policy.
      Parameters:
      artifact - The artifact for whose descriptor to determine the error policy, may be null.
      Returns:
      This request for chaining, never null.
    • getRequestContext Link icon

      Gets the context in which this request is made.
      Returns:
      The context, never null.
    • setRequestContext Link icon

      Sets the context in which this request is made.
      Parameters:
      context - The context, may be null.
      Returns:
      This request for chaining, never null.
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object