public class UploadMessage extends ArchiveMessage
replyOfId
Constructor and Description |
---|
UploadMessage(ChannelID to,
ChannelID replyTo,
RemoteFile rf)
Construct UploadMessage.
|
Modifier and Type | Method and 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.
|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk
public UploadMessage(ChannelID to, ChannelID replyTo, RemoteFile rf)
to
- Channel to message toreplyTo
- Channel to reply back torf
- The RemoteFile to uploadpublic String getArcfileName()
public RemoteFile getRemoteFile()
public void accept(ArchiveMessageVisitor v)
accept
in class ArchiveMessage
v
- A message visitorArchiveMessageVisitor
public String toString()
toString
in class NetarkivetMessage
public void setPrecomputedChecksum(String precomputedChecksum)
public String getPrecomputedChecksum()
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.