|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cnrg.itx.signal.SigPacket
This is the base class representing the Signaling Packet that is sent to and from all Signaling components. All signal packets inherit from this class and add specific information.
Constructor Summary | |
SigPacket()
Default Constructor constructs an invalid SigPacket |
|
SigPacket(int m,
int p)
Overloaded Constructor constructs a SigPacket that is to be used for a specific method and packet type. |
|
SigPacket(int m,
int p,
java.lang.Object o)
Overloaded Constructor constructs a SigPacket that is to be used for a specific method, packet type and Custom Object |
Method Summary | |
java.lang.Object |
getCustomObject()
Returns the custom object contained in the SigPacket |
UserID |
getDestination()
Returns the UserID of the destination Signaling component |
int |
getMethodID()
Returns the method ID associated with this packet |
int |
getPacketID()
Returns the type of the Sigpacket |
boolean |
hasCustomObject()
This method informs the callee whether a custom object is contained within this packet or not. |
boolean |
isAliveQuery()
This method informs the callee whether the packet is for the AliveQuery method. |
boolean |
isConfirmPacket()
This method informs the callee whether it is a Confirm Packet |
boolean |
isDial()
This method informs the callee whether the packet is for the Dial method. |
boolean |
isHangup()
This method informs the callee whether the packet is for the Hangup method. |
boolean |
isInvitePacket()
This method informs the callee whether it is an Invite Packet |
boolean |
isResultPacket()
This method informs the callee whether it is a Result Packet |
boolean |
isSendDTMF()
This method informs the callee whether the packet is for the SendDTMF method. |
void |
setCustomObject(java.lang.Object o)
Sets the custom object. |
void |
setDestination(UserID uid)
Sets the UserID of the Destination. |
void |
setMethodType(int mt)
Sets the method type. |
void |
setPacketType(int pt)
Sets the packet type. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SigPacket()
None.
- public SigPacket(int m, int p)
m
- is an integer code for methods handled by Signaling.p
- is an integer code for packet typepublic SigPacket(int m, int p, java.lang.Object o)
m
- is an integer code for methods handled by Signaling.p
- is an integer code for packet typeo
- is any custom object an application may want to send to a peer.Method Detail |
public int getMethodID()
None.
- public int getPacketID()
None.
- public void setPacketType(int pt)
pt
- is the integer value of the packet typepublic void setMethodType(int mt)
mt
- is the integer value of the method typepublic void setCustomObject(java.lang.Object o)
o
- is any object that is being sent in the SigPacketpublic java.lang.Object getCustomObject()
None.
- public void setDestination(UserID uid)
uid
- is the UserID object representing the Destinationpublic UserID getDestination()
None.
- public boolean isDial()
None
- public boolean isHangup()
None
- public boolean isSendDTMF()
None
- public boolean isAliveQuery()
None
- public boolean isInvitePacket()
None
- public boolean isResultPacket()
None
- public boolean isConfirmPacket()
None
- public boolean hasCustomObject()
None
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |