dk.netarkivet.archive.bitarchive.distribute
Class UploadMessage

java.lang.Object
  extended by dk.netarkivet.common.distribute.NetarkivetMessage
      extended by dk.netarkivet.archive.distribute.ArchiveMessage
          extended by dk.netarkivet.archive.bitarchive.distribute.UploadMessage
All Implemented Interfaces:
java.io.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
UploadMessage(ChannelID to, ChannelID replyTo, RemoteFile rf)
          Construct UploadMessage.
 
Method Summary
 void accept(ArchiveMessageVisitor v)
          Should be implemented as a part of the visitor pattern.
 java.lang.String getArcfileName()
          Retrieve name of the uploaded file.
 RemoteFile getRemoteFile()
          Get method for field theRemoteFile.
 java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UploadMessage

public UploadMessage(ChannelID to,
                     ChannelID replyTo,
                     RemoteFile rf)
Construct UploadMessage.

Parameters:
to - Channel to message to
replyTo - Channel to reply back to
rf - The RemoteFile to upload
Method Detail

getArcfileName

public java.lang.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 class ArchiveMessage
Parameters:
v - A message visitor
See Also:
ArchiveMessageVisitor

toString

public java.lang.String toString()
Generate String representation of this object.

Overrides:
toString in class NetarkivetMessage
Returns:
String representation of this object