org.sonatype.aether.deployment
Class DeployRequest

java.lang.Object
  extended by org.sonatype.aether.deployment.DeployRequest

public class DeployRequest
extends java.lang.Object

A request to deploy artifacts and their accompanying metadata into the a remote repository.

Author:
Benjamin Bentmann
See Also:
RepositorySystem.deploy(RepositorySystemSession, DeployRequest)

Constructor Summary
DeployRequest()
           
 
Method Summary
 DeployRequest addArtifact(Artifact artifact)
          Adds the specified artifacts for deployment.
 DeployRequest addMetadata(Metadata metadata)
          Adds the specified metadata for deployment.
 java.util.Collection<Artifact> getArtifacts()
          Gets the artifact to deploy.
 java.util.Collection<Metadata> getMetadata()
          Gets the metadata to deploy.
 RemoteRepository getRepository()
          Gets the repository to deploy to.
 DeployRequest setArtifacts(java.util.Collection<Artifact> artifacts)
          Sets the artifacts to deploy.
 DeployRequest setMetadata(java.util.Collection<Metadata> metadata)
          Sets the metadata to deploy.
 DeployRequest setRepository(RemoteRepository repository)
          Sets the repository to deploy to.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeployRequest

public DeployRequest()
Method Detail

getArtifacts

public java.util.Collection<Artifact> getArtifacts()
Gets the artifact to deploy.

Returns:
The artifacts to deploy, never null.

setArtifacts

public DeployRequest setArtifacts(java.util.Collection<Artifact> artifacts)
Sets the artifacts to deploy.

Parameters:
artifacts - The artifacts to deploy, may be null.
Returns:
This request for chaining, never null.

addArtifact

public DeployRequest addArtifact(Artifact artifact)
Adds the specified artifacts for deployment.

Parameters:
artifact - The artifact to add, may be null.
Returns:
This request for chaining, never null.

getMetadata

public java.util.Collection<Metadata> getMetadata()
Gets the metadata to deploy.

Returns:
The metadata to deploy, never null.

setMetadata

public DeployRequest setMetadata(java.util.Collection<Metadata> metadata)
Sets the metadata to deploy.

Parameters:
metadata - The metadata to deploy, may be null.
Returns:
This request for chaining, never null.

addMetadata

public DeployRequest addMetadata(Metadata metadata)
Adds the specified metadata for deployment.

Parameters:
metadata - The metadata to add, may be null.
Returns:
This request for chaining, never null.

getRepository

public RemoteRepository getRepository()
Gets the repository to deploy to.

Returns:
The repository to deploy to or null if not set.

setRepository

public DeployRequest setRepository(RemoteRepository repository)
Sets the repository to deploy to.

Parameters:
repository - The repository to deploy to, may be null.
Returns:
This request for chaining, never null.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 Sonatype, Inc.. All Rights Reserved.