|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectRvCommand
Represents a single "rendezvous command." Rendezvous commands can be used in
sending
SendRvIcbms, and with the help of net.kano.joscar.rv
can easily be generated from incoming RecvRvIcbms.
| 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 rejected or cancelled. |
static int |
RVSTATUS_REQUEST
A status code indicating that a rendezvous is a request. |
| Constructor Summary | |
protected |
RvCommand(int rvStatus,
CapabilityBlock cap)
Creates a new outgoing RvCommand with the given properties. |
protected |
RvCommand(RecvRvIcbm icbm)
Creates a new RvCommand with properties read from the given
incoming RecvRvIcbm. |
| Method Summary | |
CapabilityBlock |
getCapabilityBlock()
Returns this RV command's capability block ("rendezvous type"). |
int |
getRvStatus()
Returns the status code for this RV command. |
abstract void |
writeRvData(java.io.OutputStream out)
Writes this RV command's "rendezvous data block" to the given stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int RVSTATUS_REQUEST
AbstractRvIcbm.RVSTATUS_ACCEPT.
public static final int RVSTATUS_ACCEPT
AbstractRvIcbm.RVSTATUS_ACCEPT.
public static final int RVSTATUS_DENY
AbstractRvIcbm.RVSTATUS_DENY.
| Constructor Detail |
protected RvCommand(RecvRvIcbm icbm)
RvCommand with properties read from the given
incoming RecvRvIcbm.
icbm - an incoming RV ICBM command
protected RvCommand(int rvStatus,
CapabilityBlock cap)
RvCommand with the given properties.
rvStatus - a rendezvous status code, like RVSTATUS_ACCEPTcap - a capability block ("rendezvous type") associated with this
rendezvous command| Method Detail |
public final int getRvStatus()
RVSTATUS_REQUEST, RVSTATUS_ACCEPT, and RVSTATUS_DENY.
public final CapabilityBlock getCapabilityBlock()
public abstract void writeRvData(java.io.OutputStream out)
throws java.io.IOException
out - the stream to which to write
java.io.IOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||