Package org.eclipse.aether.deployment
Class DeployRequest
- java.lang.Object
-
- org.eclipse.aether.deployment.DeployRequest
-
public final class DeployRequest extends java.lang.ObjectA request to deploy artifacts and their accompanying metadata into the a remote repository.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<Artifact>artifactsprivate java.util.Collection<Metadata>metadataprivate RemoteRepositoryrepositoryprivate RequestTracetrace
-
Constructor Summary
Constructors Constructor Description DeployRequest()Creates an uninitialized request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeployRequestaddArtifact(Artifact artifact)Adds the specified artifacts for deployment.DeployRequestaddMetadata(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.RemoteRepositorygetRepository()Gets the repository to deploy to.RequestTracegetTrace()Gets the trace information that describes the higher level request/operation in which this request is issued.DeployRequestsetArtifacts(java.util.Collection<Artifact> artifacts)Sets the artifacts to deploy.DeployRequestsetMetadata(java.util.Collection<Metadata> metadata)Sets the metadata to deploy.DeployRequestsetRepository(RemoteRepository repository)Sets the repository to deploy to.DeployRequestsetTrace(RequestTrace trace)Sets the trace information that describes the higher level request/operation in which this request is issued.java.lang.StringtoString()
-
-
-
Field Detail
-
artifacts
private java.util.Collection<Artifact> artifacts
-
metadata
private java.util.Collection<Metadata> metadata
-
repository
private RemoteRepository repository
-
trace
private RequestTrace trace
-
-
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 benull.- 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 benull.- 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 benull.- 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 benull.- Returns:
- This request for chaining, never
null.
-
getRepository
public RemoteRepository getRepository()
Gets the repository to deploy to.- Returns:
- The repository to deploy to or
nullif not set.
-
setRepository
public DeployRequest setRepository(RemoteRepository repository)
Sets the repository to deploy to.- Parameters:
repository- The repository to deploy to, may benull.- Returns:
- This request for chaining, never
null.
-
getTrace
public RequestTrace getTrace()
Gets the trace information that describes the higher level request/operation in which this request is issued.- Returns:
- The trace information about the higher level operation or
nullif none.
-
setTrace
public DeployRequest setTrace(RequestTrace trace)
Sets the trace information that describes the higher level request/operation in which this request is issued.- Parameters:
trace- The trace information about the higher level operation, may benull.- Returns:
- This request for chaining, never
null.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-