Class UploadMessage
- java.lang.Object
-
- dk.netarkivet.common.distribute.NetarkivetMessage
-
- dk.netarkivet.archive.distribute.ArchiveMessage
-
- dk.netarkivet.archive.bitarchive.distribute.UploadMessage
-
- All Implemented Interfaces:
Serializable
public class UploadMessage extends ArchiveMessage
Container for upload request.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
replyOfId
-
-
Constructor Summary
Constructors Constructor Description UploadMessage(ChannelID to, ChannelID replyTo, RemoteFile rf)
Construct UploadMessage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ArchiveMessageVisitor v)
Should be implemented as a part of the visitor pattern.String
getArcfileName()
Retrieve name of the uploaded file.String
getPrecomputedChecksum()
RemoteFile
getRemoteFile()
Get method for field theRemoteFile.void
setPrecomputedChecksum(String precomputedChecksum)
String
toString()
Generate String representation of this object.-
Methods inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk
-
-
-
-
Constructor Detail
-
UploadMessage
public UploadMessage(ChannelID to, ChannelID replyTo, RemoteFile rf)
Construct UploadMessage.- Parameters:
to
- Channel to message toreplyTo
- Channel to reply back torf
- The RemoteFile to upload
-
-
Method Detail
-
getArcfileName
public String getArcfileName()
Retrieve name of the uploaded file.- Returns:
- current value of arcfileName
-
getRemoteFile
public RemoteFile getRemoteFile()
Get method for field theRemoteFile.- Returns:
- Current value of theRemoteFile
-
accept
public void accept(ArchiveMessageVisitor v)
Should be implemented as a part of the visitor pattern. fx.: public void accept(ArchiveMessageVisitor v) { v.visit(this); }- Specified by:
accept
in classArchiveMessage
- Parameters:
v
- A message visitor- See Also:
ArchiveMessageVisitor
-
toString
public String toString()
Generate String representation of this object.- Overrides:
toString
in classNetarkivetMessage
- Returns:
- String representation of this object
-
setPrecomputedChecksum
public void setPrecomputedChecksum(String precomputedChecksum)
-
getPrecomputedChecksum
public String getPrecomputedChecksum()
-
-