|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.apache.maven.wagon.events.WagonEvent
org.apache.maven.wagon.events.TransferEvent
public class TransferEvent
TransferEvent is used to notify TransferListeners about progress in transfer of resources form/to the repository
| Field Summary | |
|---|---|
static int |
REQUEST_GET
Indicates GET transfer (from the repository) |
static int |
REQUEST_PUT
Indicates PUT transfer (to the repository) |
static int |
TRANSFER_COMPLETED
A transfer is completed. |
static int |
TRANSFER_ERROR
An error occurred during transfer |
static int |
TRANSFER_INITIATED
A transfer was attempted, but has not yet commenced. |
static int |
TRANSFER_PROGRESS
A transfer is in progress. |
static int |
TRANSFER_STARTED
A transfer was started. |
| Fields inherited from class org.apache.maven.wagon.events.WagonEvent |
|---|
timestamp |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
TransferEvent(Wagon wagon,
Resource resource,
java.lang.Exception exception,
int requestType)
|
|
TransferEvent(Wagon wagon,
Resource resource,
int eventType,
int requestType)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getEventType()
|
java.lang.Exception |
getException()
|
java.io.File |
getLocalFile()
|
int |
getRequestType()
Returns the request type. |
Resource |
getResource()
|
int |
hashCode()
|
void |
setEventType(int eventType)
|
void |
setLocalFile(java.io.File localFile)
|
void |
setRequestType(int requestType)
Sets the request type |
void |
setResource(Resource resource)
|
java.lang.String |
toString()
|
| Methods inherited from class org.apache.maven.wagon.events.WagonEvent |
|---|
getTimestamp, getWagon, setTimestamp |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TRANSFER_INITIATED
public static final int TRANSFER_STARTED
public static final int TRANSFER_COMPLETED
public static final int TRANSFER_PROGRESS
public static final int TRANSFER_ERROR
public static final int REQUEST_GET
public static final int REQUEST_PUT
| Constructor Detail |
|---|
public TransferEvent(Wagon wagon,
Resource resource,
int eventType,
int requestType)
public TransferEvent(Wagon wagon,
Resource resource,
java.lang.Exception exception,
int requestType)
| Method Detail |
|---|
public Resource getResource()
public java.lang.Exception getException()
public int getRequestType()
TransferEvent.REQUEST_GET or TransferEvent.REQUEST_PUTpublic void setRequestType(int requestType)
requestType - The requestType to set.
The Request type value should be either
TransferEvent.REQUEST_GET or TransferEvent.REQUEST_PUT.
- Throws:
java.lang.IllegalArgumentException - whenpublic int getEventType()
public void setEventType(int eventType)
eventType - The eventType to set.public void setResource(Resource resource)
resource - The resource to set.public java.io.File getLocalFile()
public void setLocalFile(java.io.File localFile)
localFile - The local file to set.public java.lang.String toString()
toString in class java.util.EventObjectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||