|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.util.listener.DefaultTransferResource
public class DefaultTransferResource
A simple transfer resource.
| Constructor Summary | |
|---|---|
DefaultTransferResource(String repositoryUrl,
String resourceName,
File file)
Deprecated. As of version 1.11, use DefaultTransferResource(String, String, File, RequestTrace) instead. |
|
DefaultTransferResource(String repositoryUrl,
String resourceName,
File file,
RequestTrace trace)
Creates a new transfer resource with the specified properties. |
|
| Method Summary | |
|---|---|
long |
getContentLength()
|
File |
getFile()
|
String |
getRepositoryUrl()
|
String |
getResourceName()
|
RequestTrace |
getTrace()
|
long |
getTransferStartTime()
|
DefaultTransferResource |
setContentLength(long contentLength)
Sets the size of the resource in bytes. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public DefaultTransferResource(String repositoryUrl,
String resourceName,
File file)
DefaultTransferResource(String, String, File, RequestTrace) instead.
repositoryUrl - The base URL of the repository, may be null or empty if unknown. If not empty, a
trailing slash will automatically be added if missing.resourceName - The relative path to the resource within the repository, may be null. A leading slash
(if any) will be automatically removed.file - The source/target file involved in the transfer, may be null.
public DefaultTransferResource(String repositoryUrl,
String resourceName,
File file,
RequestTrace trace)
repositoryUrl - The base URL of the repository, may be null or empty if unknown. If not empty, a
trailing slash will automatically be added if missing.resourceName - The relative path to the resource within the repository, may be null. A leading slash
(if any) will be automatically removed.file - The source/target file involved in the transfer, may be null.trace - The trace information, may be null.| Method Detail |
|---|
public String getRepositoryUrl()
getRepositoryUrl in interface TransferResourcepublic String getResourceName()
getResourceName in interface TransferResourcepublic File getFile()
getFile in interface TransferResourcepublic long getContentLength()
getContentLength in interface TransferResourcepublic DefaultTransferResource setContentLength(long contentLength)
contentLength - The size of the resource in bytes or a negative value if unknown.
null.public long getTransferStartTime()
getTransferStartTime in interface TransferResourcepublic RequestTrace getTrace()
getTrace in interface TransferResourcepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||