|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRvCommand
AbstractRvCmd
AbstractRejectRvCmd
A base class for RV "reject" commands, commands with a status code of
RvCommand.RVSTATUS_DENY
and containing a rejection code.
Field Summary | |
static int |
REJECTCODE_CANCELLED
A rejection code indicating that the user cancelled or denied a rendezvous request. |
Fields inherited from class RvCommand |
RVSTATUS_ACCEPT, RVSTATUS_DENY, RVSTATUS_REQUEST |
Constructor Summary | |
protected |
AbstractRejectRvCmd(CapabilityBlock cap,
int rejectionCode)
Creates a new outgoing rejection RV command with the given properties. |
protected |
AbstractRejectRvCmd(RecvRvIcbm icbm)
Creates a new rejection RV command from the given incoming rejection RV ICBM command. |
Method Summary | |
int |
getRejectCode()
Returns the rejection code contained in this rejection RV command. |
java.lang.String |
toString()
|
protected void |
writeHeaderRvTlvs(java.io.OutputStream out)
Writes this RV command's "header TLV's" to the given stream. |
protected void |
writeRvTlvs(java.io.OutputStream out)
Provides a default implementation for writing this command's RV TLV's. |
Methods inherited from class AbstractRvCmd |
getRvTlvs, getServiceData, hasServiceData, writeRvData, writeServiceData |
Methods inherited from class RvCommand |
getCapabilityBlock, getRvStatus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int REJECTCODE_CANCELLED
Constructor Detail |
protected AbstractRejectRvCmd(RecvRvIcbm icbm)
icbm
- an incoming rejection RV ICBM commandprotected AbstractRejectRvCmd(CapabilityBlock cap, int rejectionCode)
cap
- the capability block associated with this RV commandrejectionCode
- the rejection code to send in this RV commandMethod Detail |
public final int getRejectCode()
protected final void writeHeaderRvTlvs(java.io.OutputStream out) throws java.io.IOException
AbstractRvCmd
AbstractRvCmd.writeRvTlvs(java.io.OutputStream)
; it
provides a means for subclasses to write a set of TLV's that are present
in all subclasses.
writeHeaderRvTlvs
in class AbstractRvCmd
out
- the stream to which to write
java.io.IOException
- if an I/O error occursprotected void writeRvTlvs(java.io.OutputStream out) throws java.io.IOException
writeRvTlvs
in class AbstractRvCmd
out
- the stream to which to write
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |