mail.communication
Class Communicator
java.lang.Object
mail.communication.Communicator
- Direct Known Subclasses:
- InetCommunicator, TestCommunicator
public abstract class Communicator
- extends java.lang.Object
- Author:
- Arne Müller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
replies
ReplyList replies
Communicator
public Communicator()
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()