mail.node.remote
Class MailReply

java.lang.Object
  extended by mail.communication.CPackage
      extended by mail.node.remote.MailReply

public class MailReply
extends CPackage

Author:
Arne Müller

Field Summary
(package private)  java.util.Collection<Mail> mails
           
(package private) static java.lang.String NAME
           
(package private)  java.lang.String requestID
           
 
Fields inherited from class mail.communication.CPackage
comm, packages
 
Constructor Summary
MailReply(Communicator c)
           
MailReply(Communicator c, java.lang.String requestID, java.util.Collection<Mail> mail)
           
 
Method Summary
 void build(org.w3c.dom.Element main, Address sender)
          Exactly the Information, that was created by CPackage.buildContent(Document) needs to be parsed.
protected  org.w3c.dom.Element buildContent(org.w3c.dom.Document d)
          builds an Element for the given Document out of this package.
 java.util.Collection<Mail> getMails()
           
protected  java.lang.String getName()
           
 void performAction(LocalNode local)
          the data of this package should also have some use, so perform an action on the local node
 
Methods inherited from class mail.communication.CPackage
buildPackage, registerPackage, send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

static java.lang.String NAME

mails

java.util.Collection<Mail> mails

requestID

java.lang.String requestID
Constructor Detail

MailReply

public MailReply(Communicator c)

MailReply

public MailReply(Communicator c,
                 java.lang.String requestID,
                 java.util.Collection<Mail> mail)
Method Detail

build

public void build(org.w3c.dom.Element main,
                  Address sender)
           throws PackageBuildException
Description copied from class: CPackage
Exactly the Information, that was created by CPackage.buildContent(Document) needs to be parsed.

Specified by:
build in class CPackage
Throws:
PackageBuildException

buildContent

protected org.w3c.dom.Element buildContent(org.w3c.dom.Document d)
                                    throws PackageBuildException
Description copied from class: CPackage
builds an Element for the given Document out of this package. This needs to be done, to be able to send packages over the network.

Specified by:
buildContent in class CPackage
Parameters:
d - the Document needed to build the Element
Returns:
the Element containing all essential information about this instance
Throws:
PackageBuildException

getMails

public java.util.Collection<Mail> getMails()

performAction

public void performAction(LocalNode local)
Description copied from class: CPackage
the data of this package should also have some use, so perform an action on the local node

Specified by:
performAction in class CPackage

getName

protected java.lang.String getName()
Specified by:
getName in class CPackage