|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EMPPPacket
This interface defines a EMPPPacket.
| Method Summary | |
|---|---|
EMPPPacket |
createInstance()
Factory method to create a new instance of the implementing class. |
AgentIdentifier |
getFrom()
Returns the AgentIdentifier that corresponds to
the sender of this EMPPPacket. |
PacketKind |
getKind()
Returns the PacketKind of this EMPPPacket. |
java.lang.String |
getSessionIdentifier()
Returns the session identifier of this EMPPPacket. |
AgentIdentifier |
getTo()
Returns the AgentIdentifier that corresponds to
the receiver of this EMPPPacket. |
boolean |
hasFrom()
Tests if this EMPPPacket has a corresponding sender AgentIdentifier. |
void |
parsePayload()
Parses the payload of this EMPPPacket. |
void |
preparePayload()
Prepares the payload of this EMPPPacket. |
void |
readFrom(java.io.DataInput din)
Reads this EMPPPacket from the given DataInputStream. |
void |
setFrom(AgentIdentifier jid)
Sets the AgentIdentifier that corresponds to
the sender of this EMPPPacket. |
void |
setSessionIdentifier(java.lang.String id)
Sets the session identifier of this EMPPPacket. |
void |
setTo(AgentIdentifier jid)
Sets the AgentIdentifier that corresponds to
the receiver of this EMPPPacket. |
void |
writeTo(java.io.DataOutput dout)
Writes this EMPPPacket to the given DataOutputStream. |
| Methods inherited from interface net.coalevo.empp.util.Recyclable |
|---|
recycle |
| Method Detail |
|---|
AgentIdentifier getTo()
AgentIdentifier that corresponds to
the receiver of this EMPPPacket.
AgentIdentifier instance of the sender.void setTo(AgentIdentifier jid)
AgentIdentifier that corresponds to
the receiver of this EMPPPacket.
jid - the AgentIdentifier instance of the sender.AgentIdentifier getFrom()
AgentIdentifier that corresponds to
the sender of this EMPPPacket.
AgentIdentifier instance of the sender.void setFrom(AgentIdentifier jid)
AgentIdentifier that corresponds to
the sender of this EMPPPacket.
jid - the AgentIdentifier instance of the sender.boolean hasFrom()
AgentIdentifier.
java.lang.String getSessionIdentifier()
void setSessionIdentifier(java.lang.String id)
id - the identifier.PacketKind getKind()
PacketKind of this EMPPPacket.
PacketKind of this EMPPPacket.void preparePayload()
void parsePayload()
throws javax.xml.stream.XMLStreamException,
MalformedContentException,
MalformedStructureException
MalformedStructureException - if the structure of the Payload
is not wellformed or invalid.
MalformedContentException - if the content of the Payload
is not wellformed or invalid.
javax.xml.stream.XMLStreamException
void writeTo(java.io.DataOutput dout)
throws java.io.IOException
dout - the DataOutput to write to.
java.io.IOException - if an I/O error occurs.
void readFrom(java.io.DataInput din)
throws java.io.IOException,
MalformedAgentIdentifierException
din - the DataInput to read from.
java.io.IOException - if an I/O error occurs or the data
is invalid.
MalformedAgentIdentifierException - if the from or to address is malformed.EMPPPacket createInstance()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||