|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmail.communication.CPackage
public abstract class CPackage
| Field Summary | |
|---|---|
protected Communicator |
comm
the communicator this package was / will be send with. |
static java.util.Hashtable<java.lang.String,java.lang.Class<? extends CPackage>> |
packages
|
| Constructor Summary | |
|---|---|
protected |
CPackage(Communicator c)
Initializes this Package with specified Communicator |
| Method Summary | |
|---|---|
protected abstract void |
build(org.w3c.dom.Element main,
Address sender)
Exactly the Information, that was created by buildContent(Document) needs to be parsed. |
protected abstract org.w3c.dom.Element |
buildContent(org.w3c.dom.Document d)
builds an Element for the given Document out of this package. |
static CPackage |
buildPackage(Communicator c,
org.w3c.dom.Document d,
Address sender)
builds the package specified by the XML-Document. |
protected abstract java.lang.String |
getName()
|
abstract void |
performAction(LocalNode local)
the data of this package should also have some use, so perform an action on the local node |
protected static void |
registerPackage(java.lang.Class<? extends CPackage> c,
java.lang.String name)
|
org.w3c.dom.Document |
send()
parses this Package into a XML-Document, so this package can be send |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.util.Hashtable<java.lang.String,java.lang.Class<? extends CPackage>> packages
protected Communicator comm
| Constructor Detail |
|---|
protected CPackage(Communicator c)
c - the Communicator to initialize with| Method Detail |
|---|
protected abstract void build(org.w3c.dom.Element main,
Address sender)
throws PackageBuildException
buildContent(Document) needs to be parsed.
c - the Communicator, where the Data came from
PackageBuildException
protected abstract org.w3c.dom.Element buildContent(org.w3c.dom.Document d)
throws PackageBuildException
d - the Document needed to build the Element
PackageBuildException
public org.w3c.dom.Document send()
throws PackageBuildException
PackageBuildExceptionprotected abstract java.lang.String getName()
public abstract void performAction(LocalNode local)
local -
public static CPackage buildPackage(Communicator c,
org.w3c.dom.Document d,
Address sender)
throws PackageBuildException
c - Communicator used for Communicationd - the data
PackageBuildException
protected static void registerPackage(java.lang.Class<? extends CPackage> c,
java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||