|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ivy.plugins.repository.AbstractRepository
public abstract class AbstractRepository
Constructor Summary | |
---|---|
AbstractRepository()
|
Method Summary | |
---|---|
void |
addTransferListener(TransferListener listener)
Add a listener to the repository. |
protected void |
fireTransferCompleted()
|
protected void |
fireTransferCompleted(long totalLength)
|
protected void |
fireTransferError()
|
protected void |
fireTransferError(java.lang.Exception ex)
|
protected void |
fireTransferEvent(TransferEvent evt)
|
protected void |
fireTransferInitiated(Resource res,
int requestType)
|
protected void |
fireTransferProgress(long length)
|
protected void |
fireTransferStarted()
|
protected void |
fireTransferStarted(long totalLength)
|
java.lang.String |
getFileSeparator()
Get the repository's file separator string. |
java.lang.String |
getName()
Return the name of the repository |
boolean |
hasTransferListener(TransferListener listener)
Determine if a given listener is attached to the repository. |
void |
put(Artifact artifact,
java.io.File source,
java.lang.String destination,
boolean overwrite)
Transfer a resource to the repository |
protected void |
put(java.io.File source,
java.lang.String destination,
boolean overwrite)
|
void |
removeTransferListener(TransferListener listener)
Remove a listener on the repository |
void |
setName(java.lang.String name)
|
java.lang.String |
standardize(java.lang.String source)
Normalize a string. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.ivy.plugins.repository.Repository |
---|
get, getResource, list |
Constructor Detail |
---|
public AbstractRepository()
Method Detail |
---|
public void addTransferListener(TransferListener listener)
Repository
addTransferListener
in interface Repository
listener
- The listener to attach to the repository.public void removeTransferListener(TransferListener listener)
Repository
removeTransferListener
in interface Repository
listener
- The listener to removepublic boolean hasTransferListener(TransferListener listener)
Repository
hasTransferListener
in interface Repository
listener
- The listener being quireied
true
if the provided listener is attached to the repository,
false
if not.protected void fireTransferInitiated(Resource res, int requestType)
protected void fireTransferStarted()
protected void fireTransferStarted(long totalLength)
protected void fireTransferProgress(long length)
protected void fireTransferCompleted()
protected void fireTransferCompleted(long totalLength)
protected void fireTransferError()
protected void fireTransferError(java.lang.Exception ex)
protected void fireTransferEvent(TransferEvent evt)
public java.lang.String getFileSeparator()
Repository
getFileSeparator
in interface Repository
public java.lang.String standardize(java.lang.String source)
Repository
standardize
in interface Repository
source
- The string to normalize.
public java.lang.String getName()
Repository
getName
in interface Repository
public void setName(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public void put(Artifact artifact, java.io.File source, java.lang.String destination, boolean overwrite) throws java.io.IOException
Repository
put
in interface Repository
artifact
- The artifact to be transferred.source
- The local file to be transferred.destination
- Where to transfer the resource.overwrite
- Whether the transfer should overwrite an existing resource.
java.io.IOException
- On publication failure.protected void put(java.io.File source, java.lang.String destination, boolean overwrite) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |