Package org.apache.maven.repository
Class ArtifactTransferEvent
java.lang.Object
java.util.EventObject
org.apache.maven.repository.ArtifactTransferEvent
- All Implemented Interfaces:
Serializable
Deprecated.
TransferEvent is used to notify TransferListeners about progress
in transfer of resources form/to the repository
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.Indicates GET transfer (from the repository)static final int
Deprecated.Indicates PUT transfer (to the repository)static final int
Deprecated.A transfer is completed.static final int
Deprecated.An error occurred during transferstatic final int
Deprecated.A transfer was attempted, but has not yet commenced.static final int
Deprecated.A transfer is in progress.static final int
Deprecated.A transfer was started.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionArtifactTransferEvent
(String wagon, int eventType, int requestType, ArtifactTransferResource artifact) Deprecated.ArtifactTransferEvent
(String wagon, Exception exception, int requestType, ArtifactTransferResource artifact) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.byte[]
Deprecated.int
Deprecated.int
Deprecated.int
Deprecated.Deprecated.Deprecated.int
Deprecated.Returns the request type.Deprecated.long
Deprecated.int
hashCode()
Deprecated.void
setDataBuffer
(byte[] dataBuffer) Deprecated.void
setDataLength
(int dataLength) Deprecated.void
setDataOffset
(int dataOffset) Deprecated.void
setEventType
(int eventType) Deprecated.void
setLocalFile
(File localFile) Deprecated.void
setRequestType
(int requestType) Deprecated.Sets the request typevoid
setTransferredBytes
(long transferredBytes) Deprecated.toString()
Deprecated.Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
TRANSFER_INITIATED
public static final int TRANSFER_INITIATEDDeprecated.A transfer was attempted, but has not yet commenced.- See Also:
-
TRANSFER_STARTED
public static final int TRANSFER_STARTEDDeprecated.A transfer was started.- See Also:
-
TRANSFER_COMPLETED
public static final int TRANSFER_COMPLETEDDeprecated.A transfer is completed.- See Also:
-
TRANSFER_PROGRESS
public static final int TRANSFER_PROGRESSDeprecated.A transfer is in progress.- See Also:
-
TRANSFER_ERROR
public static final int TRANSFER_ERRORDeprecated.An error occurred during transfer- See Also:
-
REQUEST_GET
public static final int REQUEST_GETDeprecated.Indicates GET transfer (from the repository)- See Also:
-
REQUEST_PUT
public static final int REQUEST_PUTDeprecated.Indicates PUT transfer (to the repository)- See Also:
-
-
Constructor Details
-
ArtifactTransferEvent
public ArtifactTransferEvent(String wagon, int eventType, int requestType, ArtifactTransferResource artifact) Deprecated. -
ArtifactTransferEvent
public ArtifactTransferEvent(String wagon, Exception exception, int requestType, ArtifactTransferResource artifact) Deprecated.
-
-
Method Details
-
getResource
Deprecated. -
getException
Deprecated.- Returns:
- Returns the exception.
-
getRequestType
public int getRequestType()Deprecated.Returns the request type.- Returns:
- Returns the request type. The Request type is one of
TransferEvent.REQUEST_GET
orTransferEvent.REQUEST_PUT
-
setRequestType
public void setRequestType(int requestType) Deprecated.Sets the request type- Parameters:
requestType
- The requestType to set. The Request type value should be eitherTransferEvent.REQUEST_GET
orTransferEvent.REQUEST_PUT
.- Throws:
IllegalArgumentException
- when
-
getEventType
public int getEventType()Deprecated.- Returns:
- Returns the eventType.
-
setEventType
public void setEventType(int eventType) Deprecated.- Parameters:
eventType
- The eventType to set.
-
getLocalFile
Deprecated.- Returns:
- Returns the local file.
-
setLocalFile
Deprecated.- Parameters:
localFile
- The local file to set.
-
getTransferredBytes
public long getTransferredBytes()Deprecated. -
setTransferredBytes
public void setTransferredBytes(long transferredBytes) Deprecated. -
getDataBuffer
public byte[] getDataBuffer()Deprecated. -
setDataBuffer
public void setDataBuffer(byte[] dataBuffer) Deprecated. -
getDataOffset
public int getDataOffset()Deprecated. -
setDataOffset
public void setDataOffset(int dataOffset) Deprecated. -
getDataLength
public int getDataLength()Deprecated. -
setDataLength
public void setDataLength(int dataLength) Deprecated. -
toString
Deprecated.- Overrides:
toString
in classEventObject
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated.
-