public class TransferEvent extends WagonEvent
Modifier and Type | Field and Description |
---|---|
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.
|
timestamp
source
Constructor and Description |
---|
TransferEvent(Wagon wagon,
Resource resource,
Exception exception,
int requestType) |
TransferEvent(Wagon wagon,
Resource resource,
int eventType,
int requestType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getEventType() |
Exception |
getException() |
File |
getLocalFile() |
int |
getRequestType()
Returns the request type.
|
Resource |
getResource() |
int |
hashCode() |
void |
setEventType(int eventType) |
void |
setLocalFile(File localFile) |
void |
setRequestType(int requestType)
Sets the request type
|
void |
setResource(Resource resource) |
String |
toString() |
getTimestamp, getWagon, setTimestamp
getSource
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
public TransferEvent(Wagon wagon, Resource resource, int eventType, int requestType)
public TransferEvent(Wagon wagon, Resource resource, Exception exception, int requestType)
public Resource getResource()
public Exception getException()
public int getRequestType()
TransferEvent.REQUEST_GET or TransferEvent.REQUEST_PUT
public void setRequestType(int requestType)
requestType
- The requestType to set.
The Request type value should be either
TransferEvent.REQUEST_GET or TransferEvent.REQUEST_PUT.
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 File getLocalFile()
public void setLocalFile(File localFile)
localFile
- The local file to set.public String toString()
toString
in class EventObject
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.