T - The type of the affected repository item (artifact or metadata).public final class ResolutionErrorPolicyRequest<T> extends java.lang.Object
ResolutionErrorPolicy| Constructor | Description |
|---|---|
ResolutionErrorPolicyRequest() |
Creates an uninitialized request.
|
ResolutionErrorPolicyRequest(T item,
RemoteRepository repository) |
Creates a request for the specified artifact/metadata and remote repository.
|
| Modifier and Type | Method | Description |
|---|---|---|
T |
getItem() |
Gets the artifact/metadata for which to determine the error policy.
|
RemoteRepository |
getRepository() |
Gets the remote repository from which the resolution of the artifact/metadata is attempted.
|
ResolutionErrorPolicyRequest<T> |
setItem(T item) |
Sets the artifact/metadata for which to determine the error policy.
|
ResolutionErrorPolicyRequest<T> |
setRepository(RemoteRepository repository) |
Sets the remote repository from which the resolution of the artifact/metadata is attempted.
|
java.lang.String |
toString() |
public ResolutionErrorPolicyRequest()
public ResolutionErrorPolicyRequest(T item, RemoteRepository repository)
item - The artifact/metadata for which to determine the error policy, may be null.repository - The repository from which the resolution is attempted, may be null.public T getItem()
null if not set.public ResolutionErrorPolicyRequest<T> setItem(T item)
item - The artifact/metadata for which to determine the error policy, may be null.null.public RemoteRepository getRepository()
null if not set.public ResolutionErrorPolicyRequest<T> setRepository(RemoteRepository repository)
repository - The repository from which the resolution is attempted, may be null.null.public java.lang.String toString()
toString in class java.lang.Object