mail.communication
Class Communicator

java.lang.Object
  extended by mail.communication.Communicator
Direct Known Subclasses:
InetCommunicator, TestCommunicator

public abstract class Communicator
extends java.lang.Object

Author:
Arne Müller

Field Summary
(package private)  ReplyList replies
           
 
Constructor Summary
Communicator()
           
 
Method Summary
abstract  void attachNode(LocalNode l)
           
abstract  void close()
           
abstract  void findMyAddress(Address apeer)
           
abstract  java.util.Collection<Address> getAddress()
          returns the Address this Communicator uses to send Packets
abstract  javax.xml.parsers.DocumentBuilder getDocumentBuilder()
           
 ReplyList getReplyList()
           
abstract  boolean isOpen()
           
abstract  Address parseAddress(java.lang.String addr)
           
abstract  void sendPackage(CPackage p, Address to)
           
abstract  void sendPackage(CPackage p, RemoteNode to)
           
abstract  void write(org.w3c.dom.Document d, java.io.File f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

replies

ReplyList replies
Constructor Detail

Communicator

public Communicator()
Method Detail

getReplyList

public ReplyList getReplyList()

sendPackage

public abstract void sendPackage(CPackage p,
                                 RemoteNode to)
                          throws IncompatibleAddressException,
                                 NotReachableException,
                                 PackageBuildException
Throws:
IncompatibleAddressException
NotReachableException
PackageBuildException

sendPackage

public abstract void sendPackage(CPackage p,
                                 Address to)
                          throws IncompatibleAddressException,
                                 java.io.IOException,
                                 PackageBuildException
Throws:
IncompatibleAddressException
java.io.IOException
PackageBuildException

parseAddress

public abstract Address parseAddress(java.lang.String addr)
                              throws IncompatibleAddressException
Throws:
IncompatibleAddressException

findMyAddress

public abstract void findMyAddress(Address apeer)
                            throws java.io.IOException
Throws:
java.io.IOException

attachNode

public abstract void attachNode(LocalNode l)

getAddress

public abstract java.util.Collection<Address> getAddress()
returns the Address this Communicator uses to send Packets

Returns:

getDocumentBuilder

public abstract javax.xml.parsers.DocumentBuilder getDocumentBuilder()

write

public abstract void write(org.w3c.dom.Document d,
                           java.io.File f)
                    throws javax.xml.transform.TransformerException,
                           java.io.IOException
Throws:
javax.xml.transform.TransformerException
java.io.IOException

isOpen

public abstract boolean isOpen()

close

public abstract void close()