|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSnacCommand
AbstractIcbm
AbstractRvIcbm
A base class for the two rendezvous-based ICBM commands provided in this
package. The two commands are SendRvIcbm and RecvRvIcbm.
| Field Summary | |
static int |
RVSTATUS_ACCEPT
A status code indicating that a rendezvous has been accepted. |
static int |
RVSTATUS_DENY
A status code indicating that a rendezvous has been denied or cancelled. |
static int |
RVSTATUS_REQUEST
A status code indicating that this rendezvous ICBM is a request. |
| Fields inherited from class AbstractIcbm |
CHANNEL_CHAT, CHANNEL_IM, CHANNEL_RV |
| Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
| Constructor Summary | |
protected |
AbstractRvIcbm(int command,
long icbmMessageId,
int status,
long rvSessionId,
CapabilityBlock cap,
LiveWritable rvDataWriter)
Creates a new outgoing rendezvous ICBM command with the given properties. |
protected |
AbstractRvIcbm(int command,
long icbmMessageId,
long rvSessionId,
RvCommand rvCommand)
Creates a new RV ICBM with the given SNAC command subtype, rendezvous session ID, and the properties of the given RvCommand. |
protected |
AbstractRvIcbm(int command,
SnacPacket packet)
Generates a rendezvous ICBM from the given incoming SNAC packet. |
| Method Summary | |
CapabilityBlock |
getCapability()
Returns the capability that this rendezvous is using. |
ByteBlock |
getRvData()
Returns the rendezvous-specific data in this rendezvous command. |
long |
getRvSessionId()
Returns the rendezvous session ID sent in this command. |
int |
getRvStatus()
Returns the status code of this rendezvous. |
java.lang.String |
toString()
|
| Methods inherited from class AbstractIcbm |
getChannel, getChannelData, getIcbmChannel, getIcbmMessageId, writeChannelData, writeData |
| Methods inherited from class SnacCommand |
getCommand, getFamily, getFlag1, getFlag2 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int RVSTATUS_REQUEST
public static final int RVSTATUS_ACCEPT
public static final int RVSTATUS_DENY
| Constructor Detail |
protected AbstractRvIcbm(int command,
SnacPacket packet)
command - the SNAC command subtype of this commandpacket - an incoming rendezvous ICBM packet
protected AbstractRvIcbm(int command,
long icbmMessageId,
int status,
long rvSessionId,
CapabilityBlock cap,
LiveWritable rvDataWriter)
command - the SNAC command subtype of this commandicbmMessageId - an ICBM message ID to attach to this commandstatus - a status code, like RVSTATUS_REQUESTrvSessionId - a rendezvous session ID to attach to this commandcap - the capability block associated with this commandrvDataWriter - an object to write rendezvous-command-specific data
protected AbstractRvIcbm(int command,
long icbmMessageId,
long rvSessionId,
RvCommand rvCommand)
RvCommand.
command - the SNAC command subtype for this commandicbmMessageId - an ICBM message ID for this RV ICBMrvSessionId - this RV ICBM's RV session IDrvCommand - an RV command whose properties should be used in this
RV ICBM| Method Detail |
public final int getRvStatus()
RVSTATUS_REQUEST, RVSTATUS_ACCEPT, and RVSTATUS_DENY.
public final long getRvSessionId()
public final CapabilityBlock getCapability()
public final ByteBlock getRvData()
public java.lang.String toString()
toString in class AbstractIcbm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||